Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nrel-sienna/watermodelsanalytics.jl
https://github.com/nrel-sienna/watermodelsanalytics.jl
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/nrel-sienna/watermodelsanalytics.jl
- Owner: NREL-Sienna
- License: other
- Created: 2020-05-29T22:22:36.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-04-07T21:01:57.000Z (over 2 years ago)
- Last Synced: 2024-06-11T16:00:20.564Z (7 months ago)
- Language: Julia
- Size: 194 KB
- Stars: 3
- Watchers: 15
- Forks: 3
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.md
Awesome Lists containing this project
README
# WaterModelsAnalytics.jl
[![Build Status](https://github.com/NREL-SIIP/WaterModelsAnalytics.jl/workflows/CI/badge.svg?branch=master)](https://github.com/NREL-SIIP/WaterModelsAnalytics.jl/actions?query=workflow%3ACI)
[![codecov](https://codecov.io/gh/NREL-SIIP/WaterModelsAnalytics.jl/branch/master/graph/badge.svg)](https://codecov.io/gh/NREL-SIIP/WaterModelsAnalytics.jl)WaterModelsAnalytics.jl is a Julia package to to support WaterModels.jl (and
possibly WaterSystems.jl) with visualizations and solution validations. Current functionality includes:
- network graph visualizations
- plotting of pump curves for pumps in the network
- feasibility validation of optimal solutions (using WNTR/EPANET)In addition to Julia package dependencies (captured in Project.toml), Python and the following modules are required (along with their sub-dependencies):
- pygraphviz (>=1.5)
- PyPDF2 (>=1.26.0)
- wntr (>=0.3.0)And also the program **graphviz** (specifically `dot`) to write out the graph visualization files.
Basic working example for graph visualization:
```julia
import InfrastructureModels
const IM = InfrastructureModels
import WaterModels
const WM = WaterModels
import WaterModelsAnalytics
const WMA = WaterModelsAnalyticsbasepath = dirname(dirname(pathof(WaterModels)))
data = WM.parse_file(joinpath(basepath, "test/data/epanet/van_zyl.inp"))
IM.load_timepoint!(data, 1)WMA.write_visualization(data, "van_zyl_wm")
```