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

Added the possibility to unroll the scientific metadata tree from a particular point #42

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

toqduj
Copy link
Collaborator

@toqduj toqduj commented Jul 5, 2023

The option "startPath" has been added to scientific_metadata in case you don't want the entire tree from "/" to be ingested. This can be helpful, for example, when you are storing raw, processed and analysed data in a single file and only want to catalog the analysis.

Copy link

@bpedersen2 bpedersen2 left a comment

Choose a reason for hiding this comment

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

Looks like a good idea

@bpedersen2
Copy link

probably a rebase

@@ -92,7 +92,7 @@ def unwind(


def scientific_metadata(
filename, excludeRootEntry: bool = True, skipKeyList: list = []
filename, excludeRootEntry: bool = True, skipKeyList: list = [], startPath:str="/"
Copy link
Collaborator

Choose a reason for hiding this comment

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

flake8 is probably going to want spaces around the =

@dylanmcreynolds
Copy link
Collaborator

Tests are failing on this. Is this something you still want to work on?

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