mcgillradar / bugtracker

Bugtracker is a Python 3 module for tracking insect migration patterns from radar data.
Other
2 stars 0 forks source link

path problem with the nexrad_aws.py file #21

Open Tigroux opened 4 years ago

Tigroux commented 4 years ago

If we execute from ./apps directory, the program give an error because the path in the setting already have a "./apps/ sub-directoie If we execute from ./bugtracket, the program is not able to find "./bugtracker.json" in config = bugtracker.config.load("./bugtracker.json")

I temporary correct the problem with: download_dir = "../" + config['input_dirs']['nexrad']

danielhogg commented 4 years ago

When you run the "generate_config.py" or "rebuild.py", it should be run from the top level directory of the repository.

For nexrad_aws.py and other "apps", they should be run from the /apps directory.

When you run the "generate_config.py", it's a good idea to pick a data root directory outside of the repository (to keep the code and the data separate). Hope this is helpful.