You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Import from within source tree overly restrictive (#819)
In order to avoid same-name module conflicts with the system module (such as io.py), phoebe shouldn't be imported from its own source tree. The original test eliminated the entire package tree, including all auxiliary directories, which is overly restrictive and it prevented pytest from running when phoebe was installed with `pip -e`. This PR fixes that by blocking imports from the root directory and from the root/phoebe tree (the actual sources). Closes#806.
* update tests for changes to pytest (#820)
* Fixing up all pytests
The new pytest version raises an error instead of warning when tests return a value, and when assert is used incorrectly. All tests have been touched up to not have issues with the latest pytest.
* Update f-string to be compatible with python 3.7
f-string format f'{var=}' has been introduced in python 3.8, and it caused the 3.7 tests to fail. This fixes that issue.
---------
Co-authored-by: Andrej Prsa <[email protected]>
* Dynamical RVs now avoid meshing (#823)
* Dynamical RVs now avoid meshing
Calling b.compute_pblums() built the mesh and treated dynamical RVs as mesh-dependent. This fixes that for both run_compute() and for direct compute_pblums(), compute_l3(), and compute_ld_coeffs bundle methods. A new function, b._datasets_that_require_meshing(), filters datasets that require a mesh, i.e. 'lc', 'lp' and flux-weighted 'rv'. Closes#812.
* Generalized dataset filtering with b._datasets_where()
* Adding backend exception to mesh computation
Even if phoebe backend didn't need meshes for a particular dataset, other backends do. This is now handled in the `_datasets_where()` function.
---------
Co-authored-by: Kyle Conroy <[email protected]>
* run_checks_compute() bugfix (#837)
* run_checks_compute() bugfix
The run_checks_compute() function included the internal "_default" compute parameter set in checking the ck2004 model atmosphere table existence in the passband files. This caused the checks to fail even if ck2004 was never needed.
* Incorporating @kecnry's comments into the PR (along with additional comments)
* Fixing the if statement per @kecnry's instructions.
* Fix treatment of distance for alternate backends (#832)
* regression test
* don't duplicate distance handling for alt backends
* temporarily skip jktebop
* use top-level default_binary in test
* version and changelog for 2.4.13 release
* update setup-python to v5
to avoid deprecation warning
---------
Co-authored-by: Andrej Prsa <[email protected]>
Co-authored-by: Andrej Prsa <[email protected]>
pb_needs_ld = True #np.any([p.get_value()!='interp' for p in self.filter(qualifier='ld_mode', dataset=pbparam.dataset, context='dataset', **_skip_filter_checks).to_list()])
# NOTE: atms are not attached to datasets, but per-compute and per-component
3783
-
for atmparam in self.filter(qualifier='atm', kind='phoebe', compute=computes, **_skip_filter_checks).to_list() + self.filter(qualifier='ld_coeffs_source').to_list():
3784
-
3783
+
# NOTE: atmparam includes a '_default' compute pset, which depends on the
3784
+
# ck2004 atmospheres; the checks should not include it. This is achieved
3785
+
# by filtering check_visible=False and check_default=True in the line below:
3786
+
for atmparam in self.filter(qualifier='atm', kind='phoebe', compute=computes, check_visible=False, check_default=True).to_list() + self.filter(qualifier='ld_coeffs_source').to_list():
3785
3787
# check to make sure passband supports the selected atm
3786
3788
atm = atmparam.get_value(**_skip_filter_checks)
3787
3789
if atmparam.qualifier == 'ld_coeffs_source' and atm == 'auto':
0 commit comments