Skip to content

refactor(output): simplify FileStudyOutputs class#3243

Merged
MartinBelthle merged 25 commits into
devfrom
refactor/output-storage
Jun 10, 2026
Merged

refactor(output): simplify FileStudyOutputs class#3243
MartinBelthle merged 25 commits into
devfrom
refactor/output-storage

Conversation

@MartinBelthle

Copy link
Copy Markdown
Contributor

No description provided.

@MartinBelthle MartinBelthle self-assigned this Jun 9, 2026
@pull-request-size pull-request-size Bot added size/L and removed size/S labels Jun 9, 2026
@MartinBelthle MartinBelthle marked this pull request as ready for review June 10, 2026 08:12
@MartinBelthle MartinBelthle requested a review from sylvlecl June 10, 2026 08:12

@sylvlecl sylvlecl left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Looks good overall, just suggestions about naming and place of things

Comment thread antarest/output/storage/v2/storage.py Outdated

def get_ui(self) -> DigestUI:
@staticmethod
def get_ui(file_path: Path) -> DigestUI:

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

We could rename to "parse" something, to make it clear it parses the file.

Could be a free function in antarest.output.filestudy, too

@MartinBelthle MartinBelthle Jun 10, 2026

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I renamed it parse_file_for_ui but kept it here just to centralize the logic

Comment thread antarest/study/storage/rawstudy/model/helpers.py Outdated
Comment thread antarest/output/storage/file/storage.py Outdated
@MartinBelthle MartinBelthle requested a review from sylvlecl June 10, 2026 10:52
@MartinBelthle MartinBelthle merged commit e6e442a into dev Jun 10, 2026
14 of 15 checks passed
@MartinBelthle MartinBelthle deleted the refactor/output-storage branch June 10, 2026 14:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants