From a9714ef897940f5f98f1fac3639357f3a1f99ef9 Mon Sep 17 00:00:00 2001 From: fel15133 Date: Fri, 13 Jun 2025 10:50:00 +0200 Subject: [PATCH 1/3] addition of example of to_dataframe() in post-processing --- examples/02_Complex/complex_example_results.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/examples/02_Complex/complex_example_results.py b/examples/02_Complex/complex_example_results.py index 8ff9c7a95..290a9882d 100644 --- a/examples/02_Complex/complex_example_results.py +++ b/examples/02_Complex/complex_example_results.py @@ -31,3 +31,7 @@ # --- Plotting internal variables manually --- results.plot_heatmap('BHKW2(Q_th)|on') results.plot_heatmap('Kessel(Q_th)|on') + + # Dataframes from results: + fw_bus = results['Fernwärme'].node_balance().to_dataframe() + all = results.solution.to_dataframe() \ No newline at end of file From e2c66b30d34f52c8967f0138c0fb7168efbcf63d Mon Sep 17 00:00:00 2001 From: Felix Panitz Date: Fri, 13 Jun 2025 10:57:46 +0200 Subject: [PATCH 2/3] adding line (for bugfix in linting) --- examples/02_Complex/complex_example_results.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/02_Complex/complex_example_results.py b/examples/02_Complex/complex_example_results.py index 290a9882d..24ae5ae2c 100644 --- a/examples/02_Complex/complex_example_results.py +++ b/examples/02_Complex/complex_example_results.py @@ -34,4 +34,5 @@ # Dataframes from results: fw_bus = results['Fernwärme'].node_balance().to_dataframe() - all = results.solution.to_dataframe() \ No newline at end of file + all = results.solution.to_dataframe() + From 5a1d9965312426d6ff85fb13a45524db46c51399 Mon Sep 17 00:00:00 2001 From: fel15133 Date: Fri, 13 Jun 2025 11:04:46 +0200 Subject: [PATCH 3/3] deleting whitespace (bugfix in linting) --- examples/02_Complex/complex_example_results.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/02_Complex/complex_example_results.py b/examples/02_Complex/complex_example_results.py index 24ae5ae2c..f4428d5ed 100644 --- a/examples/02_Complex/complex_example_results.py +++ b/examples/02_Complex/complex_example_results.py @@ -35,4 +35,4 @@ # Dataframes from results: fw_bus = results['Fernwärme'].node_balance().to_dataframe() all = results.solution.to_dataframe() - +