Skip to content

feat: add URL normalization for Figshare downloads Implement a new f…#334

Open
chardiwall wants to merge 7 commits into
neuromorphs:developfrom
chardiwall:fix-dvsgesture-download
Open

feat: add URL normalization for Figshare downloads Implement a new f…#334
chardiwall wants to merge 7 commits into
neuromorphs:developfrom
chardiwall:fix-dvsgesture-download

Conversation

@chardiwall

@chardiwall chardiwall commented Jul 7, 2026

Copy link
Copy Markdown

Fix Figshare downloads blocked by AWS WAF (#330)

Figshare's https://figshare.com/ndownloader/files/... URLs are blocked by AWS WAF for programmatic clients, causing 0-byte responses and MD5 check failures for datasets such as DVSGesture and CIFAR10DVS.

Fix: Rewrite Figshare download URLs inline in download_url() from:

"https://figshare.com/ndownloader/files/",

To

"https://ndownloader.figshare.com/files/",

##Closes
Fixes #330
Fixes #329

chardiwall and others added 2 commits July 7, 2026 20:10
…nction to normalize Figshare download URLs and add a corresponding test to ensure functionality.
Co-authored-by: Cursor <cursoragent@cursor.com>
@codecov-commenter

codecov-commenter commented Jul 7, 2026

Copy link
Copy Markdown

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 73.70%. Comparing base (94f92fd) to head (8f1c1d6).
⚠️ Report is 3 commits behind head on develop.
❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop     #334      +/-   ##
===========================================
- Coverage    76.48%   73.70%   -2.78%     
===========================================
  Files           48       49       +1     
  Lines         2994     3054      +60     
===========================================
- Hits          2290     2251      -39     
- Misses         704      803      +99     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

chardiwall and others added 4 commits July 8, 2026 05:00
- Added CODECOV_TOKEN to CI configuration for better coverage reporting.
- Introduced a filter to suppress deprecation warnings related to pkg_resources in pyproject.toml.
- Removed the deprecated _normalize_download_url function and replaced its usage in download_url.
- Enhanced plot_animation function to manage figure closing and garbage collection.
- Updated drop_pixel function to ensure float conversion for max_occur calculation.
- Deleted obsolete test file for download utilities.
	modified:   .github/workflows/ci-pipeline.yml
	modified:   test/conftest.py
	new file:   test/test_data/dsec/thun_00_a/disparity_timestamps/thun_00_a_disparity_timestamps.txt
	new file:   test/test_data/dsec/thun_00_a/image_exposure_timestamps_left/thun_00_a_image_exposure_timestamps_left.txt
	new file:   test/test_data/dsec/thun_00_a/image_timestamps/thun_00_a_image_timestamps.txt
	new file:   test/test_data/dsec/thun_00_a/optical_flow_forward_event/000000.png
	new file:   test/test_data/dsec/thun_00_a/optical_flow_forward_timestamps/thun_00_a_optical_flow_forward_timestamps.txt
	modified:   test/test_dsec.py
chore: update CI pipeline and enhance DSEC testing

- Upgraded actions/checkout from v4 to v5 in CI configuration.
- Updated astral-sh/setup-uv from v6 to v8 for improved setup.
- Added new pytest fixtures to facilitate DSEC testing without network downloads.
- Refactored DSEC test cases to utilize the new fixtures and ensure proper data handling.
- Introduced test data files for DSEC optical flow and timestamps to support testing.
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
@cantordust

Copy link
Copy Markdown
Collaborator

@chardiwall Thank you for this PR, I'm going to look over it in detail shortly. One thing I noticed was that you also updated the CI actions. That's indeed overdue, but I'm going to peg those to specific commits (in a dedicated PR), so I was wondering if you could please update the PR to revert those changes? Thank you!

Co-authored-by: Cursor <cursoragent@cursor.com>
@chardiwall

Copy link
Copy Markdown
Author

@cantordust Thank you for following up. I have rolled back the changes on the CI actions. The current version only solves the issue with downloading DVS datasets.

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.

Issue on DVSGesture Dataset Not able to download CIFAR10DVS.

3 participants