Skip to content

[BUG] broken import in example_spcc.ipynb #273

@ado8

Description

@ado8

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:

  • Operating System: [Ubuntu 22.04.4 LTS on Windows 10 x86_64]:
  • snmachine Version: [2.1.1.dev1+gab2074b.d20240529]
  • Occurred on which branch and with what commit: [main-ab2074b]

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugBreaking issue, issue that is causing a program crash or major error

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions