Closed adammcmaster closed 11 months ago
After installing ldtk in a fresh environment and trying to run the example from the readme:
--------------------------------------------------------------------------- ModuleNotFoundError Traceback (most recent call last) Cell In[5], line 1 ----> 1 from ldtk import LDPSetCreator, BoxcarFilter 3 filters = [BoxcarFilter('a', 450, 550), # Define your passbands 4 BoxcarFilter('b', 650, 750), # - Boxcar filters useful in 5 BoxcarFilter('c', 850, 950)] # transmission spectroscopy 7 sc = LDPSetCreator(teff=(6400, 50), # Define your star, and the code 8 logg=(4.50, 0.20), # downloads the uncached stellar 9 z=(0.25, 0.05), # spectra from the Husser et al. 10 filters=filters) # FTP server automatically. File c:\Users\[user]\Anaconda3\envs\ldtk\lib\site-packages\ldtk\__init__.py:22 20 from .version import __version__ 21 from .ldtk import LDPSetCreator, LDPSet, load_ldpset ---> 22 from .filters import BoxcarFilter, SVOFilter, TabulatedFilter, DeltaFilter, sdss_g, sdss_r, sdss_i, sdss_z, kepler, tess File c:\Users\[user]\Anaconda3\envs\ldtk\lib\site-packages\ldtk\filters.py:21 1 """ 2 Limb darkening toolkit 3 Copyright (C) 2015 Hannu Parviainen <hpparvi@gmail.com> (...) 17 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. 18 """ 19 from typing import Optional ... ---> 21 import pandas as pd 23 from pathlib import Path 25 from matplotlib.pyplot import subplots, setp ModuleNotFoundError: No module named 'pandas'
And also matplotlib.
Thanks for bringing this up. Should be fixed now!
After installing ldtk in a fresh environment and trying to run the example from the readme: