Skip to content

Commit a3c4f7f

Browse files
committed
Merge branch 'topic/default/prepare-0.9.0' into 'branch/default'
Prepare 0.9.0 See merge request fluiddyn/fluidsim!446
2 parents d07b26a + a6be1ac commit a3c4f7f

File tree

5 files changed

+65
-22
lines changed

5 files changed

+65
-22
lines changed

CHANGES.md

Lines changed: 37 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,19 +23,48 @@ See also the [unreleased changes].
2323

2424
% Security Security in case of vulnerabilities.
2525

26+
## [0.9.0] (2025-12-03)
27+
28+
### Added/changed
29+
30+
- [!440](https://foss.heptapod.net/fluiddyn/fluidsim/-/merge_requests/440) Better
31+
mechanism to print information after simulation initiation
32+
33+
- [!442](https://foss.heptapod.net/fluiddyn/fluidsim/-/merge_requests/442) Store "state
34+
parameters" in restarting files
35+
36+
- [!441](https://foss.heptapod.net/fluiddyn/fluidsim/-/merge_requests/441) and
37+
[!443](https://foss.heptapod.net/fluiddyn/fluidsim/-/merge_requests/443) basic
38+
utilities related to physical fields files {mod}`fluidsim.util.phys_fields`
39+
40+
### Fixed
41+
42+
- [!439](https://foss.heptapod.net/fluiddyn/fluidsim/-/merge_requests/439) Fix bug
43+
restarting file names
44+
45+
- [!445](https://foss.heptapod.net/fluiddyn/fluidsim/-/merge_requests/445) Update/fix
46+
profile analysis
47+
2648
## [0.8.6] (2025-11-23)
2749

2850
- Compatibility h5netcdf 1.7
2951
- Fix incorrect restart for forcing time correlated
3052

3153
## [0.8.5] (2025-10-23)
3254

33-
- [!427](https://foss.heptapod.net/fluiddyn/fluidsim/-/merge_requests/427) Support for Python 3.14
34-
- [!421](https://foss.heptapod.net/fluiddyn/fluidsim/-/merge_requests/421) New time stepping method `RK2_phaseshift_random_split`
35-
- [!415](https://foss.heptapod.net/fluiddyn/fluidsim/-/merge_requests/415) `FLUIDSIM_TYPE_FFT2D` and `FLUIDSIM_TYPE_FFT3D` (see <https://fluidfft.readthedocs.io/en/latest/plugins.html>)
36-
- [!408](https://foss.heptapod.net/fluiddyn/fluidsim/-/merge_requests/408) `temporal_spectra.py`: improve plot_spectra
37-
- [!407](https://foss.heptapod.net/fluiddyn/fluidsim/-/merge_requests/407) Improve isotropic tcrandom forcing
38-
- [!400](https://foss.heptapod.net/fluiddyn/fluidsim/-/merge_requests/400) New script `scripts/install-fluidsim-stack-from-source.py`
55+
- [!427](https://foss.heptapod.net/fluiddyn/fluidsim/-/merge_requests/427) Support for
56+
Python 3.14
57+
- [!421](https://foss.heptapod.net/fluiddyn/fluidsim/-/merge_requests/421) New time
58+
stepping method `RK2_phaseshift_random_split`
59+
- [!415](https://foss.heptapod.net/fluiddyn/fluidsim/-/merge_requests/415)
60+
`FLUIDSIM_TYPE_FFT2D` and `FLUIDSIM_TYPE_FFT3D` (see
61+
<https://fluidfft.readthedocs.io/en/latest/plugins.html>)
62+
- [!408](https://foss.heptapod.net/fluiddyn/fluidsim/-/merge_requests/408)
63+
`temporal_spectra.py`: improve plot_spectra
64+
- [!407](https://foss.heptapod.net/fluiddyn/fluidsim/-/merge_requests/407) Improve
65+
isotropic tcrandom forcing
66+
- [!400](https://foss.heptapod.net/fluiddyn/fluidsim/-/merge_requests/400) New script
67+
`scripts/install-fluidsim-stack-from-source.py`
3968
- and various fixes and small improvements...
4069

4170
## [0.8.4] (2024-11-08)
@@ -353,4 +382,5 @@ Merge with geofluidsim (Ashwin Vishnu Mohanan repository)
353382
[0.8.4]: https://foss.heptapod.net/fluiddyn/fluidsim/-/compare/0.8.3...0.8.4
354383
[0.8.5]: https://foss.heptapod.net/fluiddyn/fluidsim/-/compare/0.8.4...0.8.5
355384
[0.8.6]: https://foss.heptapod.net/fluiddyn/fluidsim/-/compare/0.8.5...0.8.6
356-
[unreleased changes]: https://foss.heptapod.net/fluiddyn/fluidsim/-/compare/0.8.6...branch%2Fdefault
385+
[0.9.0]: https://foss.heptapod.net/fluiddyn/fluidsim/-/compare/0.8.6...0.9.0
386+
[unreleased changes]: https://foss.heptapod.net/fluiddyn/fluidsim/-/compare/0.9.0...branch%2Fdefault

fluidsim/util/phys_fields.py

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,14 @@
1-
"""Utilities for physical fields files"""
1+
"""Utilities for physical fields files
2+
3+
.. autofunction:: save_file
4+
5+
.. autofunction:: compute_file_name
6+
7+
.. autofunction:: time_from_path
8+
9+
.. autofunction:: name_file_from_time_approx
10+
11+
"""
212

313
import datetime
414
import os
@@ -23,7 +33,7 @@
2333

2434

2535
@contextmanager
26-
def null_context(path, mode, **kwargs):
36+
def _null_context(path, mode, **kwargs):
2737
yield
2838

2939

@@ -66,13 +76,14 @@ def save_file(
6676
particular_attr=None,
6777
state_params=None,
6878
):
79+
"""Save a state_phys file"""
6980
if mpi.nb_proc > 1 and cfg_h5py.mpi:
7081
h5py_kwargs = {"driver": "mpio", "comm": mpi.comm}
7182
else:
7283
h5py_kwargs = {}
7384

7485
if mpi.nb_proc > 1 and not cfg_h5py.mpi and mpi.rank > 0:
75-
File = null_context
86+
File = _null_context
7687
else:
7788
File = h5pack.File
7889

lib/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "flit_core.buildapi"
44

55
[project]
66
name = 'fluidsim-core'
7-
version = "0.8.6"
7+
version = "0.9.0"
88
description = "Pure-Python core library for FluidSim framework"
99
requires-python = ">=3.11"
1010
authors = [

pylock.toml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ created-by = "pdm"
1212

1313
[[packages]]
1414
name = "fluidsim-core"
15-
version = "0.8.6"
15+
version = "0.9.0"
1616
requires-python = ">=3.11"
1717
marker = "\"default\" in dependency_groups or \"dev\" in dependency_groups"
1818

@@ -490,11 +490,11 @@ dependencies = [
490490

491491
[[packages]]
492492
name = "ipython"
493-
version = "9.7.0"
493+
version = "9.8.0"
494494
requires-python = ">=3.11"
495-
sdist = {name = "ipython-9.7.0.tar.gz", url = "https://files.pythonhosted.org/packages/29/e6/48c74d54039241a456add616464ea28c6ebf782e4110d419411b83dae06f/ipython-9.7.0.tar.gz", hashes = {sha256 = "5f6de88c905a566c6a9d6c400a8fed54a638e1f7543d17aae2551133216b1e4e"}}
495+
sdist = {name = "ipython-9.8.0.tar.gz", url = "https://files.pythonhosted.org/packages/12/51/a703c030f4928646d390b4971af4938a1b10c9dfce694f0d99a0bb073cb2/ipython-9.8.0.tar.gz", hashes = {sha256 = "8e4ce129a627eb9dd221c41b1d2cdaed4ef7c9da8c17c63f6f578fe231141f83"}}
496496
wheels = [
497-
{name = "ipython-9.7.0-py3-none-any.whl",url = "https://files.pythonhosted.org/packages/05/aa/62893d6a591d337aa59dcc4c6f6c842f1fe20cd72c8c5c1f980255243252/ipython-9.7.0-py3-none-any.whl",hashes = {sha256 = "bce8ac85eb9521adc94e1845b4c03d88365fd6ac2f4908ec4ed1eb1b0a065f9f"}},
497+
{name = "ipython-9.8.0-py3-none-any.whl",url = "https://files.pythonhosted.org/packages/f1/df/8ee1c5dd1e3308b5d5b2f2dfea323bb2f3827da8d654abb6642051199049/ipython-9.8.0-py3-none-any.whl",hashes = {sha256 = "ebe6d1d58d7d988fbf23ff8ff6d8e1622cfdb194daf4b7b73b792c4ec3b85385"}},
498498
]
499499
marker = "\"dev\" in dependency_groups or \"doc\" in dependency_groups or \"test\" in extras or \"test-mpi\" in extras"
500500

@@ -724,11 +724,11 @@ dependencies = []
724724

725725
[[packages]]
726726
name = "numpydoc"
727-
version = "1.9.0"
728-
requires-python = ">=3.9"
729-
sdist = {name = "numpydoc-1.9.0.tar.gz", url = "https://files.pythonhosted.org/packages/2f/19/7721093e25804cc82c7c1cdab0cce6b9343451828fc2ce249cee10646db5/numpydoc-1.9.0.tar.gz", hashes = {sha256 = "5fec64908fe041acc4b3afc2a32c49aab1540cf581876f5563d68bb129e27c5b"}}
727+
version = "1.10.0"
728+
requires-python = ">=3.10"
729+
sdist = {name = "numpydoc-1.10.0.tar.gz", url = "https://files.pythonhosted.org/packages/e9/3c/dfccc9e7dee357fb2aa13c3890d952a370dd0ed071e0f7ed62ed0df567c1/numpydoc-1.10.0.tar.gz", hashes = {sha256 = "3f7970f6eee30912260a6b31ac72bba2432830cd6722569ec17ee8d3ef5ffa01"}}
730730
wheels = [
731-
{name = "numpydoc-1.9.0-py3-none-any.whl",url = "https://files.pythonhosted.org/packages/26/62/5783d8924fca72529defb2c7dbe2070d49224d2dba03a85b20b37adb24d8/numpydoc-1.9.0-py3-none-any.whl",hashes = {sha256 = "8a2983b2d62bfd0a8c470c7caa25e7e0c3d163875cdec12a8a1034020a9d1135"}},
731+
{name = "numpydoc-1.10.0-py3-none-any.whl",url = "https://files.pythonhosted.org/packages/62/5e/3a6a3e90f35cea3853c45e5d5fb9b7192ce4384616f932cf7591298ab6e1/numpydoc-1.10.0-py3-none-any.whl",hashes = {sha256 = "3149da9874af890bcc2a82ef7aae5484e5aa81cb2778f08e3c307ba6d963721b"}},
732732
]
733733
marker = "\"doc\" in dependency_groups"
734734

@@ -4167,7 +4167,7 @@ marker = "\"doc\" in dependency_groups"
41674167
dependencies = []
41684168

41694169
[tool.pdm]
4170-
hashes = {sha256 = "5cea7ed2c5ac5f917b4858308e2bef45bb3ba26f0d1c15fa57a7badaafc75bbb"}
4170+
hashes = {sha256 = "3a7a7cf5a90f1019dffb0e2252f3a2c241722adf8b67c73867a193e330287d58"}
41714171
strategy = ["inherit_metadata", "static_urls"]
41724172

41734173
[[tool.pdm.targets]]

pyproject.toml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,12 @@ keywords = [
1919
authors = [
2020
{name = "pierre.augier", email = "[email protected]"},
2121
]
22-
version = '0.8.6'
22+
version = '0.9.0'
2323
requires-python = ">=3.11"
2424
dependencies = [
25-
"fluidsim-core>=0.8.1",
25+
# should be (but issue PDM)
26+
# "fluidsim-core==0.9.0",
27+
"fluidsim-core>=0.8.6,<0.9.1",
2628
"h5py",
2729
"h5netcdf",
2830
"transonic>=0.6.2",

0 commit comments

Comments
 (0)