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
That way, it doesn't matter where the data is on your disk.
If there's other places in the code where assumptions are made about paths of certain data files, we might want to consider adding a config object that's passed around inside the code. So you can always start with
from rgcpd import CFG
# e.g. use case configuration or settings files
CFG.load_from_file('config_file')
# Or update settings dynamically:
CFG.set_input_folder('/some/path/to/data/folder')
Then, in the source code, you can always just access CFG['input_folder'].
This can also be a good way to set default settings. Now, I see e.g. Root folder for output. If None, default is your '/users/{username}/Download'.
The text was updated successfully, but these errors were encountered:
The example notebook (https://github.com/AI4S2S/proto/blob/master/seasonal_mode.ipynb) seems to couple a folder that's meant for input data to a folder that (I guess) represents the base path of the source code of RGCPD:
It might be more robust to separate the two, i.e. just pass in the data path directly:
That way, it doesn't matter where the data is on your disk.
If there's other places in the code where assumptions are made about paths of certain data files, we might want to consider adding a config object that's passed around inside the code. So you can always start with
Then, in the source code, you can always just access
CFG['input_folder']
.This can also be a good way to set default settings. Now, I see e.g.
Root folder for output. If None, default is your '/users/{username}/Download'
.The text was updated successfully, but these errors were encountered: