GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — merged master · PRMS-Python/PRMS-Python@e463fba

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • .gitignore
  • README.md
  • docs
    • .nojekyll
    • build
      • doctrees
        • api.doctree
        • cli.doctree
        • environment.pickle
        • index.doctree
        • tutorial.doctree
      • html
        • .buildinfo
        • .nojekyll
        • _images
          • nash-sutcliffe-ex.png
          • nash-sutcliffe.png
          • obs-mod-flow.png
        • _modules
          • index.html
          • prms_python
            • data.html
            • optimizer.html
            • parameters.html
            • scenario.html
            • util.html
        • _sources
          • api.rst.txt
          • cli.rst.txt
          • index.rst.txt
          • tutorial.rst.txt
        • _static
          • ajax-loader.gif
          • alabaster.css
          • basic.css
          • comment-bright.png
          • comment-close.png
          • comment.png
          • custom.css
          • doctools.js
          • documentation_options.js
          • down-pressed.png
          • down.png
          • file.png
          • jquery-3.1.0.js
          • jquery-3.2.1.js
          • jquery.js
          • minus.png
          • nash-sutcliffe-ex.png
          • nash-sutcliffe.png
          • obs-mod-flow.png
          • plus.png
          • prms-python-200x.png
          • prms-python-32x.png
          • pygments.css
          • searchtools.js
          • underscore-1.3.1.js
          • underscore.js
          • up-pressed.png
          • up.png
          • websupport.js
        • api.html
        • cli.html
        • genindex.html
        • index.html
        • objects.inv
        • search.html
        • searchindex.js
        • tutorial.html
    • index.html
    • source
      • api.rst
      • cli.rst
      • conf.py
      • index.rst
      • tutorial.rst
  • license
  • notebooks
    • PAWN_SA_workflow.ipynb
    • data_examples.ipynb
    • monte_carlo_optimization_result.ipynb
    • monte_carlo_param_resampling.ipynb
    • param_examples.ipynb
    • scenario_series.ipynb
    • statvarfile.ipynb
  • prms_python
    • __init__.py
    • data.py
    • optimizer.py
    • parameters.py
    • scenario.py
    • simulation.py
    • util.py
  • setup.py
  • ship_docs.sh

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Dismiss banner
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎.gitignore‎

Copy file name to clipboardExpand all lines: .gitignore
+5-1Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,13 @@
99
## ipython notebook checkpoint folders
1010
**/.ipynb_checkpoints/
1111

12+
# builds for uploading to PyPI
13+
dist/
14+
build/
15+
prms_python.egg-info/
16+
1217
venv
1318
notebooks/jupyternb-scenario-series-example/
14-
docs/build
1519

1620
**/utility_functions.ipynb
1721
**/scripts/*.data
Collapse file

‎README.md‎

Copy file name to clipboardExpand all lines: README.md
+54-19Lines changed: 54 additions & 19 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,32 @@
11
# PRMS-Python
22

3-
PRMS-Python provides a Python interface to PRMS data files and for running
4-
PRMS simulations. This module tries to improve the management of PRMS simulation
5-
data while also providing useful "pythonic" tools to do scenario-based PRMS
6-
simulations. By "scenario-based" modeling we mean, for example, parameter
7-
sensitivity analysis, where each "scenario" is an iterative perturbation of
8-
one or many parameters. Another example "scenario-based" modeling exercise would
9-
be climate scenario modeling: what will happen to modeled outputs if the
10-
input meteorological data were to change?
3+
PRMS-Python provides a Python interface to PRMS data files and manages
4+
PRMS simulations. This module aims to improve the efficiency of PRMS
5+
workflows by giving access to PRMS data structures while providing
6+
"pythonic" tools to do scenario-based PRMS simulations. By
7+
"scenario-based" we mean testing model hypotheses associated with model
8+
inputs, outputs, and model structure. For example, parameter sensitivity
9+
analysis, where each "scenario" is an iterative perturbation of one or
10+
many parameters. Another example "scenario-based" modeling exercise
11+
would be climate scenario modeling: what will happen to modeled outputs
12+
if the input meteorological data were to change?
13+
1114

1215

1316
## Installation
1417

15-
Currently it's clone-then-pip:
18+
PRMS-Python versions are available on the Python Package Index [PyPI](https://pypi.org/project/prms-python/)
19+
and can be installed and upgraded using pip:
20+
21+
```
22+
pip install prms-python
23+
```
24+
25+
Alternatively clone-then-pip:
1626

1727
```
18-
git clone https://github.com/JohnVolk/PRMS-Python.git
28+
git clone https://github.com/PRMS-Python/PRMS-Python.git
29+
cd PRMS-Python
1930
```
2031

2132
then
@@ -24,9 +35,22 @@ then
2435
pip install --editable .
2536
```
2637

38+
Another option is to download the source code as a zip file, unzip it
39+
and within the PRMS-Python root directory run:
40+
41+
```
42+
python setup.py install
43+
```
44+
45+
## Usage and documentation
46+
47+
We reccomend starting with the ["getting started"](https://github.com/PRMS-Python/PRMS-Python/blob/master/notebooks/getting_started.ipynb)
48+
Jupyter notebook for file structure rules that PRMS-Python uses and then
49+
moving on to other example notebooks in the [`notebooks` directory](https://github.com/PRMS-Python/PRMS-Python/tree/master/notebooks). Online documentation is available [here](https://prms-python.github.io/PRMS-Python/build/html/index.html).
50+
2751
## Building documentation
2852

29-
This project uses the [Sphinx documentation engine for Python]()
53+
This project uses the [Sphinx documentation engine for Python](http://www.sphinx-doc.org/en/master/)
3054
The documentation source is located in `docs/source`. Eventually we can
3155
wrap the following steps into a script. But for now, to build the
3256
documentation, go to the `docs/` directory and run
@@ -36,11 +60,15 @@ make html
3660
```
3761

3862
If it fails because of missing dependencies, just install the dependencies
39-
it says it's missing. I don't know why it's asking for some dependencies
40-
right now.
63+
it says it's missing. Publishing the docs is now done automatically with any
64+
commits are pushed to the master branch.
4165

4266

43-
<!--- commented the modification of online docs for now
67+
<!--- commented the published of online docs the old way
68+
The method I employed was found on the Sphinx repository as an issue
69+
that did exactly what I wanted: https://github.com/sphinx-doc/sphinx/issues/3382
70+
essentially using the new github publish docs from master branch doc folder
71+
but using a fake index.html to redirect github to the one under docs/build/html/
4472
4573
If it succeds and this is your first time making the html docs you will see a
4674
new directory, `build/html`. If this is the first time you've
@@ -79,11 +107,6 @@ git fetch origin \
79107
80108
-->
81109

82-
## Usage
83-
84-
Please read the [Online Documentation](https://prms-python.github.io/docs) and view
85-
the included Jupyter notebooks for further documentation and examples.
86-
87110

88111
## Unit tests
89112

@@ -92,3 +115,15 @@ I run them using nose but that's not required. From the root repo directory
92115
```
93116
nosetests -v
94117
```
118+
119+
## Contribute
120+
121+
We welcome anyone seriously interested in contributing to PRMS-Python to do so in anyway they see fit. If you are not sure where to begin you can look for current issues or submit a new issue [here](https://github.com/PRMS-Python/PRMS-Python/issues). You may also [fork](https://help.github.com/articles/fork-a-repo/) PRMS-Python and submit a pull request if you would like to offer your direct changes to the package.
122+
123+
<!--- commented until paper accepted
124+
125+
## Citing PRMS-Python
126+
127+
If you use PRMS-Python for published work we ask that you cite it as follows:
128+
129+
-->
Collapse file

‎docs/.nojekyll‎

Copy file name to clipboardExpand all lines: docs/.nojekyll
Whitespace-only changes.
Collapse file

‎docs/build/doctrees/api.doctree‎

Copy file name to clipboard
295 KB
Binary file not shown.
Collapse file

‎docs/build/doctrees/cli.doctree‎

Copy file name to clipboard
17.3 KB
Binary file not shown.
Collapse file

‎docs/build/doctrees/environment.pickle‎

Copy file name to clipboard
3.44 MB
Binary file not shown.
Collapse file

‎docs/build/doctrees/index.doctree‎

Copy file name to clipboard
11.8 KB
Binary file not shown.
Collapse file

‎docs/build/doctrees/tutorial.doctree‎

Copy file name to clipboard
52 KB
Binary file not shown.
Collapse file

‎docs/build/html/.buildinfo‎

Copy file name to clipboard
+4Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Sphinx build info version 1
2+
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
3+
config: 3de3d9b3633f7e1b6ff0a4d823402522
4+
tags: 645f666f9bcd5a90fca523b33c5a78b7
Collapse file

‎docs/build/html/.nojekyll‎

Copy file name to clipboardExpand all lines: docs/build/html/.nojekyll
Whitespace-only changes.

0 commit comments

Comments
0 (0)
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.