Comments (6)
@mark-chung You can view patterns using 'get_pattern'.
To just see the array of pattern multipliers you can use the following.
wn.get_pattern('RS_1').multipliers
If you don't put the .multipliers you can see other information stored with the pattern.
from wntr.
Thanks for your reply @ucchejbb ! I have tried, but the description 'Reservoir_1' was not shown in the output. Can anyone please advice?
from wntr.
@mark-chung you can run "wn.pattern_name_list" to see a list of all available pattern names. My example only pulls out the specific "RS_1". But you just need to insert the appropriate name into wn.get_pattern('pattern_name') to access its information.
from wntr.
@ucchejbb Thanks for comment! I have no issue listing the available pattern names. Just wondering, why in EPANET I could see 'Description' of pattern (please see image in first comment). In the example, within EPANET, the pattern 'RS_1' has a description 'Reservoir_1'. When I use WNTR wn.get_pattern('RS_1'), I only could see pattern name and multiplierarray, but couldn't see the description 'Reservoir_1'. Could this be a limitation of WNTR, that some information in .inp file that could be seen in EPANET, but couldn't be retrieved from WNTR model?
from wntr.
@mark-chung Sorry for my confusion. I thought you were just trying to access the pattern. @kaklise @dbhart Any thoughts on this? I don't recall how to access this information (or if you can).
from wntr.
The name of the pattern goes in the comments above the pattern definition. EPANET GUI keeps this information - the toolkit doesn't. So, we have not pulled in that data to store it on the patterns in wntr. This is true of most of the comments that are allowed in EPANET - WNTR does not store them and you can't access through the EPANET toolkit.
from wntr.
Related Issues (20)
- About Running Programs on the Server HOT 4
- Smaller and variable step-size for solver HOT 9
- How to Avoid 'Reached maximum number of iterations' HOT 1
- Choose location for temp files en***** HOT 1
- How to get a list of pipes names from a list of start , end nodes (tuple) HOT 1
- Adding a list of actions to rules HOT 2
- ENsetlinkvalue unexpectedly fails to change attributes HOT 2
- new added control does not work HOT 2
- Epaneet dylib not available for Darwin HOT 2
- wntr.network.io.from_gis does not capture vertices
- `network_animation` does not behave as intended in Jupyter Notebooks HOT 1
- POSSIBILITY OF NEGATIVE PRESSURE HOT 5
- Questions about optimal scheduling of pumping stations HOT 1
- runnin the program HOT 3
- wntr.network.options has some abnormal annotation contents HOT 1
- Writing an inp file 'self' argument error message HOT 2
- Create a control object or rule object from text input HOT 5
- Get the reactions tab in the inp file from a water network instance HOT 1
- Add PBV support to [VALVES] section
- Generating Interactive leaflet networks HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wntr.