-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Add new ODV datatype #20581
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
base: dev
Are you sure you want to change the base?
Add new ODV datatype #20581
Conversation
Ocean Data View format is used in ODV interactive tool.
lib/galaxy/datatypes/text.py
Outdated
def sniff(self, filename): | ||
try: | ||
with open(filename, "r", encoding="utf-8") as f: | ||
for line in f: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please do not iterate over the entire file. Use sniff_prefix() or restrict your iteration to a few lines.
lib/galaxy/datatypes/text.py
Outdated
|
||
elif section == "Meta Variables": | ||
name = value.split(";")[0].strip() | ||
dataset.metadata.meta_variables.append(name) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How big can this be? Should we also prevent it from adding Millions of entries etc?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ocean Data View format is used in ODV interactive tool.
How to test the changes?
(Select all options that apply)
License