Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
backfill data 2022-08-08 through 2022-10-08 into public bucket #27
backfill data 2022-08-08 through 2022-10-08 into public bucket #27
Changes from all commits
505d622
f620a65
d543719
046a30e
a1627e4
71eb59c
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Running
python data_analysis/rt_daily_aggregations.py
from the project root will throw aModuleNotFoundError: No module named 'scrape_data'
. For this to work, you'll have to create a root level module that importsrt_daily_aggregations
. You can create a module calledapplication.py
, for example, and then addto it. Then running
python application.py
from the project root will work.Therefore, I would remove the
if __name__ == '__main__'
block because this isn't meant to be run from the command line.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was running it as
python3 -m data_analysis.rt_daily_aggregations arg arg arg
from the root directory and it did work... Open to changes but this was convenient for me when I was actually using it to backfill. Does that make sense? Can also try to document this somewhereThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see. I didn't have the
-m
flag so the relative imports didn't work. Leaving it as is is fine, but it would be helpful to document the-m
flag.