Skip to content

Commit 82d9806

Browse files
authored
chore: use python>=3.10 in conda env, fix map plot example (#2501)
Fix a problem in example notebook CI. The delete parameter to TemporaryDirectory was added in Python 3.12, but we still want to support >=3.10. Also the environment.yml still had a lower bound of 3.9, bump it.
1 parent 4d1c9d2 commit 82d9806

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

.docs/Notebooks/plot_map_view_example.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
sim_name = "freyberg"
5757

5858
# Set the paths
59-
tempdir = TemporaryDirectory(delete=False)
59+
tempdir = TemporaryDirectory()
6060
modelpth = Path(tempdir.name)
6161

6262
# Check if we are in the repository and define the data path.

etc/environment.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ dependencies:
55
- pip
66

77
# required
8-
- python>=3.9
8+
- python>=3.10
99
- numpy>=1.20.3
1010
- matplotlib>=1.4.0
1111
- pandas>=2.0.0

0 commit comments

Comments
 (0)