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

#810 Add the possibility to zip the inputs and outputs for N simulation #820

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

barondim
Copy link
Collaborator

Checklist before requesting a review

use '[x]' to check the checkboxes, or submit the PR and then click the checkboxes

  • unit tests and non regression tests were added (update of inputs, outputs, SA, algos)
  • main documentation was updated (update of input/output file)
  • the corresponding milestone was added in the ticket and in this PR

@barondim barondim added this to the v1.7.0 milestone Dec 20, 2024
@barondim barondim marked this pull request as ready for review December 20, 2024 19:02
@barondim barondim force-pushed the 810_SA_add_the_possibility_zip_the_inputs_and_outputs branch from cc022b3 to abe282a Compare December 20, 2024 19:06
@barondim barondim linked an issue Jan 6, 2025 that may be closed by this pull request
Signed-off-by: Dimitri Baron <dimitri.baron@rte-france.com>
@barondim barondim force-pushed the 810_SA_add_the_possibility_zip_the_inputs_and_outputs branch from abe282a to 1826950 Compare January 6, 2025 15:26
Copy link
Contributor

@rosiereflo rosiereflo left a comment

Choose a reason for hiding this comment

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

It seems that the N output will not be zipped. Also, the documentation and tests needs to be updated.

"$MPIRUN_PATH" -np $NBPROCS $DYNAFLOW_LAUNCHER_INSTALL_DIR/bin/DynaFlowLauncher --log-level $DYNAFLOW_LAUNCHER_LOG_LEVEL \
--network $2 \
--config $3 \
--contingencies $4
fi
else
if [ -n "$ZIP_ARCHIVE" ]; then
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe we should add a check that the zip archive exists

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

The check is made in the C++ code

Copy link
Contributor

Choose a reason for hiding this comment

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

yes, but it is also the case for network, config and contingencies files and yet they are tested in the other branch. This is to be homogeneous

Signed-off-by: Dimitri Baron <dimitri.baron@rte-france.com>
@barondim barondim requested a review from rosiereflo January 9, 2025 10:48


std::string formatZipErrorMessage(const zip::ZipException& e) {
std::stringstream zipErrorStream;
Copy link
Contributor

Choose a reason for hiding this comment

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

Why overriding the messages sent by libzip? The general exception catch should be enough ?

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.

[SA] add the possibility zip the inputs and outputs
2 participants