Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] broken import in example_spcc.ipynb #273

Open
ado8 opened this issue May 29, 2024 · 0 comments
Open

[BUG] broken import in example_spcc.ipynb #273

ado8 opened this issue May 29, 2024 · 0 comments
Labels
bug Breaking issue, issue that is causing a program crash or major error

Comments

@ado8
Copy link

ado8 commented May 29, 2024

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]
@ado8 ado8 added the bug Breaking issue, issue that is causing a program crash or major error label May 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Breaking issue, issue that is causing a program crash or major error
Projects
None yet
Development

No branches or pull requests

1 participant