Skip to content

contrib: Add renewable conversion to yaml components#59

Merged
tbittar merged 23 commits intomainfrom
contrib_convert_study_to_yaml_e_to_e
Jan 9, 2025
Merged

contrib: Add renewable conversion to yaml components#59
tbittar merged 23 commits intomainfrom
contrib_convert_study_to_yaml_e_to_e

Conversation

@killian-scalian
Copy link
Collaborator

@killian-scalian killian-scalian commented Dec 24, 2024

  • Add component convert renewable to component list and convert it to yaml
  • Add tests
  • Add thermals conversion

@killian-scalian killian-scalian changed the title contrib: Add renewable conversion to yaml compnent contrib: Add renewable conversion to yaml components Jan 7, 2025
Copy link
Collaborator

@tbittar tbittar left a comment

Choose a reason for hiding this comment

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

Requested changes in the comments

Copy link
Collaborator

@tbittar tbittar left a comment

Choose a reason for hiding this comment

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

Encore quelques petites commantaires ;)

Copy link
Collaborator

@tbittar tbittar left a comment

Choose a reason for hiding this comment

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

Plus que 2 micro remarques

self.study_path = study_input.service.config.study_path # type: ignore
else:
self.study = read_study_local(self.study_path)
self.study_path = resolve_path(study_input)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Tu dois inverser les 2 lignes sinon self.study_path n'est pas défini L31

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Effectiveent

else:
self.study = read_study_local(self.study_path)
self.study_path = resolve_path(study_input)

Copy link
Collaborator

Choose a reason for hiding this comment

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

Et pour mieux tracer les éventuelles erreurs peut-être mettre plutôt elif isinstance(..., Path): .... else: raise TypeError(....)

@tbittar tbittar merged commit 7dd4113 into main Jan 9, 2025
@tbittar tbittar deleted the contrib_convert_study_to_yaml_e_to_e branch January 13, 2025 12:41
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