Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
* @TjaldaDeenekamp
* @chrispijo
1,599 changes: 0 additions & 1,599 deletions PV-tool_1.0.ipynb

This file was deleted.

2,203 changes: 2,203 additions & 0 deletions PV-tool_1.1.0.ipynb

Large diffs are not rendered by default.

1,688 changes: 0 additions & 1,688 deletions PV-tool_TD.ipynb

This file was deleted.

62 changes: 47 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
![Python](https://img.shields.io/badge/Python-3.11%20%7C%203.12-blue)
![Poetry](https://img.shields.io/badge/Poetry-managed-blueviolet)
![Coverage](./readme_images/coverage.svg)

# STOWA Proevenverzameling tool v5.0

> Dit project gebruikt Poetry voor dependency management.
> Installatie via requirements.txt wordt niet ondersteund.

De PV-tool (Proevenverzameling tool) is een Python-gebaseerde tooling voor het opstellen van lokale of regionale proevenverzamelingen voor het bepalen van geotechnische parameters. De methode is ontwikkeld voor het uitvoeren van analyses in relatie tot de geotechnische stabiliteit van dijken, maar kan ook breder worden toegepast.

Met de PV-tool kunnen zowel **gedraineerde** als **ongedraineerde** sterkteparameters worden berekend alsmede enkele
Expand All @@ -11,7 +16,8 @@ bepaald.
De functies zijn opgesteld conform de werkwijze beschreven in *Statistische methoden t.b.v. proevenverzamelingen,
DIV, v1.0*.

Zie tevens: https://publicwiki.deltares.nl/spaces/HWBPMacro/pages/217120830/Sterkte+van+grond#Sterktevangrond-150
Zie tevens:
[Deltares Wiki - Sterkte van grond](https://publicwiki.deltares.nl/spaces/HWBPMacro/pages/217120830/Sterkte+van+grond#Sterktevangrond-150)

De tool bevat tevens hulpmiddelen voor het onderscheiden of samenvoegen van groepen in een verzameling op basis van
verschillende kenmerken.
Expand All @@ -25,36 +31,62 @@ van proefresultaten.

## Inhoudsopgave
[Installatie](#installatie)<br>
[Gebruik](#gebruik)<br>
[Gebruik in Jupyter Notebook](#gebruik-in-jupyter-notebook)<br>
[Gebruik met Python code](#gebruik-met-python-code)<br>
[Functionaliteiten](#functionaliteiten)<br>
[Referenties](#referenties)<br>

## Installatie
Indien je de tool niet via Jupiter Notebook wil gebruiken, dien je volgende stappen te volgen voor de installatie
Indien je de tool niet via Jupyter Notebook wilt gebruiken, dien je volgende stappen te volgen voor de installatie
van de tool.

1. Clone the repository
### Vereisten
- Python 3.11 of 3.12
- Poetry

> Getest met Python 3.11 en 3.12

### Clone the repository

```bash
git clone https://github.com/PVorganization/PV-tool.git
cd PV-tool
```

### Dependencies installeren

```bash
poetry install
```

2. Install requirements for package management
### Virtuele omgeving activeren (optioneel)

```bash
pip install -r requirements.txt
poetry shell
```

## Gebruik
Of voer commando's direct uit met:

```bash
poetry run python script.py
```

## Gebruik in Jupyter Notebook
In Jupyter Notebook is een werkomgeving ontwikkeld, waardoor het mogelijk is om de PV-tool te gebruiken zonder kennis
van Python.

De Notebook is te vinden onder:
Start Jupyter vanuit de Poetry omgeving:

```bash
jupyter notebook PV_tool1.0.ipynb
poetry run jupyter notebook
```

Open vervolgens:
```text
PV_tool1.1.0.ipynb
```

## Gebruik met Python code
Daarnaast is het ook mogelijk om de tool direct te gebruiken met de ontwikkelde python code. Hieronder worden in
verschillende stappen het gebruik van de code beschreven.

Expand All @@ -75,7 +107,7 @@ De validatie bestaat uit:
- Export van validatieresultaten naar Excel-bestanden

```python
from pv_tool.imports.import_data import Dbase
from pv_tool_logic.imports.import_data import Dbase

dbase = Dbase()
dbase.import_data(source="Dbase", source_dir="pad/naar/bestand.xlsx")
Expand All @@ -94,7 +126,7 @@ tussen een analyse bij 2%, 5%, 15%, pieksterkte en eindsterkte. Voor de DSS-anal
De C-phi analyse bepaalt cohesie en hoek van inwendige wrijving uit triaxiaal- of DSS-proeven.

```python
from pv_tool.cphi_analysis.c_phi_analysis import CPhiAnalyse
from pv_tool_logic.cphi_analysis.c_phi_analysis import CPhiAnalyse

# Stel de onderzoeksgroep(en) in (PV_NAAM)
investigation_groups = ['TXT_SAFE_klei_licht_16_175']
Expand Down Expand Up @@ -136,7 +168,7 @@ tussen een analyse bij 2%, 5%, 15%, pieksterkte en eindsterkte. Voor de DSS-anal
20%, eindsterkte of pieksterkte.

```python
from pv_tool.shansep_analysis.shansep_analysis import SHANSEP
from pv_tool_logic.shansep_analysis.shansep_analysis import SHANSEP

# Stel de onderzoeksgroep(en) in
investigation_groups = ['TXT_SAFE_klei_licht_16_175']
Expand Down Expand Up @@ -178,7 +210,7 @@ analyse.save_to_pdf(path='path/to/export_location')
De Su-tabel analyse stelt tabellen op voor ongedraineerde schuifsterkte als functie van de diepte.

```python
from pv_tool.sutabel_analysis.sutabel_analysis import SUTABEL
from pv_tool_logic.sutabel_analysis.sutabel_analysis import SUTABEL

# Stel de onderzoeksgroep(en) in
investigation_groups = ['TXT_SAFE_klei_licht_16_175']
Expand Down Expand Up @@ -318,5 +350,5 @@ De tool genereert verschillende output-bestanden:
## Referenties

- STOWA Proevenverzameling methodiek
- Deltares wiki: https://publicwiki.deltares.nl/spaces/HWBPMacro/pages/217120830/Sterkte+van+grond
- GitHub repository: https://github.com/kkpdata/Proevenverzamelingentool/
- [Deltares Wiki - Sterkte van grond](https://publicwiki.deltares.nl/spaces/HWBPMacro/pages/217120830/Sterkte+van+grond)
- [GitHub PV-tool repository](https://github.com/kkpdata/Proevenverzamelingentool/)
Binary file removed dist/pv_tool_logic-1.0.0-py3-none-any.whl
Binary file not shown.
Binary file removed dist/pv_tool_logic-1.0.0.tar.gz
Binary file not shown.
Binary file added dist/pv_tool_logic-1.1.0-py3-none-any.whl
Binary file not shown.
Binary file added dist/pv_tool_logic-1.1.0.tar.gz
Binary file not shown.
3,888 changes: 0 additions & 3,888 deletions import_files/SHANSEP_ln_ocr_ln_s_TXT_klei_14_16.html

This file was deleted.

3,888 changes: 0 additions & 3,888 deletions import_files/SHANSEP_sv_su_TXT_klei_14_16.html

This file was deleted.

3,888 changes: 0 additions & 3,888 deletions import_files/SHANSEP_sv_su_nc_TXT_klei_14_16.html

This file was deleted.

3,888 changes: 0 additions & 3,888 deletions import_files/SU_ln_sv_ln_su_TXT_klei_14_16.html

This file was deleted.

3,888 changes: 0 additions & 3,888 deletions import_files/SU_sv_su_TXT_klei_14_16.html

This file was deleted.

Binary file removed import_files/Template_PVtool5_0.xlsx
Binary file not shown.
Binary file not shown.
Binary file removed import_files/Template_PVtool5_0_SAFE_2022_PV.xlsx
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
3,888 changes: 0 additions & 3,888 deletions import_files/c-phi_analyse_TXT_klei_14_16.html

This file was deleted.

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed import_files/temp_plot.png
Binary file not shown.
Binary file removed import_files/temp_plot1.png
Binary file not shown.
Binary file removed import_files/temp_plot2.png
Binary file not shown.
Binary file removed import_files/temp_plot3.png
Binary file not shown.
Binary file removed import_files/temp_sutabel_plot1.png
Binary file not shown.
Binary file removed import_files/temp_sutabel_plot2.png
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed import_files/vervallen/Template_PVtool5_0.xlsx
Binary file not shown.
Binary file not shown.
Loading
Loading