-
Notifications
You must be signed in to change notification settings - Fork 2
Improve descriptive_names #44
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
Merged
Merged
Changes from 8 commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
dc24995
Fix missing distinction between different `TransmissionMode`s in the …
35b6845
Adjusted `descriptive_names` to be more robust to available packages.…
793f418
Enable custom boundary background map instead of the default coastlin…
b6ba98f
Enable proper testing of descriptive_names and fix docs
13bccd2
Improve documentation
33d20bf
Fix missing packages in the test environment and update NEWS.md
7752478
Add suggestions from review
7b99197
Fix versions in docstring of generate_all_in_one_case test function
de65edd
Fix grammar
0cfa959
Fix grammar
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,31 @@ | ||
| # [Improve performance](@id how_to-improve_performance) | ||
|
|
||
| Due to the just-in-time (JIT) compilation of Julia, the instantiation of the `EnergyModelsGUI` window takes some time (but reopening the window will take less time). | ||
| This also includes interactive features in the GUI (creating a the first plot is a lot lower than the subsequent plots). | ||
|
dqpinel marked this conversation as resolved.
Outdated
|
||
|
|
||
| That being said, it is possible to boost startup time by turning of redundant features. | ||
| One can for example plot sub-areas only on demand (which for large system significantly reduces setup of the `GUI`) through | ||
|
|
||
| ```julia | ||
| gui = GUI(case; pre_plot_sub_components = false) | ||
| ``` | ||
|
|
||
| If there is no need to use the background map when using `EnergyModelsGeography` one can skip the usage of `GeoMakie` (this will also increase performance) | ||
|
|
||
| ```julia | ||
| gui = GUI(case; use_geomakie = false) | ||
| ``` | ||
|
|
||
| If the user do not see any usage of the `DataInspector` tool provided by `Makie` (which enables information of plot objects upon hovering with the mouse) one could use the `enable_data_inspector` toogle to further improve performance | ||
|
|
||
| ```julia | ||
| gui = GUI(case; enable_data_inspector = false) | ||
| ``` | ||
|
|
||
| It is also possible to use a simplified plotting of the `Link`s/`Transmission`s using the `simplified_connection_plotting` which improves performance slightly. | ||
| This option is however more motivated by simplified visuals. | ||
| One can also use `simplify_all_levels` to have this simplified plotting on all levels (not just the top level). | ||
|
|
||
| ```julia | ||
| gui = GUI(case; simplified_connection_plotting = true, simplify_all_levels = true) | ||
| ``` | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| # [Use custom backgruond map](@id how_to-use_custom_backgruond_map) | ||
|
|
||
| The GUI enables user defined background maps in `.geojson` format through the `GUI` constructor parameter `String::map_boundary_file`. One could for example download NUTS boundaries as GeoJSON from [datahub.io](https://datahub.io/core/geo-nuts-administrative-boundaries), save this file at a desired location and use this file path as `map_boundary_file`. | ||
|
|
||
| Downloading [NUTS2](https://r2.datahub.io/clt98mkvt000ql70811z8xj6l/main/raw/data/NUTS_RG_60M_2024_4326_LEVL_2.geojson), one can with a EMX-case variable `case` | ||
|
|
||
| ```julia | ||
| gui = GUI(case; map_boundary_file = joinpath(@__DIR__, "NUTS_RG_60M_2024_4326_LEVL_2.geojson")) | ||
| ``` | ||
|
|
||
| get something like | ||
|
|
||
|  |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| n_Reg_1-CO2_storage_geo: | ||
| y: 46.26174 | ||
| x: 5.0772 | ||
| n_Reg_1-Coal_source: | ||
| y: 46.26174 | ||
| x: 6.92496 | ||
| n_Reg_1-Coal_power_plant: | ||
| y: 45.17195 | ||
| x: 5.29398 | ||
| n_Reg_1-Electricity_demand: | ||
| y: 46.87906 | ||
| x: 6.00108 | ||
| n_Reg_1-Availability: | ||
| y: 45.87906 | ||
| x: 6.00108 |
129 changes: 129 additions & 0 deletions
129
test/design/example_all_structures/Natural gas area.yml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,129 @@ | ||
| n_CO2_storage_big: | ||
| y: 45.76981 | ||
| x: 8.47282 | ||
| n_Reg_2-NG_source: | ||
| y: 44.80648 | ||
| x: 8.57883 | ||
| n_heat_demand: | ||
| y: 46.08825 | ||
| x: 10.21651 | ||
| "n_hydrogen storage": | ||
| y: 45.4147 | ||
| x: 8.44048 | ||
| n_CO2_storage_small: | ||
| y: 46.27751 | ||
| x: 9.99404 | ||
| n_ss_inv_electricity_demand: | ||
| y: 46.1934 | ||
| x: 10.11129 | ||
| "n_reserve down demand": | ||
| y: 46.42308 | ||
| x: 10.07954 | ||
| n_market_buy: | ||
| y: 45.46697 | ||
| x: 9.71667 | ||
| n_hydro_pump: | ||
| y: 44.64628 | ||
| x: 10.23688 | ||
| n_balancing_source: | ||
| y: 46.04724 | ||
| x: 8.55851 | ||
| n_hydro_generator_down: | ||
| y: 44.32898 | ||
| x: 10.13109 | ||
| n_water_source: | ||
| y: 45.57435 | ||
| x: 10.76056 | ||
| n_hydro_av: | ||
| y: 45.53768 | ||
| x: 9.8735 | ||
| n_heat_pump: | ||
| y: 46.3376 | ||
| x: 9.41381 | ||
| n_hydro_generator_up: | ||
| y: 45.1698 | ||
| x: 10.21044 | ||
| n_wind_simple: | ||
| y: 46.2075 | ||
| x: 8.45478 | ||
| n_ss_electricity_demand: | ||
| y: 45.7621 | ||
| x: 10.07954 | ||
| n_hub-h2_demand: | ||
| y: 45.86594 | ||
| x: 10.2105 | ||
| n_battery: | ||
| y: 46.42614 | ||
| x: 9.93808 | ||
| n_CCGT_retrofittable: | ||
| y: 45.60759 | ||
| x: 8.69229 | ||
| n_PEM: | ||
| y: 45.21135 | ||
| x: 8.43592 | ||
| n_ocean: | ||
| y: 43.95617 | ||
| x: 10.14167 | ||
| n_TES: | ||
| y: 46.49982 | ||
| x: 9.57916 | ||
| n_market_sale: | ||
| y: 45.4147 | ||
| x: 10.22099 | ||
| n_ss_electricity_source: | ||
| y: 45.94354 | ||
| x: 8.45164 | ||
| n_hub-electricity_source: | ||
| y: 45.00822 | ||
| x: 8.48167 | ||
| n_district_heat_source: | ||
| y: 46.50915 | ||
| x: 9.30152 | ||
| n_NG_source_for_CCGT: | ||
| y: 45.59557 | ||
| x: 8.45479 | ||
| n_hub: | ||
| y: 45.57898 | ||
| x: 9.28942 | ||
| n_ss_inv_electricity_source: | ||
| y: 46.33006 | ||
| x: 8.52708 | ||
| n_h2_demand_reformer: | ||
| y: 45.65866 | ||
| x: 10.20449 | ||
| n_Reg_2-Availability: | ||
| y: 45.3385 | ||
| x: 9.42555 | ||
| n_CCS_unit: | ||
| y: 45.73977 | ||
| x: 8.69229 | ||
| n_CO2_source_negative: | ||
| y: 46.44946 | ||
| x: 8.67481 | ||
| n_hydro_reservoir_up: | ||
| y: 45.17244 | ||
| x: 10.54897 | ||
| n_reformer: | ||
| y: 46.58908 | ||
| x: 9.83352 | ||
| n_Reg_2-ng+CCS_power_plant: | ||
| y: 44.70925 | ||
| x: 9.43732 | ||
| n_electricity_demand_big: | ||
| y: 45.94706 | ||
| x: 10.09024 | ||
| n_hydropower_simple: | ||
| y: 46.5186 | ||
| x: 8.94828 | ||
| n_hydro_gate: | ||
| y: 44.90462 | ||
| x: 10.5442 | ||
| n_Reg_2-Electricity_demand: | ||
| y: 44.89218 | ||
| x: 9.73437 | ||
| n_CO2_storage_reformer_sink: | ||
| y: 46.58908 | ||
| x: 10.08261 | ||
| n_hydro_reservoir_down: | ||
| y: 44.61719 | ||
| x: 10.50137 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| "Coal area": | ||
| y: 45.87906 | ||
| x: 6.00108 | ||
| "Natural gas area": | ||
| y: 45.3385 | ||
| x: 9.42555 |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.