hpparvi / ldtk

Python toolkit for calculating stellar limb darkening profiles and model-specific coefficients using the stellar atmosphere spectrum library by Husser et al. (2013). Described in Parviainen & Aigrain, MNRAS 453, 3821–3826 (2015).
GNU General Public License v2.0
29 stars 19 forks source link

Pandas not listed in requirements #29

Closed adammcmaster closed 11 months ago

adammcmaster commented 1 year 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'
adammcmaster commented 1 year ago

And also matplotlib.

hpparvi commented 11 months ago

Thanks for bringing this up. Should be fixed now!