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

rename ModelResult > ResultStructure to match README schema description #32

Closed
wants to merge 1 commit into from

Conversation

rbavery
Copy link
Collaborator

@rbavery rbavery commented Jul 30, 2024

Description

The schema and README refer to a Result Structure but the class in stac-model calls it ModelResult. This updates the name in stac-model for consistency.

Related Issue

Type of Change

  • 📚 Examples, docs, tutorials or dependencies update;
  • 🔧 Bug fix (non-breaking change which fixes an issue);
  • 🥂 Improvement (non-breaking change which improves an existing feature);
  • 🚀 New feature (non-breaking change which adds functionality);
  • 💥 Breaking change (fix or feature that would cause existing functionality to change);
  • 🔐 Security fix.

Checklist

  • I've read the CONTRIBUTING.md guide;
  • I've updated the code style using make check;
  • I've written tests for all new methods and classes that I created;
  • I've written the docstring in Google format for all the methods and classes that I used.

@rbavery rbavery requested a review from fmigneault July 31, 2024 00:58
Comment on lines +9 to 12
class ResultStructure(MLMBaseModel):
shape: List[Union[int, float]] = Field(..., min_items=1)
dim_order: List[str] = Field(..., min_items=1)
data_type: DataType
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can you add a ModelResult = ResultStructure alias just after?
This will avoid breaking existing code that could import it directly.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Also, please add a CHANGELOG entry to indicate the preferred new name.

@fmigneault
Copy link
Collaborator

@rbavery If still relevant, rebase against https://github.com/stac-extensions/mlm

@fmigneault fmigneault closed this Oct 3, 2024
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