-
Notifications
You must be signed in to change notification settings - Fork 8
Revised SurveyQC for Fucito #22
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
base: master
Are you sure you want to change the base?
Conversation
pull from main 08/11
Made changes to match_answers_to_notifications to avoid unbound error
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.
Looks good, just a few minor changes. Try to make anything you upload to github as vanilla as possible (not based on your directory organization, local package installations, etc.)
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.
Can you delete these .DS_Store files?
Might be worth implementing a .gitignore with all DS_Store and ipynb_checkpoint files (i.e. *.DS_Store)
| "source": [ | ||
| "# Uncomment the line below and use it to install any necessary packages.\n", | ||
| "#%pip install ..." | ||
| "%pip install matplotlib" |
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.
Can you add a %pip install -r requirements.txt and test from a totally fresh python environment to see what packages are needed.
| "!rm -rf $(find . -type d -name .ipynb_checkpoints)\n", | ||
| "\n", | ||
| "base_dir = \"raw_data\"\n", | ||
| "base_dir = \"files/raw_data\"\n", |
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.
remove files/ throughout
| " (schedule['BeiweID'] == beiwe_id) &\n", | ||
| " (schedule['DeliveredUTC'] < timestamp) & \n", | ||
| " (schedule['TruncatedUTC'] > timestamp)\n", | ||
| " (schedule['DeliveredUTC'] <= timestamp) & # inclusive bounds are usually safer\n", |
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.
Remove comment
| " counts.loc[counts['BeiweID'] == beiwe_id, 'OutsideSubmissions'] += 1\n", | ||
| " print(f\"Submission outside of diary period: {file_path}\")\n", | ||
| " outside += 1\n", | ||
| " valid_row = False # <<< critical: don't treat as valid\n", |
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.
remove comment
Made changes to match_answers_to_notifications to avoid unbound error