Skip to content

Add dea_versioned naming conventions#490

Open
jeremyh wants to merge 3 commits intoopendatacube:developfrom
jeremyh:versioned_names
Open

Add dea_versioned naming conventions#490
jeremyh wants to merge 3 commits intoopendatacube:developfrom
jeremyh:versioned_names

Conversation

@jeremyh
Copy link
Copy Markdown
Collaborator

@jeremyh jeremyh commented Nov 2, 2025

Adds options conventions="dea_versioned" and conventions="dea_s2_versioned".

It would be nice to combine them into one naming convention, but that would require a bigger refactor of eodatasets: they could no longer be static, as the conventions would have to change slightly depending on satellite.

@jeremyh jeremyh changed the title Add dea_versioned naming conventions Add dea_versioned naming conventions Nov 2, 2025
@codecov
Copy link
Copy Markdown

codecov bot commented Nov 2, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 84.76%. Comparing base (8eca8e4) to head (c5e1bce).

Additional details and impacted files
@@             Coverage Diff             @@
##           develop     #490      +/-   ##
===========================================
+ Coverage    84.73%   84.76%   +0.03%     
===========================================
  Files           26       26              
  Lines         4527     4536       +9     
===========================================
+ Hits          3836     3845       +9     
  Misses         691      691              

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@jeremyh
Copy link
Copy Markdown
Collaborator Author

jeremyh commented Nov 2, 2025

@robbibt I'm currently calling them dea_versioned and dea_s2_versioned but other suggestions are welcome :)

@jeremyh jeremyh marked this pull request as ready for review November 13, 2025 21:54
@sixy6e
Copy link
Copy Markdown
Collaborator

sixy6e commented Dec 11, 2025

It would be nice to combine them into one naming convention, but that would require a bigger refactor of eodatasets: they could no longer be static, as the conventions would have to change slightly depending on satellite.

Yeah, it would be nice, and the only reason S2 is different is to account for the insertion of the datatake sensing time that already exists in GAs data products.

In a future state, consolidation would be ideal.

But for now, as it's explicit for the S2 case, I'd suggest the same for Landsat, i.e dea_ls_versioned. I'd recommend dropping the a in dea though. How much is there in the existing codebase that refers to dea?

Comment thread eodatasets3/names.py
)


class DEAVersionedNamingConventions(DEANamingConventions):
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Is there any benefit to being explicit with a DEALandsatVersionedNamingConventions as what is done for DEAS2VersionedNamingConventions? Or simply that this would be generic that items other and Landsat could use it?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Yes, in theory they were designed to be multi-sensor originally, it's just s2 that broke it. They're still intended to be the general defaults when a platform doesn't need its own unique conventions.

It's also for consistency with the other naming conventions in the codebase. We could change them to "de" as mentioned above, though it might sound odd for there to only be one set called "de"

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