|
1 | | -Installation |
| 1 | +Quickstart Guide |
2 | 2 | ============ |
3 | 3 | ------------ |
4 | 4 | Implementing to Existing Projects |
5 | 5 | ----------- |
6 | 6 |
|
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 | + |
8 | 9 | .. code-block:: |
9 | | - ''pip install PythonDSSAnalysis''' |
| 10 | + pip install PythonDSSAnalysis |
10 | 11 |
|
11 | 12 | With this users can import the package into their current working files with: |
| 13 | + |
12 | 14 | .. 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 |
14 | 18 |
|
15 | | -Users can now call all the 'functions <functions_>'_ available by invoking the DSS module |
16 | 19 | .. code-block:: |
17 | | - ''betas = DSS.data_normalizer(someData)'' |
| 20 | + betas = DSS.data_normalizer(someData) |
18 | 21 |
|
19 | 22 |
|
20 | 23 | ---------- |
21 | 24 | Cloning the Repo |
22 | 25 | ---------- |
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 |
24 | 30 |
|
| 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. |
25 | 37 |
|
26 | 38 |
|
| 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. |
27 | 43 |
|
| 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 |
28 | 51 |
|
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