Skip to content

PyOpenSci review updates including optimizing and consolidating conver_byte_size, cleanup with black for flake8 warnings #17

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

Merged
merged 10 commits into from
Apr 9, 2025

Conversation

bhass-neon
Copy link
Collaborator

Addresses the following from the PyOpenSci review:

  • The flake8 checks included in the CI show lots of minor cleanup most of which could be automatically cleaned up with flake8
  • PR for a potentially more maintainable version of convert_byte_size: revision to optimize convert_byte_size (Potential revision to optimise convert_byte_size #14) + consolidates in the metadata_helpers.py file so different scripts are using the same helper function
  • test_aop_download.py under tests references https://github.com/NEONScience/nu-python-testing, but this returns a 404 error - removed link and explained that additional tests are in a private repository

benjamindonnachie and others added 10 commits March 16, 2025 15:16
I've been optimising a lot of Python code recently and offer this as a potential alternative to convert_byte_size().  Removing the nested if.. elif... statements and making it easier to add additional si prefixes in the future if desired.
… instead of 1000, consolidate repeated code in aop_download.py and metadata_helpers.py
I've been optimising a lot of Python code recently and offer this as a potential alternative to convert_byte_size().  Removing the nested if.. elif... statements and making it easier to add additional si prefixes in the future if desired.
… instead of 1000, consolidate repeated code in aop_download.py and metadata_helpers.py
…s-python into bh_pos

pulling latest from upstream, was not up to date with main branch
flake8 config file set to ignore long lines, line break before/after binary operators, and import warnings in init files
@bhass-neon bhass-neon merged commit 1124cef into main Apr 9, 2025
3 checks passed
@bhass-neon bhass-neon deleted the bh_pos branch April 9, 2025 23:17
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