You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
L51-55 of init.py are
"""
path_1 = path.join(MODULE_PATH, 'data')
if path.isdir(path_1):
DATA_PATH = path_1
else:
DATA_PATH = path.join(path.dirname(file), 'data')
"""
This points to source/MulensModel/data
That file points to ../../data
This is a relative path, which is generally bad practice, and it seems the reason is that it doesn't always work. For instance, when MulensModel is installed via Google Colab, it can't find interpolation_table_b0b1_v3.dat.
Why is DATA_PATH set up this way? Why can't we set it up without the relative paths?
The text was updated successfully, but these errors were encountered:
This if statement is there because of different paths for pip install and PYTHONPATH installations. I'm guessing Google Colab uses pip install or similar.
Right now I don't know how to set it up without path.dirname().
@jenniferyee Ok, a quick fix for the user would be to download a release from github, move the data directory, change path in __init__.py and run installation based on local files.
L51-55 of init.py are
"""
path_1 = path.join(MODULE_PATH, 'data')
if path.isdir(path_1):
DATA_PATH = path_1
else:
DATA_PATH = path.join(path.dirname(file), 'data')
"""
This points to source/MulensModel/data
That file points to ../../data
This is a relative path, which is generally bad practice, and it seems the reason is that it doesn't always work. For instance, when MulensModel is installed via Google Colab, it can't find interpolation_table_b0b1_v3.dat.
Why is DATA_PATH set up this way? Why can't we set it up without the relative paths?
The text was updated successfully, but these errors were encountered: