Skip to content

[Bug] Graphs created with create_graph_without_edges are not readable with read_graph  #596

@HenrZu

Description

@HenrZu

Bug description

While saving a run with the function (using create_graph_without_edges) , i tried to read the graph afterwards with read_graph.
The error massage happens during the deserialize process.
However, i do not initiliaze any dampings (which could be the reason for this, since this objects are expected during deserialization.

Version

Linux

To reproduce

Create any graph and run the parameter study with the save_results_with_params function like this:

    parameter_study.run(
        [](auto&& g) {
            return draw_sample(g);
        },
        [&](auto results_graph) {
            ensemble_results.push_back(mio::interpolate_simulation_result(results_graph));

            ensemble_params.emplace_back();
            ensemble_params.back().reserve(results_graph.nodes().size());
            std::transform(results_graph.nodes().begin(), results_graph.nodes().end(),
                           std::back_inserter(ensemble_params.back()), [](auto&& node) {
                               return node.property.get_simulation().get_model();
                           });

            save_result_status = save_result_with_params(ensemble_results.back(), ensemble_params.back(), {0, 1},
                                                         tmp_results_dir, run_idx);

            ++run_idx;
        });

Relevant log output

No response

Add any relevant information, e.g. used compiler, screenshots.

No response

Checklist

  • Attached labels, especially loc:: or model:: labels.
  • Linked to project

Metadata

Metadata

Assignees

Labels

class::bugBugs found in the softwareloc::backendThis issue concerns the C++ backend implementation.model::odeThis issue concerns any kind of ODE-based model.prio::moderateThe priority of this task is moderate.

Type

No type

Projects

Status

Done (Total)

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions