Skip to content

Commit 1875147

Browse files
docs
1 parent 9511b0e commit 1875147

1 file changed

Lines changed: 31 additions & 9 deletions

File tree

docs/Installation.rst

Lines changed: 31 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,52 @@
1-
Installation
1+
Quickstart Guide
22
============
33
------------
44
Implementing to Existing Projects
55
-----------
66

7-
For users uninterested in cloning the source directory, they may use the 'functions'_ simply by using pip to install the package.
7+
For users uninterested in cloning the source directory, they may use the functions simply by using pip to install the package.
8+
89
.. code-block::
9-
''pip install PythonDSSAnalysis'''
10+
pip install PythonDSSAnalysis
1011
1112
With this users can import the package into their current working files with:
13+
1214
.. code-block::
13-
''from PythonDSSAnalysis import DSSHandler as DSS''
15+
from PythonDSSAnalysis import DSSHandler as DSS
16+
17+
Users can now call all the functions available by invoking the DSS module
1418

15-
Users can now call all the 'functions <functions_>'_ available by invoking the DSS module
1619
.. code-block::
17-
''betas = DSS.data_normalizer(someData)''
20+
betas = DSS.data_normalizer(someData)
1821
1922
2023
----------
2124
Cloning the Repo
2225
----------
23-
First, it is recommended the users clone the repository into a new directory
26+
First, it is recommended the users clone the repository into a fresh directory with a virtual environment
27+
28+
.. code-block::
29+
git clone https://github.com/granthendrickson19/Python-DSS-Analysis.git
2430
31+
Now the user should navigate into the Python-DSS-Analysis working directory (where the pyproject.toml file is located) to install the dependencies
32+
33+
.. code-block::
34+
pip install .
35+
36+
This should install numpy and pyyaml as the two dependencies the project requires.
2537

2638

39+
------
40+
Running Examples
41+
------
42+
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.
2743

44+
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:
45+
1. -m the model file, this is the .yml files which should be structured as the sample files provided
46+
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.
47+
3. -o This is the output file name, it will be created in the same directory at which the sampleRun.py file is invoked.
48+
49+
.. code-block::
50+
python3 -m sampleRun.py -d sampledata.csv -m samplemodel.yml -o quadraticOutput
2851
29-
'
30-
.. _functions: https://granthendrickson19.github.io/Python-DSS-Analysis/DSSHandler.html#
52+
This will create a quadraticOutput.csv file with all the DSS parameters calculated

0 commit comments

Comments
 (0)