Skip to content

Commit

Permalink
Prepare for release 0.3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
MoiseRousseau committed Nov 29, 2023
1 parent 7cfacdc commit f7a5862
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 14 deletions.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,17 @@ Getting PyGeoStudio started requires Python and making GeoStudio recognized by P

## Examples

Examples are provided in the folder `example`.
Examples are provided in the folder `examples`.
It contains:

* Access the SEEP output of solved analysis and export it for processing with Paraview
* Making plots with Matplotlib
* Calibrate some properties
* Change geometry, and material and reinforcement properties
* Run parametric study

For more details, see the "Examples" section in the [documentation](https://pygeostudio.readthedocs.io/en/stable/)


## Contributing

Expand Down
2 changes: 1 addition & 1 deletion docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
project = 'PyGeoStudio'
copyright = '2023, Moïse Rousseau'
author = 'Moïse Rouseau'
release = '0.4.0'
release = '0.3.1'

# -- General configuration ---------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration
Expand Down
2 changes: 1 addition & 1 deletion docs/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ Features
* - Launch parametric study
- OK
* - Launch automatic calibration
- TODO
- See Examples
* - Launch sensitivity analysis with true design of experiment
- TODO
* - Uncertainty analysis through bayesian framework
Expand Down
9 changes: 6 additions & 3 deletions docs/source/user_guide.rst
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ PyGeoStudio interfaces the GeoStudio file un Python using the main Python class
import PyGeoStudio as pgs
src_file = "Reinforcement with Anchors.gsz"
geofile = pgs.GeoStudioFile(src_file,mode='r')
geofile = pgs.GeoStudioFile(src_file)
The ``GeoStudioFile`` class then parse the study and create a copy in the computer memory that is accessible with Python (the ``geofile`` object in the code block above).
Therefore, every change made through Python does not affect the input file but rather its representation in the memory.
Expand All @@ -32,7 +32,7 @@ It contains numerous attribute, method and subclasses which handle each feature
The figure below shows how to access the different feature of a study.

.. figure:: class_overview.png
:scale: 60 %
:scale: 70 %

Overview of accessing GeoStudio properties through PyGeoStudio

Expand All @@ -55,8 +55,11 @@ Write back the modified study

.. code-block:: python
# Overwrite study
geofile.save()
# Or save in a new file
out_file = "./rapid_drawdown_changed_perm.gsz"
geofile.writeGeoStudioFile(out_file)
geofile.saveAs(out_file)
Classes description (by alphabetical order)
Expand Down
8 changes: 6 additions & 2 deletions examples/calibrations/1D_unsaturated_column_VG_parameter.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@
============================
"""

# %%
# **This example is not yet working, as fitting Van Genuchten parameter is a complex task.
# In the present version of the file, we use a gradient descent-like algorithm, which is unsuccessful because the objective function may have multiple local optimum.
# Therefore, the next step is to use global algorithm such as differential evolution or simuated annealing**

import PyGeoStudio as pgs
import numpy as np

Expand All @@ -26,8 +31,7 @@
PWPdata += np.random.normal(0.,0.2,len(PWPdata)) #add some noise to measurement with std dev of 0.5 KPa

# %%
#
#set the X data
# Set the X data
N = 100 # number of data point
psi = np.logspace(-1,4,N) #suction from 0.1 to 1000 KPa
WCfunction.resizeXYData(N)
Expand Down
5 changes: 0 additions & 5 deletions examples/parametric/1D_drainage_multiple_load.py

This file was deleted.

2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

setup(
name='PyGeoStudio',
version='0.3.0', # Required
version='0.3.1', # Required
description='Python library allowing reading/writing GeoStudio .gsz files',
long_description=long_description,
long_description_content_type='text/markdown',
Expand Down

0 comments on commit f7a5862

Please sign in to comment.