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

GeoPlot - Adding plotting information via a configuration file. #35

Open
SamuelHall700 opened this issue Jan 31, 2023 · 0 comments
Open
Assignees
Labels
enhancement New feature or request

Comments

@SamuelHall700
Copy link
Collaborator

Currently GeoPlot contains all it's plotting information in internal config files <GeoPlot/bas_geoplot/config/interactive.json> and <GeoPlot/bas_geoplot/config/static.json> which contain default plotting methods of a collection of data-types commonly used in mesh contruction (Fuel, tCO2e, Max Speed, SIC etc.). These values are currently not able to be extended or altered without updates to the GeoPlot repository.

GeoPlot should be extended to allow for the use of a configuration file for plotting information, which super-seeds the internal config file (though the default internal config file is used for any values not specified in the external config file). This would allow for plotting of new data-types or changing existing plotting of current data-types without needed to update the GeoPlot repository.

This should be accessible via the CLI.
plot_mesh <env_mesh.json> <plotting_config.json>

where the <plotting_config.json> file is of the form (or similar):
{ "SIC": { "fill_color": { "colormap": "BuPu_06", "cmin": 0.0, "cmax": 100.00 } }, "Temperature": { "fill_color": { "colormap": "Veridis" } } }

With the plotting information for SIC given in the config overwriting internal "SIC" plotting information, and plotting information for "Temperature" being added as it is not included in the default internal config file.

@SamuelHall700 SamuelHall700 added the enhancement New feature or request label Jan 31, 2023
@gecoombs gecoombs self-assigned this Jan 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants