Closed combet closed 1 year ago
I cannot figure out what is going wrong with the NC backend, for the new eval_sigma_crit
test I added into test_cosmology_parent
. I basically moved that test from test_theory
and haven't figured out what the matter is. Notebooks are happily running... Any help would be much appreciated @m-aguena, @hsinfan1996?
I cannot figure out what is going wrong with the NC backend, for the new
eval_sigma_crit
test I added intotest_cosmology_parent
. I basically moved that test fromtest_theory
and haven't figured out what the matter is. Notebooks are happily running... Any help would be much appreciated @m-aguena, @hsinfan1996?
@combet this happened because the initialization of an attribute of NumCosmoCosmology
was being done by NumCosmoModeling
, which is a bad practice. Good thing your unittest caught it!
Ah great, indeed, thanks for solving this @m-aguena!
I cannot figure out what is going wrong with the NC backend, for the new
eval_sigma_crit
test I added intotest_cosmology_parent
. I basically moved that test fromtest_theory
and haven't figured out what the matter is. Notebooks are happily running... Any help would be much appreciated @m-aguena, @hsinfan1996?@combet this happened because the initialization of an attribute of
NumCosmoCosmology
was being done byNumCosmoModeling
, which is a bad practice. Good thing your unittest caught it!
I address this issue in PR #496 by moving the initialization to clmm/cosmology/numcosmo.py. The most recent comment in that PR is about this, but I think @m-aguena fixed it here.
I cannot figure out what is going wrong with the NC backend, for the new
eval_sigma_crit
test I added intotest_cosmology_parent
. I basically moved that test fromtest_theory
and haven't figured out what the matter is. Notebooks are happily running... Any help would be much appreciated @m-aguena, @hsinfan1996?@combet this happened because the initialization of an attribute of
NumCosmoCosmology
was being done byNumCosmoModeling
, which is a bad practice. Good thing your unittest caught it!I address this issue in PR #496 by moving the initialization to clmm/cosmology/numcosmo.py. The most recent comment in that PR is about this, but I think @m-aguena fixed it here.
Cool, thank you @hsinfan1996! So it's fixed in both PR.
I think this is ready for review.
This removes redundant functions that called sigma_crit, keeping only the method
eval_sigma_crit
from the cosmology class.test_cosmology_parent