Skip to content

Commit cd23d85

Browse files
author
volodia99
authored
Merge pull request #352 from volodia99/rel-v0.16
REL: prep release 0.16
2 parents 49dc2ae + 9b33246 commit cd23d85

4 files changed

Lines changed: 12 additions & 4 deletions

File tree

CITATION.cff

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@ authors:
88
given-names: "Clément"
99
orcid: "https://orcid.org/0000-0001-8629-7068"
1010
title: "nonos"
11-
version: 0.15.1
11+
version: 0.16
1212
date-released: 2024-04-08
1313
url: "https://github.com/volodia99/nonos"

nonos/__version__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "0.15.1"
1+
__version__ = "0.16"

nonos/api/analysis.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -787,8 +787,8 @@ def latitudinal_projection(self, theta=None, *, operation_name=None) -> "GasFiel
787787
km = find_nearest(self.coords.theta, self.coords.theta.min())
788788
kp = find_nearest(self.coords.theta, self.coords.theta.max())
789789
if theta is not None:
790-
km = find_nearest(self.coords.theta, np.pi / 2 + theta)
791-
kp = find_nearest(self.coords.theta, np.pi / 2 - theta)
790+
kp = find_nearest(self.coords.theta, np.pi / 2 + theta)
791+
km = find_nearest(self.coords.theta, np.pi / 2 - theta)
792792
ret_data = (
793793
np.sum(
794794
(

tests/test_load_data.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,14 @@ def test_npy_radial_at_r(test_data_dir, tmp_path):
119119
assert list(dsnpy.keys()) == ["RHO"]
120120

121121

122+
def test_latitudinal_projection(test_data_dir):
123+
os.chdir(test_data_dir / "idefix_spherical_planet3d")
124+
theta = np.arctan(5 * 0.1)
125+
gflpt = GasDataSet(500)["RHO"].latitudinal_projection(theta)
126+
gflp = GasDataSet(500)["RHO"].latitudinal_projection()
127+
np.testing.assert_equal(gflpt.data, gflp.data)
128+
129+
122130
def test_radial_average_interval_vmin_vmax(test_data_dir):
123131
os.chdir(test_data_dir / "idefix_spherical_planet3d")
124132
with pytest.raises(

0 commit comments

Comments
 (0)