|
5 | 5 | [](https://github.com/ritchie46/pygef)
|
6 | 6 | [](https://coveralls.io/github/cemsbv/pygef?branch=master)
|
7 | 7 |
|
8 |
| -Simple parser for \*.gef files. These are ASCII based files used for soil properties measurements. |
9 |
| -Compatible with Python 3.9. |
| 8 | +Simple parser for \*.gef files. These are ASCII based files used for soil |
| 9 | +properties measurements. Compatible with Python 3.9. |
10 | 10 |
|
11 |
| -Recently added the parsing of xml boreholes file, the xml parsing is still in a preliminary phase, |
12 |
| -not all the files are supported. If you find a file that doesn't work with pygef, please make an issue about it or PR :) |
| 11 | +Recently added the parsing of xml boreholes file, the xml parsing is still in a |
| 12 | +preliminary phase, not all the files are supported. If you find a file that |
| 13 | +doesn't work with pygef, please make an issue about it or PR :) |
13 | 14 |
|
14 | 15 | ## Installation
|
15 | 16 |
|
16 | 17 | Latest stable version:
|
17 | 18 |
|
18 |
| -`$ pip install pygef` |
| 19 | +```sh |
| 20 | +pip install pygef |
| 21 | +``` |
19 | 22 |
|
20 | 23 | Cutting-edge version (might break):
|
21 | 24 |
|
22 |
| -`$ pip install git+https://github.com/cemsbv/pygef.git` |
| 25 | +```sh |
| 26 | +pip install git+https://github.com/cemsbv/pygef.git |
| 27 | +``` |
23 | 28 |
|
24 | 29 | ## CPT files
|
25 | 30 |
|
@@ -116,11 +121,17 @@ tot630u ┆ 0.0, │
|
116 | 121 | │ ┆ ┆ ┆ ┆ ┆ ┆ ┆ ... │
|
117 | 122 | │ ┆ ┆ ┆ ┆ ┆ ┆ ┆ 0.0] │
|
118 | 123 | └────────────┴────────────┴────────────┴──────────┴────────────┴────────────┴────────────┴─────────┘
|
119 |
| - |
120 | 124 | ```
|
121 | 125 |
|
122 | 126 | ## Plotting
|
123 | 127 |
|
| 128 | +To use the plotting functionality pygef needs to be installed with the `[plot]` |
| 129 | +feature. |
| 130 | + |
| 131 | +```sh |
| 132 | +pip install pygef[plot] |
| 133 | +``` |
| 134 | + |
124 | 135 | ```python
|
125 | 136 | from pygef import read_cpt, read_bore
|
126 | 137 | from pygef.plotting import plot_cpt, plot_bore
|
@@ -157,7 +168,8 @@ isort --settings-path "pyproject.toml" .
|
157 | 168 |
|
158 | 169 | To maintain code quality we use the GitHub super-linter.
|
159 | 170 |
|
160 |
| -To run the linters locally, run the following bash script from the root directory: |
| 171 | +To run the linters locally, run the following bash script from the root |
| 172 | +directory: |
161 | 173 |
|
162 | 174 | ```bash
|
163 | 175 | docker run \
|
@@ -195,11 +207,11 @@ coverage run -m pytest
|
195 | 207 | Requirements are autogenerated by `pip-compile` with python 3.9
|
196 | 208 |
|
197 | 209 | ```bash
|
198 |
| -pip-compile --extra=test --extra=docs --extra=lint --extra=map --output-file=requirements.txt pyproject.toml |
| 210 | +pip-compile --extra=plot --extra=test --extra=docs --extra=lint --extra=map --output-file=requirements.txt pyproject.toml |
199 | 211 | ```
|
200 | 212 |
|
201 | 213 | To update the requirements within the defined ranges, run:
|
202 | 214 |
|
203 | 215 | ```bash
|
204 |
| -pip-compile --upgrade --extra=test --extra=docs --extra=lint --extra=map --output-file=requirements.txt pyproject.toml |
| 216 | +pip-compile --upgrade --extra=plot --extra=test --extra=docs --extra=lint --extra=map --output-file=requirements.txt pyproject.toml |
205 | 217 | ```
|
0 commit comments