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

#6: Implemented DataHandler class and extract/remove/namelist #7

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

johannesbulin
Copy link
Collaborator

(See issue #6)

Added support for data pipelines to ifsbench. The main feature is a DataHandler base class that can perform a given action on a working directory. Currently I've implemented:

  • RenameHandler - for moving/renaming/copying files, using regular expressions.
  • NamelistHandler - for modifying namelists.
  • ExtractHandler - for extracting archives.

Talking points / request for feedback:

  • At the moment, nothing in the data pipeline uses the InputFile concept that we've used before (with file hashes and other things). If you think that this should be included, I'd be happy about some suggestions.
  • I am not a big fan of having enums as embedded classes (RenameHandler.RenameMode for example). It's a bit clunky to write but I haven't come up with a better solution.

@FussyDuck
Copy link

FussyDuck commented Dec 16, 2024

CLA assistant check
All committers have signed the CLA.

@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Please upload report for BASE (main@a847cbd). Learn more about missing BASE report.

Additional details and impacted files
@@           Coverage Diff           @@
##             main       #7   +/-   ##
=======================================
  Coverage        ?   85.67%           
=======================================
  Files           ?       16           
  Lines           ?     1005           
  Branches        ?        0           
=======================================
  Hits            ?      861           
  Misses          ?      144           
  Partials        ?        0           

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

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.

3 participants