LSSTDESC / snmachine

Machine learning code for photometric supernova classification
BSD 3-Clause "New" or "Revised" License
9 stars 5 forks source link

[BUG] broken import in example_spcc.ipynb #273

Open ado8 opened 5 months ago

ado8 commented 5 months ago

Describe the issue There is an attempt to import some functions from utils.plasticc_pipeline that should instead be importing from snmachine.utils.plasticc_pipeline

Expected behaviour Imports to proceed without raising an exception.

Actual behaviour The cell returns an exception with the following traceback.

---------------------------------------------------------------------------
ModuleNotFoundError                       Traceback (most recent call last)
/tmp/ipykernel_196238/3116116365.py in <module>
      1 from astropy.table import Table
      2 from snmachine import example_data, sndata, snfeatures, tsne_plot, snclassifier
----> 3 from utils.plasticc_pipeline import create_folder_structure, get_directories

ModuleNotFoundError: No module named 'utils'

To Reproduce In terminal, in examples directory, run jupyter notebook example_spcc.ipynb In the notebook instance, run the fourth code cell.

System Information: