Skip to content

Commit ed52c07

Browse files
SierdCopilot
andauthored
update gui branche with latest main (#255)
* fixed dependencies for python 3.13 (#236) * test with timing function * Add devcontainer for use in codespaces (#240) * devcontainer added * Update Dockerfile * Update Dockerfile * Update devcontainer.json * Update Dockerfile * fixed dependencies for python 3.13 (#236) (#239) * Update Dockerfile * remove abundant stuff * Add devcontainer for use in codespaces (#240) (#242) * devcontainer added * Update Dockerfile * Update Dockerfile * Update devcontainer.json * Update Dockerfile * fixed dependencies for python 3.13 (#236) (#239) * Update Dockerfile * remove abundant stuff * Update Dockerfile (#243) This patch updates the dockerfile for the codespace to be compatible with developer mode. You need to manual install python in dev model after the docker is created. * Cleanup main (#245) * delete abundant files * deleted: aeolis/examples/vanWesten2024/blowout/figure_grid_initialization.png deleted: aeolis/examples/vanWesten2024/blowout/figure_params_initialization.png deleted: aeolis/examples/vanWesten2024/blowout/figure_timeseries_initialization.png * Update pyproject.toml * Update README.md * Update CITATION.cff * Update release info (#246) * Update pyproject.toml * Update CITATION.cff * Update README.md * Update Python version and dependencies in installation guide * Implement error message for missing ne_file Added error handling for missing 'ne_file' when using Avalanching. * Print message for aeolis installation in Dockerfile Add message indicating manual installation of aeolis * Update vegetation parameters in constants.py (#250) * Update vegetation parameters in constants.py Removes unused V_Lat parameter solves #120 Changes default for veg_min_elevation to -10 to avoid unwanted use of this functionality. * Update aeolis/constants.py Co-authored-by: Copilot <[email protected]> --------- Co-authored-by: Copilot <[email protected]> --------- Co-authored-by: Copilot <[email protected]>
1 parent 9e14888 commit ed52c07

File tree

10 files changed

+54
-34
lines changed

10 files changed

+54
-34
lines changed

.devcontainer/Dockerfile

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
FROM continuumio/miniconda3
2+
3+
# Set the working directory
4+
5+
# WORKDIR /workspace
6+
7+
# Install Python
8+
RUN conda install python -y
9+
10+
# Copy the project files
11+
# COPY . .
12+
13+
# Install the necessary packages
14+
15+
# RUN pip install .
16+
17+
# Clean up
18+
RUN conda clean -afy
19+
20+
# Set the default command
21+
CMD ["bash"]
22+
23+
# print a message to indicate that the container is ready
24+
RUN echo "The container is ready to use but you need to install aeolis manualy. You can run 'pip instal . -e' to run in editable mode."
25+

.devcontainer/devcontainer.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"name": "AEOLIS Development Container",
3+
"build": {
4+
"dockerfile": "Dockerfile",
5+
"context": ".."
6+
}
7+
}

CITATION.cff

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,5 +69,5 @@ keywords:
6969
- sediment
7070
license: GPL-3.0
7171
commit: 0adaedfc8015f18b3b551bed1dda38d630cd8c95
72-
version: 3.0.0.rc3
73-
date-released: '2023-10-18'
72+
version: 3.0.1
73+
date-released: '2025-07-11'

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ Read our [Contribution Guidelines](CONTRIBUTING.md) to know how you can help to
9191

9292
Please, cite this software as follows:
9393

94-
*de Vries, S., Hallin, C., van IJzendoorn, C., van Westen, B., Cohn, N., Strypsteen, G., Skaden, J., Agrawal, N., & Garcia Alvarez, M. (2023). AeoLiS (Version 3.0.0.rc2) [Computer software]. https://github.com/openearth/aeolis-python*
94+
*de Vries, S., Hallin, C., van IJzendoorn, C., van Westen, B., Cohn, N., Strypsteen, G., Skaden, J., Agrawal, N., & Garcia Alvarez, M. (2023). AeoLiS (Version 3.0.1) [Computer software]. https://github.com/openearth/aeolis-python*
9595

9696
## Acknowlegdements
9797

aeolis/constants.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,6 @@
300300
'hveg_max' : 1., # [m] Max height of vegetation
301301
'dzb_opt' : 0., # [m/year] Sediment burial for optimal growth
302302
'V_ver' : 0., # [m/year] Vertical growth potential
303-
'V_lat' : 0., # [m/year] Lateral growth
304303
'germinate' : 0., # [1/year] Possibility of germination per year
305304
'lateral' : 0., # [1/year] Posibility of lateral expension per year
306305
'veg_gamma' : 1., # [-] Constant on influence of sediment burial
@@ -332,7 +331,7 @@
332331
'alfa' : 0, # [deg] Real-world grid cell orientation wrt the North (clockwise)
333332
'dune_toe_elevation' : 3, # Choose dune toe elevation, only used in the PH12 dune erosion solver
334333
'beach_slope' : 0.1, # Define the beach slope, only used in the PH12 dune erosion solver
335-
'veg_min_elevation' : 3, # Choose the minimum elevation where vegetation can grow
334+
'veg_min_elevation' : -10., # Minimum elevation (m) where vegetation can grow; default -10 disables restriction (allows vegetation everywhere). Set to a higher value to enforce a minimum elevation for vegetation growth.
336335
'vegshear_type' : 'raupach', # Choose the Raupach grid based solver (1D or 2D) or the Okin approach (1D only)
337336
'okin_c1_veg' : 0.48, #x/h spatial reduction factor in Okin model for use with vegetation
338337
'okin_c1_fence' : 0.48, #x/h spatial reduction factor in Okin model for use with sand fence module

aeolis/inout.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,13 @@ def read_configfile(configfile, parse_files=True, load_defaults=True):
117117
# set default for nsavetimes, if not given
118118
if 'nsavetimes' in p and not p['nsavetimes']:
119119
p['nsavetimes'] = int(p['dzb_interval']/p['dt'])
120+
121+
# catch some incompatible parameter combinations.
122+
if (p['ne_file'] is None) and (p['process_avalanche'] == True):
123+
print('Please provide a valid ne_file path in the configuration file when using Avalanching.')
124+
print('Code does not proceed until this is provided.')
125+
print('Hint: If you do not have a ne_file, you can create one with all zeros, with the same dimensions as your grid.')
126+
exit("Exiting due to error")
120127

121128
return p
122129

@@ -603,4 +610,4 @@ def output_sedtrails(s, p):
603610
savemat(os.path.join('sedtrails_output', str(int(time)).zfill(12) + '.mat'), mdic)
604611
else:
605612
mdic = {'us': us, 'un': un, 'dzb': dzb, 'pickup': pickup}
606-
savemat(os.path.join('sedtrails_output', str(int(time)).zfill(12) + '.mat'), mdic)
613+
savemat(os.path.join('sedtrails_output', str(int(time)).zfill(12) + '.mat'), mdic)

aeolis/vegetation.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -28,23 +28,13 @@
2828
import logging
2929
from scipy import ndimage, misc
3030
import numpy as np
31-
import math
32-
#import matplotlib.pyplot as plt
3331
from aeolis.wind import *
3432
import aeolis.rotation
3533

3634
# package modules
3735
import aeolis.wind
38-
#from aeolis.utils import *
3936

4037
import numpy as np
41-
from scipy.integrate import quad
42-
from scipy.integrate import romberg
43-
from scipy.optimize import root_scalar
44-
from scipy.signal import convolve
45-
from scipy.special import sici
46-
from scipy.special import erfi
47-
import matplotlib.pyplot as plt
4838

4939
# initialize logger
5040
logger = logging.getLogger(__name__)

aeolis/wind.py

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -28,18 +28,9 @@
2828

2929
import numpy as np
3030
import logging
31-
import operator
32-
#import scipy.special
33-
#import scipy.interpolate
34-
from scipy import ndimage, misc
35-
import matplotlib.pyplot as plt
36-
from scipy.integrate import quad
37-
from scipy.integrate import romberg
31+
32+
from scipy import ndimage
3833
from scipy.optimize import root_scalar
39-
from scipy.signal import convolve
40-
from scipy.special import sici
41-
from scipy.special import erfi
42-
from scipy.interpolate import griddata
4334

4435

4536
# package modules

docs/user/installation.rst

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,19 @@ AeoLiS is a Python package that can be installed from PyPI or from source. For t
88
Requirements
99
------------
1010

11-
- Python 3.8 or newer
11+
- Python 3.9 or newer
1212
- pip 22.0 or newer
1313
- netCDF4
1414

1515
Dependencies
1616
""""""""""""
1717

18-
- docopt==0.6.1
18+
- docopt
19+
- typer
1920
- bmi-python
2021
- netCDF4
2122
- scipy
22-
- numpy<1.24,>=1.18
23+
- numpy
2324
- matplotlib
2425
- numba
2526

@@ -59,8 +60,8 @@ Example from command line:
5960

6061
.. code:: shell
6162
62-
aeolis params.txt
63+
aeolis run params.txt
6364
6465
.. note::
6566

66-
Model parameters and other configuration is passed in a `params.txt`. See the :ref:`default settings` for more details.
67+
Model parameters and other configuration is passed in a `params.txt`. See the :ref:`default settings` for more details.

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ exclude = [
1212

1313
[project]
1414
name = "aeolis"
15-
version = "3.0.0.rc3"
15+
version = "3.0.1"
1616
authors = [
1717
{ name="Sierd de Vries", email="[email protected]" },
1818
]
@@ -31,7 +31,7 @@ dependencies = [
3131
"bmi-python",
3232
"netCDF4",
3333
"scipy",
34-
"numpy<1.24,>=1.18",
34+
"numpy",
3535
"matplotlib",
3636
"numba",
3737
]

0 commit comments

Comments
 (0)