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

Test plotting functions #711

Open
ulfmueller opened this issue Jan 18, 2024 · 3 comments
Open

Test plotting functions #711

ulfmueller opened this issue Jan 18, 2024 · 3 comments
Assignees

Comments

@ulfmueller
Copy link
Member

In our latest release the plotting functions were tested and should work as desired. Please create a clean environment with that release and test the plotting functions and compare the results with the corresponding plotting function and setting but taking the current dev branch. If you find out issues/bugs, please create an issue and/or try to fix them in a features Branch (please create one, being named s.th. like 'features/#numberofthereferringissue-e.g-this-one

@ClaraBuettner can you provide a list of the rather standard and well working plotting functions? - so @smhsadat can start with them.

@ClaraBuettner
Copy link
Contributor

Sure, I can do that.
The plot I used the most is plot_grid. This function can visualize many different results. I would start with these settings:

your_etrago_object.plot_grid(
    line_colors='expansion_abs',
    bus_colors='storage_expansion',
    bus_sizes=0.0000001,
    scaling_store_expansion={
        "H2": 50,
        "heat": 200,
         "battery": 10},
)

In the docstring of that function, you find the other options for line_colors and bus_colors that you should try out. I tested all combinations before the latest release, so they all should work well.

Afterwards, I would test flexibility_usage. You can find the available flexibility options that can be plotted in the if-statements.

The plot plot_carrier is also quite new and should work well.

I can extend this list later on, but I guess this is already enough as a starting point.

@smhsadat
Copy link

Thanks @ClaraBuettner, I will update you on the coming Monday.

@smhsadat
Copy link

smhsadat commented Jan 28, 2024

@ulfmueller , @ClaraBuettner,
I created two clear separate environments for eTraGo 0.90 and the current dev branch. The same period of time (72h, 300h, 1000h) was used for running each version of eTraGo. Using the dev branch environment, the results of plotting for both eTraGo versions were compared to each other. The plotting was examined for the "plot_grid" function, focusing on two options: 1. line_color, 2. bus_color. Generally, the results of plotting were similar, and some issues were identified during the examination of the plots, as provided below:
1. The plotting for (only) line_color was similar with no issues.
2. The plotting for bus_grid using bus_color:
A. For all options of "bus_color," the default scaling of "bus_sizes" is not suitable to show the plot results adequately. A suggestion could be to include bus_sizes as a main requirement for generating the graph so that the user can add the value. This will allow the user to adjust the bus_sizes for a more readable map.

B. For the "h2_battery_storage_expansion" option:
*The color of overground and underground is similar.
*H2_underground and overground buses appear without any grid connection, unlike the battery.
*No legends are available.

C. For the 'gen_dist' option:
*No legends are available.

D. For 'ramp_up & ramp_up' options:
*The plot isn’t able to generate the graph, indicating that the bus is not recognized in the DataFrame.

I will continue checking the plotting results, including "flexibility_usage," and welcome any feedback on my progress.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

No branches or pull requests

3 participants