diff --git a/phoebe/backend/backends.py b/phoebe/backend/backends.py index c03865e9b..b200daa0b 100644 --- a/phoebe/backend/backends.py +++ b/phoebe/backend/backends.py @@ -1002,7 +1002,6 @@ def _compute_intrinsic_system_at_t0(self, b, compute, system.update_positions(t0, x0, y0, z0, vx0, vy0, vz0, etheta0, elongan0, eincl0, ignore_effects=True) system.populate_observables(t0, ['lc' for dataset in datasets], datasets, ignore_effects=True) - if reset: logger.debug("rank:{}/{} PhoebeBackend._create_system_and_compute_pblums: resetting system".format(mpi.myrank, mpi.nprocs)) system.reset(force_recompute_instantaneous=True) @@ -1023,6 +1022,10 @@ def _worker_setup(self, b, compute, times, infolists, **kwargs): # b.compute_ld_coeffs(set_value=True) # TODO: only need if irradiation is enabled and only for bolometric system = kwargs.get('system', universe.System.from_bundle(b, compute, datasets=b.datasets, **kwargs)) + + # NOTE: for interferometry; 1 call 1.4 ms + system.distance = b.get_value(qualifier='distance', context='system', **_skip_filter_checks) + # pblums_scale computed within run_compute and then passed as kwarg to run (so should be in kwargs sent to each worker) pblums_scale = kwargs.get('pblums_scale') for dataset in list(pblums_scale.keys()): @@ -1074,6 +1077,7 @@ def _worker_setup(self, b, compute, times, infolists, **kwargs): vxs=vxs, vys=vys, vzs=vzs, ethetas=ethetas, elongans=elongans, eincls=eincls) +# @profile def _run_single_time(self, b, i, time, infolist, **kwargs): logger.debug("rank:{}/{} PhoebeBackend._run_single_time(i={}, time={}, infolist={}, **kwargs.keys={})".format(mpi.myrank, mpi.nprocs, i, time, infolist, kwargs.keys())) @@ -1164,7 +1168,6 @@ def _run_single_time(self, b, i, time, infolist, **kwargs): system.xi = xi system.yi = yi system.zi = zi - system.distance = b.get_value('distance@system') logger.debug("rank:{}/{} PhoebeBackend._run_single_time: filling packets at time={}".format(mpi.myrank, mpi.nprocs, time)) # now let's loop through and prepare a packet which will fill the synthetics