timothydmorton / isochrones

Pythonic stellar model grid access; easy MCMC fitting of stellar properties
http://isochrones.readthedocs.org
MIT License
117 stars 63 forks source link

Nosetests Fail #165

Open JayChittidi opened 2 years ago

JayChittidi commented 2 years ago

Hi there,

I'm getting two failure outputs during the nosetests, and not sure what or how to fix them. Do you have any suggestions? Isochrones is called by another code I am using astroARIADNE, and the MIST isochrone gets stuck indefinitely on the first iteration. Happy to provide more details as needed!

Here's the last bit of the nosetest output:

`====================================================================== FAIL: isochrones.tests.test_likelihood.test_compare_phot

Traceback (most recent call last): File "/home/jaywsl/anaconda3/envs/sedenv/lib/python3.7/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/home/jaywsl/anaconda3/envs/sedenv/lib/python3.7/site-packages/isochrones-2.1-py3.7.egg/isochrones/tests/test_likelihood.py", line 57, in test_compare_phot test_compare_starmodels(props_phot) File "/home/jaywsl/anaconda3/envs/sedenv/lib/python3.7/site-packages/isochrones-2.1-py3.7.egg/isochrones/tests/test_likelihood.py", line 24, in test_compare_starmodels assert np.isclose(m1.lnprior(pars), m2.lnprior(pars)) AssertionError: -------------------- >> begin captured logging << -------------------- isochrones: DEBUG: Building ObservationTree... isochrones: DEBUG: Adding (3.58, 0.05) @(0.0, 0.0) (-J) isochrones: DEBUG: Adding (3.22, 0.05) @(0.0, 0.0) (-K) --------------------- >> end captured logging << ---------------------

====================================================================== FAIL: Testing with first entry from Gaia DR1 TGAS table

Traceback (most recent call last): File "/home/jaywsl/anaconda3/envs/sedenv/lib/python3.7/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/home/jaywsl/anaconda3/envs/sedenv/lib/python3.7/site-packages/isochrones-2.1-py3.7.egg/isochrones/tests/test_query.py", line 38, in test_queries assert tm.get_id() == b("03000819+0014074") # force byte literal b/c that's what gets returned AssertionError


Ran 26 tests in 62.690s

FAILED (errors=3, failures=5)`