Skip to content

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

Open
wants to merge 4 commits into
base: dev
Choose a base branch
from
Open

Add new ODV datatype #20581

wants to merge 4 commits into from

Conversation

pavanvidem
Copy link
Member

Ocean Data View format is used in ODV interactive tool.

How to test the changes?

(Select all options that apply)

  • I've included appropriate automated tests.
  • This is a refactoring of components with existing test coverage.
  • Instructions for manual testing are as follows:
    1. [add testing steps and prerequisites here if you didn't write automated tests covering all your changes]

License

  • I agree to license these and all my past contributions to the core galaxy codebase under the MIT license.

Ocean Data View format is used in ODV interactive tool.
def sniff(self, filename):
try:
with open(filename, "r", encoding="utf-8") as f:
for line in f:
Copy link
Member

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.


elif section == "Meta Variables":
name = value.split(";")[0].strip()
dataset.metadata.meta_variables.append(name)
Copy link
Member

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?

Copy link
Member Author

Choose a reason for hiding this comment

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

@pavanvidem pavanvidem marked this pull request as ready for review July 9, 2025 12:39
@github-actions github-actions bot added this to the 25.1 milestone Jul 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants