HajimeKawahara / exojax

🐈 Automatic differentiable spectrum modeling of exoplanets/brown dwarfs using JAX, compatible with NumPyro and JAXopt
http://secondearths.sakura.ne.jp/exojax/
MIT License
45 stars 14 forks source link

Test file for Exomol/Hitemp (api) #340

Closed HajimeKawahara closed 1 year ago

HajimeKawahara commented 1 year ago

We have used pickled class object of api.py, i.e. mdbExomol, mdbHitemp. But, this contains vaex object, such as vaex.hdf. It yields problems because it depends on environment. So, we need hdf based test file, for CO/Exomol and CO/Hitemp.

HajimeKawahara commented 1 year ago

working branch: testdata

HajimeKawahara commented 1 year ago

Also, the direct load from user-defined par file might be useful for old users of HITRAN/HITEMP (I mean older version of par file etc.). (I know several such persons ... they start from their own par files)

erwanp commented 1 year ago

Btw we have some test files packaged with RADIS (very light files, just used for unit-tests) available with radis.test.utils.getTestFile; here is the list https://github.com/radis/radis/tree/develop/radis/test/files ; if it helps !

HajimeKawahara commented 1 year ago

Thanks! That looks useful. We have the same issue for unit-tests.