Skip to content

Conversation

@siyao-zhu
Copy link
Contributor

Made changes to match_answers_to_notifications to avoid unbound error

siyao-zhu and others added 2 commits August 11, 2025 16:37
Made changes to match_answers_to_notifications to avoid unbound error
Copy link
Contributor

@MMel099 MMel099 left a 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.)

Copy link
Contributor

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"
Copy link
Contributor

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",
Copy link
Contributor

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",
Copy link
Contributor

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",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove comment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants