Skip to content

Commit c2a8c6c

Browse files
authored
Merge pull request #2982 from samsrabin/ctsm_pylib_3.13.2
ctsm5.3.040: Update ctsm_pylib to 3.13.2
2 parents f85d6a8 + b4d07e0 commit c2a8c6c

File tree

88 files changed

+1683
-1802
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

88 files changed

+1683
-1802
lines changed

.git-blame-ignore-revs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Ran python directory through black python formatter
1+
# Reformat with black
22
d89c86e7776bbf7451860b60038b4725fe7a0560
33
b429b63824e09f82e95d2982f14311cbbd8e4a37
44
d229b5c6689efc4c2a6cef077515c4ccd5c18ff6
@@ -29,7 +29,6 @@ e096358c832ab292ddfd22dd5878826c7c788968
2929
475831f0fb0e31e97f630eac4e078c886558b61c
3030
fd5f177131d63d39e79a13918390bdfb642d781e
3131
a51816e0de380300b69db9fc3e2c7fa83b267b64
32-
# Ran SystemTests and python/ctsm through black python formatter
3332
5364ad66eaceb55dde2d3d598fe4ce37ac83a93c
3433
8056ae649c1b37f5e10aaaac79005d6e3a8b2380
3534
0bc3f00115d86d026a977918661c93779b3b19f9
@@ -59,4 +58,7 @@ bd535c710db78420b8e8b9d71d88d8339e899c59
5958
cf433215b58ba8776ec5edfb0b0d80c0836ed3a0
6059
16d57ff37859b34dab005693e3085d64e2bcd95a
6160
e8fc526e0d7818d45f171488c78392c4ff63902a
61+
30d2682a0893f5620bfe37ca6e2614fa60c99f51
62+
890b4633c5477dc074f79c69c40d650196337591
63+
1972cef6bba0d97169b30a53f540d56bcbd97281
6264
cdf40d265cc82775607a1bf25f5f527bacc97405

.github/workflows/black.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,20 +18,20 @@ jobs:
1818
options: "--check --config python/pyproject.toml"
1919
src: "./python"
2020
# Version should be coordinated with the ctsm_pylib conda environment under the python directory
21-
version: "22.3.0"
21+
version: "25.1.0"
2222
# Actions identical to above for each directory and source file we need to check (arrays aren't allowed for src: field)
2323
- uses: psf/black@stable
2424
with:
2525
options: "--check --config python/pyproject.toml"
2626
src: "./cime_config/SystemTests"
27-
version: "22.3.0"
27+
version: "25.1.0"
2828
- uses: psf/black@stable
2929
with:
3030
options: "--check --config python/pyproject.toml"
3131
src: "./cime_config/buildlib"
32-
version: "22.3.0"
32+
version: "25.1.0"
3333
- uses: psf/black@stable
3434
with:
3535
options: "--check --config python/pyproject.toml"
3636
src: "./cime_config/buildnml"
37-
version: "22.3.0"
37+
version: "25.1.0"

cime_config/SystemTests/mksurfdataesmf.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
I added -C to the `git describe` in gen_mksurfdata_namelist for this
1111
system test to work.
1212
"""
13+
1314
import os
1415
import sys
1516
import subprocess

cime_config/SystemTests/pvt.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
2) run a transient landuse case with use_fates_lupft
1010
- start from the restart file generated in (1)
1111
"""
12+
1213
from CIME.XML.standard_module_setup import *
1314
from CIME.SystemTests.system_tests_common import SystemTestsCommon
1415
from CIME.SystemTests.test_utils.user_nl_utils import append_to_user_nl_files

cime_config/SystemTests/ssp.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
- start from the restart files generated in (1)
1313
- turn MOSART off
1414
"""
15+
1516
from CIME.XML.standard_module_setup import *
1617
from CIME.SystemTests.system_tests_common import SystemTestsCommon
1718
import shutil, glob, os

cime_config/SystemTests/sspmatrixcn.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
Step 3: Run a slow-mode spinup
1313
Step 4: matrix Spinup off
1414
"""
15+
1516
import shutil, glob, os, sys
1617
from datetime import datetime
1718

cime_config/buildlib

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ from CIME.utils import run_cmd, expect
2020

2121
logger = logging.getLogger(__name__)
2222

23+
2324
###############################################################################
2425
def _write_ctsm_mk(gmake, gmake_opts, makefile, exeroot, libroot):
2526
"""Writes a ctsm.mk file in exeroot.

cime_config/testdefs/testlist_clm.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0"?>
22
<!--
33
CTSM test list. Test suites included:
4-
ctsm_pymods: System tests for the python codes that also run CTSM cases (subset of aux_clm tests)
4+
clm_pymods: System tests for the python code that also run CTSM cases (subset of aux_clm tests)
55
clm_short: The short CLM test for basic testing of a few configurations
66
aux_clm: Main workhorse test list to be run on main machines before most tags are made
77
fates: The FATES testlist, run when FATES is updated

doc/ChangeLog

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,78 @@
11
===============================================================
2+
Tag name: ctsm5.3.040
3+
Originator(s): samrabin (Sam Rabin, UCAR/TSS)
4+
Date: Tue 15 Apr 2025 10:15:39 AM MDT
5+
One-line Summary: Update ctsm_pylib to 3.13.2
6+
7+
Purpose and description of changes
8+
----------------------------------
9+
10+
This tag updates the ctsm_pylib conda environment, installed with py_env_create, to use Python 3.13.2 instead of 3.7.9. There are also some improvements to how py_env_create works.
11+
12+
13+
Significant changes to scientifically-supported configurations
14+
--------------------------------------------------------------
15+
16+
Does this tag change answers significantly for any of the following physics configurations?
17+
(Details of any changes will be given in the "Answer changes" section below.)
18+
19+
[Put an [X] in the box for any configuration with significant answer changes.]
20+
21+
[ ] clm6_0
22+
23+
[ ] clm5_0
24+
25+
[ ] ctsm5_0-nwp
26+
27+
[ ] clm4_5
28+
29+
30+
Bugs fixed
31+
----------
32+
33+
List of CTSM issues fixed (include CTSM Issue # and description):
34+
- Resolves ESCOMP/CTSM#2625 (Move ctsm_pylib to something beyond 3.7)
35+
- Resolves ESCOMP/CTSM#2771 (Add User's Guide section about ctsm_pylib)
36+
37+
Notes of particular relevance for users
38+
---------------------------------------
39+
40+
The new ctsm_pylib conda environment will be incompatible with the CTSM Python tools from before this tag (ctsm5.3.040) and vice versa. If you already have a copy of the ctsm_pylib conda environment installed, we thus suggest keeping that around under a different name. Here is the suggested command for doing this:
41+
./py_env_create -r ctsm_pylib_old
42+
This will (1) rename your existing ctsm_pylib to ctsm_pylib_old and (2) install the Python 3.13.2 version as ctsm_pylib.
43+
44+
Information about additional py_env_create options---including how to install a fresh copy of the old conda environment---can be found like so:
45+
./py_env_create --help
46+
47+
Changes to documentation:
48+
- User's Guide: Adds "Installing the CTSM Python environment" page
49+
50+
Notes of particular relevance for developers:
51+
---------------------------------------------
52+
53+
Changes to tests or testing:
54+
- New Python system test module: test_sys_py_env_create.py
55+
- That module will install a bunch of empty conda envs with the prefix pec_test. It should clean those up on exit, but if not, you can safely delete them afterward.
56+
57+
Testing summary:
58+
----------------
59+
60+
[PASS means all tests PASS; OK means tests PASS other than expected fails.]
61+
62+
python testing:
63+
64+
derecho - PASS
65+
66+
clm_pymods test suite on derecho - PASS
67+
68+
Other details
69+
-------------
70+
71+
Pull Requests that document the changes:
72+
- [CTSM PR #2982: Update ctsm_pylib to 3.13.2](https://github.com/ESCOMP/CTSM/pull/2982)
73+
74+
===============================================================
75+
===============================================================
276
Tag name: ctsm5.3.039
377
Originator(s): afoster (Adrianna Foster,UCAR/TSS,303-497-1728)
478
Date: Mon 14 Apr 2025 07:22:22 PM MDT

doc/ChangeSum

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
Tag Who Date Summary
22
============================================================================================================================
3+
ctsm5.3.040 samrabin 04/15/2025 Update ctsm_pylib to 3.13.2
34
ctsm5.3.039 afoster 04/14/2025 Create driver data structure for SP mode
45
ctsm5.3.038 samrabin 04/10/2025 Merge b4b-dev
56
ctsm5.3.037 erik 04/02/2025 Add calculations for GSSUN and GSSHA at night in both subroutine Photosynthesis and PhotosynthesisHydraulicStress

0 commit comments

Comments
 (0)