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

Modeler 4.6: system import [ANT-2207] #2530

Merged
merged 53 commits into from
Dec 18, 2024
Merged

Conversation

payetvin
Copy link
Contributor

@payetvin payetvin commented Dec 10, 2024

This PR add the ability to read a YAML file containing all the infos about the electric system and which models they're related to, converting it into system-model structures.

@payetvin payetvin self-assigned this Dec 10, 2024
@payetvin payetvin force-pushed the feature/4.6-system-import branch from 4d4820f to 963cbea Compare December 11, 2024 15:07
@payetvin payetvin marked this pull request as ready for review December 16, 2024 08:39
}
};

static std::pair<std::string, std::string> splitLibraryModelString(const std::string& s)
Copy link
Member

Choose a reason for hiding this comment

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

Use a dedicated struct for the return type

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think it's fine to use a pair and get var like this in this context const auto [libraryId, modelId] = getSplit...

src/solver/systemParser/converter.cpp Outdated Show resolved Hide resolved
src/solver/systemParser/converter.cpp Outdated Show resolved Hide resolved
@flomnes flomnes merged commit ce06183 into develop Dec 18, 2024
10 checks passed
@flomnes flomnes deleted the feature/4.6-system-import branch December 18, 2024 13:06
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