-
Notifications
You must be signed in to change notification settings - Fork 10
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
Missing a / after the MODELS_PATH makes it impossible to use the CMD package.
To Reproduce
Steps to reproduce the behavior:
from hoki.load import set_models_pathset_models_path("path/to/models")- reload kernel
- `from hoki.cmd import CMD
mycmd = CMD(input_file)- run
mycmd.make(mag_filter='V', col_filters=['B', 'V'])
Expected behavior
Code generates a CMD and runs for a long duration. Code does should not terminate in a few seconds.
Additional context
Might be impacting other areas too.
Fix should be done when setting the MODELS_PATH. The current assert os.path.isdir() does not catch a missing / at the end of the path.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working