Skip to content

Commit b35b117

Browse files
docs
1 parent 736bd3f commit b35b117

1 file changed

Lines changed: 15 additions & 7 deletions

File tree

docs/Installation.rst

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,20 @@ Implementing to Existing Projects
66

77
For users uninterested in cloning the source directory, they may use the functions simply by using pip to install the package.
88

9-
.. code-block::
9+
.. code-block:: python
10+
1011
pip install PythonDSSAnalysis
1112
1213
With this users can import the package into their current working files with:
1314

14-
.. code-block::
15+
.. code-block:: python
16+
1517
from PythonDSSAnalysis import DSSHandler as DSS
1618
1719
Users can now call all the functions available by invoking the DSS module
1820

19-
.. code-block::
21+
.. code-block:: python
22+
2023
betas = DSS.data_normalizer(someData)
2124
2225
@@ -25,12 +28,14 @@ Cloning the Repo
2528
----------
2629
First, it is recommended the users clone the repository into a fresh directory with a virtual environment
2730

28-
.. code-block::
31+
.. code-block:: python
32+
2933
git clone https://github.com/granthendrickson19/Python-DSS-Analysis.git
3034
3135
Now the user should navigate into the Python-DSS-Analysis working directory (where the pyproject.toml file is located) to install the dependencies
3236

33-
.. code-block::
37+
.. code-block:: python
38+
3439
pip install .
3540
3641
This should install numpy and pyyaml as the two dependencies the project requires.
@@ -42,14 +47,17 @@ Running Examples
4247
Included with the repository, is sample data, a sampleRun.py file which can be called from the command line, and two sample model files. Both models fit the sample data, one with a quadratic fit, the other with an exponential.
4348

4449
Users can quickly run the two example problems by switching their directory to the working directory (where sampleRun.py is located). Running sampleRun.py from the command line takes 3 flags:
50+
4551
1. -m the model file, this is the .yml files which should be structured as the sample files provided
4652
2. -d the data file, This is time demarked data of a single parameter of interest the first column must be time, the second column is the parameter of interest. Upon reading the file. the sampleRun skips the first line assuming titles of the data.
4753
3. -o This is the output file name, it will be created in the same directory at which the sampleRun.py file is invoked.
4854

49-
.. code-block::
55+
.. code-block:: python
56+
5057
python3 sampleRun.py -d sampledata.csv -m samplemodel.yml -o quadraticOutput
5158
5259
This will create a quadraticOutput.csv file with all the DSS parameters calculated, the users can run the sampledata again with the exponential fit very similarly
5360

54-
.. code-block::
61+
.. code-block:: python
62+
5563
python3 sampleRun.py -d sampledata.csv -m samplemodelexp.yml -o exponentialOutput

0 commit comments

Comments
 (0)