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

change url of info in rao result json serialization #1273

Merged
merged 2 commits into from
Feb 12, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ private RaoResultJsonConstants() {
public static final String VERSION = "version";
public static final String INFO = "info";
public static final String RAO_RESULT_TYPE = "RAO_RESULT";
public static final String RAO_RESULT_INFO = "Generated by Open RAO http://farao-community.github.io";
public static final String RAO_RESULT_INFO = "Generated by Open RAO https://powsybl.readthedocs.io/projects/openrao";

public static final String CONTINGENCY_ID = "contingency";

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"type" : "RAO_RESULT",
"version" : "1.7",
"info" : "Generated by Open RAO http://farao-community.github.io",
"info" : "Generated by Open RAO https://powsybl.readthedocs.io/projects/openrao",
"computationStatus" : "default",
"executionDetails" : "The RAO only went through first preventive",
"costResults" : {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
public class CracImportSteps {

private static final double DOUBLE_TOLERANCE = 1e-1;
private static final String NOT_IMPLEMENTED_JSON = "This step is not implemented for farao-native crac import";
private static final String NOT_IMPLEMENTED_JSON = "This step is not implemented for open-rao-native crac import";
private static final String NOT_IMPLEMENTED_FB = "This step is not implemented for FbConstraintCreationContext";
private static final String TYPE_NOT_HANDLED = "%s type is not handled";
private Crac crac;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public static Network importNetwork(File networkFile, boolean useRdfId) {

public static Pair<Crac, CracCreationContext> importCrac(File cracFile, Network network, String timestamp, CracCreationParameters cracCreationParameters) throws IOException {
if (cracFile.getName().endsWith(".json")) {
// for now, the only JSON format is the farao internal format
// for now, the only JSON format is the open rao internal format
return Pair.of(importCracFromInternalFormat(cracFile, network), null);
} else {
CracCreationContext ccc = importCracFromNativeCrac(cracFile, network, timestamp, cracCreationParameters);
Expand Down