Skip to content

Conversation

@mmagnuski
Copy link
Collaborator

Make sure the tutorials are up to date.

  • clean up the spike-triggered spectrum tutorial
  • clean up the fieldtrip tutorial
  • add simple selectivity tutorial (might be useful for some of our students)

@mmagnuski mmagnuski requested a review from Copilot April 25, 2025 16:55
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR aims to update the tutorials by cleaning up the fieldtrip tutorial and reinforcing the tutorial infrastructure.

  • Added detailed docstrings to guide data retrieval functions.
  • Introduced a new get_fieldtrip_metadata function to download tutorial metadata.
  • Updated the module exports in init.py to include the new metadata function.

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
pylabianca/utils/data.py Added docstrings and a new function for metadata download support.
pylabianca/utils/init.py Updated exports to include get_fieldtrip_metadata.
Comments suppressed due to low confidence (2)

pylabianca/utils/data.py:60

  • [nitpick] Consider renaming 'fname' to 'metadata_path' in get_fieldtrip_metadata for improved clarity about its content.
fname = pooch.retrieve(

pylabianca/utils/data.py:56

  • Consider moving the hardcoded URL (and associated known hash) into module-level constants to facilitate easier maintenance and potential future updates.
file_url = ('https://www.dropbox.com/scl/fi/0snol5gx92kpzm1aqmb6f/monkey_stim.csv?rlkey=pfqcjg2tuaevbfjgntak5r7gm&st=nueys5na&dl=1')

@codecov
Copy link

codecov bot commented Apr 25, 2025

Codecov Report

Attention: Patch coverage is 14.28571% with 6 lines in your changes missing coverage. Please review.

@@           Coverage Diff           @@
##            main     #41     +/-   ##
=======================================
- Coverage   75.3%   75.2%   -0.2%     
=======================================
  Files         18      18             
  Lines       3626    3633      +7     
=======================================
+ Hits        2733    2734      +1     
- Misses       893     899      +6     
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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