mikecokina / elisa

GNU General Public License v2.0
15 stars 5 forks source link

There is no file like /home/physics/.elisa/limbdarkening/ld/lin.bolometric.p00.csv. #10

Closed AstrophysicsAndPython closed 2 years ago

AstrophysicsAndPython commented 2 years ago

I made a conda environment

conda create env -n elisa python=3.7

I installed ELISa

/home/physics/anaconda3/env/elisa/bin/pip3 install elisa

After that I followed the light curve tutorial (here). However, when I run the following code, it gives me this above error

phases, fluxes = o.observe.lc(
    from_phase=-0.6,
    to_phase=0.6,
    phase_step=0.01,
    normalize=True  # this will produce observations normalized to 1
)
AstrophysicsAndPython commented 2 years ago

The .elisa folder is empty in my system.

mirofedurco commented 2 years ago

Hi,

thanks for bringing out this issue. Directory '.elisa' is supposed to contain all necessary limb-darkening and atmosphere tables. As stated in readme.rst for our latest release 0.5.1, you need to download them into your .elisa directory or any other custom location that would be then specified in your conguration file (see detailed instructions in the readme.rst).

As for the version 0.6 currently in the development that can be installed using command pip install git+https://github.com/mikecokina/elisa.git@dev, the necessary tables are downloaded automatically during the first use of .py script that uses elisa package. If the automatic installation will not happen inside the JuPyter notebook, try to simply import elisa in the python console within your virtual environment with the fresh ELISa installation or just launch simple .py script using ELISa. The manual process described for the version 0.5.1 is also viable in the newer version as well.

I hope this instruction helps. In case of any other issues, feel free to contact us.

Sincerely, Miro

AstrophysicsAndPython commented 2 years ago

Hi, thank you for your response. I did find some files and I did download them to the .elisa/limbdarkening/ld/ directory, but I can't seem to find the file lin.Generic.Bessell.B.p00.csv. It doesn't show up even in search

image

AstrophysicsAndPython commented 2 years ago

I will try the other method shortly.

Cheers!

mirofedurco commented 2 years ago

Hi,

when you download the limb darkening tables from here, the file in question is there. Remember to extract the contents of the folder into the default hidden configuration folder $HOME/.elisa/limb_darkening/, not regular visible folder elisa, as you seem to search for the missing file there. In case of default location for your limb darkening tables, you have to put the limb darkening tables precisely at this location, otherwise you have to change the absolute path to them with configuration variable ld_tables = /your/path/to/ld/tables/ in $HOME/.elisa/elisa_config.ini.

Miro

mikecokina commented 2 years ago

Closing inactive issues.