Skip to content
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

Refactor data set registration #44

Merged
merged 3 commits into from
Oct 26, 2023
Merged

Refactor data set registration #44

merged 3 commits into from
Oct 26, 2023

Conversation

jeremykubica
Copy link

Breaks data set registration into a function to reduce duplicate code. Also adds a check on the file's existence.

@codecov
Copy link

codecov bot commented Oct 24, 2023

Codecov Report

Attention: 10 lines in your changes are missing coverage. Please review.

Comparison is base (3850d9e) 1.24% compared to head (4bd628c) 1.23%.

Additional details and impacted files
@@           Coverage Diff            @@
##            main     #44      +/-   ##
========================================
- Coverage   1.24%   1.23%   -0.01%     
========================================
  Files         18      19       +1     
  Lines       2898    2908      +10     
========================================
  Hits          36      36              
- Misses      2862    2872      +10     
Files Coverage Δ
src/deepdisc/data_format/register_data.py 0.00% <0.00%> (ø)

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

Copy link
Owner

@grantmerz grantmerz 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 except I would like to have the function in DatasetCatalog.register be an argument that the user can supply rather than set to get_data_from_json (although that can be a default argument). This is because data might be in different enough formats that I would like the user to be able to supply a custom function (see Issue #33)

@jeremykubica
Copy link
Author

Sounds good. I added it that option.

@jeremykubica jeremykubica merged commit 1151dc1 into main Oct 26, 2023
2 of 5 checks passed
@jeremykubica jeremykubica deleted the register_ds branch October 26, 2023 14:43
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