wavespectra 4.4.2__tar.gz → 4.4.3__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {wavespectra-4.4.2/wavespectra.egg-info → wavespectra-4.4.3}/PKG-INFO +2 -1
- {wavespectra-4.4.2 → wavespectra-4.4.3}/pyproject.toml +19 -0
- {wavespectra-4.4.2 → wavespectra-4.4.3}/wavespectra/__init__.py +1 -1
- {wavespectra-4.4.2 → wavespectra-4.4.3}/wavespectra/core/swan.py +6 -3
- {wavespectra-4.4.2 → wavespectra-4.4.3}/wavespectra/input/ndbc_ascii.py +6 -1
- {wavespectra-4.4.2 → wavespectra-4.4.3/wavespectra.egg-info}/PKG-INFO +2 -1
- {wavespectra-4.4.2 → wavespectra-4.4.3}/wavespectra.egg-info/requires.txt +1 -0
- {wavespectra-4.4.2 → wavespectra-4.4.3}/AUTHORS.rst +0 -0
- {wavespectra-4.4.2 → wavespectra-4.4.3}/LICENSE.txt +0 -0
- {wavespectra-4.4.2 → wavespectra-4.4.3}/README.rst +0 -0
- {wavespectra-4.4.2 → wavespectra-4.4.3}/setup.cfg +0 -0
- {wavespectra-4.4.2 → wavespectra-4.4.3}/setup.py +0 -0
- {wavespectra-4.4.2 → wavespectra-4.4.3}/tests/test_cli.py +0 -0
- {wavespectra-4.4.2 → wavespectra-4.4.3}/tests/test_cookiecutter_template.py +0 -0
- {wavespectra-4.4.2 → wavespectra-4.4.3}/tests/test_partition.py +0 -0
- {wavespectra-4.4.2 → wavespectra-4.4.3}/tests/test_specarray.py +0 -0
- {wavespectra-4.4.2 → wavespectra-4.4.3}/wavespectra/cli.py +0 -0
- {wavespectra-4.4.2 → wavespectra-4.4.3}/wavespectra/construct/__init__.py +0 -0
- {wavespectra-4.4.2 → wavespectra-4.4.3}/wavespectra/construct/direction.py +0 -0
- {wavespectra-4.4.2 → wavespectra-4.4.3}/wavespectra/construct/frequency.py +0 -0
- {wavespectra-4.4.2 → wavespectra-4.4.3}/wavespectra/core/__init__.py +0 -0
- {wavespectra-4.4.2 → wavespectra-4.4.3}/wavespectra/core/attributes.py +0 -0
- {wavespectra-4.4.2 → wavespectra-4.4.3}/wavespectra/core/attributes.yml +0 -0
- {wavespectra-4.4.2 → wavespectra-4.4.3}/wavespectra/core/fitting.py +0 -0
- {wavespectra-4.4.2 → wavespectra-4.4.3}/wavespectra/core/npstats.py +0 -0
- {wavespectra-4.4.2 → wavespectra-4.4.3}/wavespectra/core/select.py +0 -0
- {wavespectra-4.4.2 → wavespectra-4.4.3}/wavespectra/core/utils.py +0 -0
- {wavespectra-4.4.2 → wavespectra-4.4.3}/wavespectra/core/xrstats.py +0 -0
- {wavespectra-4.4.2 → wavespectra-4.4.3}/wavespectra/input/__init__.py +0 -0
- {wavespectra-4.4.2 → wavespectra-4.4.3}/wavespectra/input/awac.py +0 -0
- {wavespectra-4.4.2 → wavespectra-4.4.3}/wavespectra/input/dataset.py +0 -0
- {wavespectra-4.4.2 → wavespectra-4.4.3}/wavespectra/input/datawell.py +0 -0
- {wavespectra-4.4.2 → wavespectra-4.4.3}/wavespectra/input/era5.py +0 -0
- {wavespectra-4.4.2 → wavespectra-4.4.3}/wavespectra/input/funwave.py +0 -0
- {wavespectra-4.4.2 → wavespectra-4.4.3}/wavespectra/input/json.py +0 -0
- {wavespectra-4.4.2 → wavespectra-4.4.3}/wavespectra/input/ncswan.py +0 -0
- {wavespectra-4.4.2 → wavespectra-4.4.3}/wavespectra/input/ndbc.py +0 -0
- {wavespectra-4.4.2 → wavespectra-4.4.3}/wavespectra/input/netcdf.py +0 -0
- {wavespectra-4.4.2 → wavespectra-4.4.3}/wavespectra/input/obscape.py +0 -0
- {wavespectra-4.4.2 → wavespectra-4.4.3}/wavespectra/input/octopus.py +0 -0
- {wavespectra-4.4.2 → wavespectra-4.4.3}/wavespectra/input/spotter.py +0 -0
- {wavespectra-4.4.2 → wavespectra-4.4.3}/wavespectra/input/swan.py +0 -0
- {wavespectra-4.4.2 → wavespectra-4.4.3}/wavespectra/input/triaxys.py +0 -0
- {wavespectra-4.4.2 → wavespectra-4.4.3}/wavespectra/input/wavespectra.py +0 -0
- {wavespectra-4.4.2 → wavespectra-4.4.3}/wavespectra/input/ww3.py +0 -0
- {wavespectra-4.4.2 → wavespectra-4.4.3}/wavespectra/input/ww3_station.py +0 -0
- {wavespectra-4.4.2 → wavespectra-4.4.3}/wavespectra/input/wwm.py +0 -0
- {wavespectra-4.4.2 → wavespectra-4.4.3}/wavespectra/input/xwaves.py +0 -0
- {wavespectra-4.4.2 → wavespectra-4.4.3}/wavespectra/output/__init__.py +0 -0
- {wavespectra-4.4.2 → wavespectra-4.4.3}/wavespectra/output/funwave.py +0 -0
- {wavespectra-4.4.2 → wavespectra-4.4.3}/wavespectra/output/json.py +0 -0
- {wavespectra-4.4.2 → wavespectra-4.4.3}/wavespectra/output/netcdf.py +0 -0
- {wavespectra-4.4.2 → wavespectra-4.4.3}/wavespectra/output/octopus.py +0 -0
- {wavespectra-4.4.2 → wavespectra-4.4.3}/wavespectra/output/orcaflex.py +0 -0
- {wavespectra-4.4.2 → wavespectra-4.4.3}/wavespectra/output/swan.py +0 -0
- {wavespectra-4.4.2 → wavespectra-4.4.3}/wavespectra/output/ww3.py +0 -0
- {wavespectra-4.4.2 → wavespectra-4.4.3}/wavespectra/output/ww3.yml +0 -0
- {wavespectra-4.4.2 → wavespectra-4.4.3}/wavespectra/partition/__init__.py +0 -0
- {wavespectra-4.4.2 → wavespectra-4.4.3}/wavespectra/partition/hanson_and_phillips_2001.py +0 -0
- {wavespectra-4.4.2 → wavespectra-4.4.3}/wavespectra/partition/partition.py +0 -0
- {wavespectra-4.4.2 → wavespectra-4.4.3}/wavespectra/partition/specpart/specpart.c +0 -0
- {wavespectra-4.4.2 → wavespectra-4.4.3}/wavespectra/partition/specpart/specpart.h +0 -0
- {wavespectra-4.4.2 → wavespectra-4.4.3}/wavespectra/partition/specpart/specpart_wrap.c +0 -0
- {wavespectra-4.4.2 → wavespectra-4.4.3}/wavespectra/partition/tracking.py +0 -0
- {wavespectra-4.4.2 → wavespectra-4.4.3}/wavespectra/plot.py +0 -0
- {wavespectra-4.4.2 → wavespectra-4.4.3}/wavespectra/specarray.py +0 -0
- {wavespectra-4.4.2 → wavespectra-4.4.3}/wavespectra/specdataset.py +0 -0
- {wavespectra-4.4.2 → wavespectra-4.4.3}/wavespectra.egg-info/SOURCES.txt +0 -0
- {wavespectra-4.4.2 → wavespectra-4.4.3}/wavespectra.egg-info/dependency_links.txt +0 -0
- {wavespectra-4.4.2 → wavespectra-4.4.3}/wavespectra.egg-info/entry_points.txt +0 -0
- {wavespectra-4.4.2 → wavespectra-4.4.3}/wavespectra.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: wavespectra
|
|
3
|
-
Version: 4.4.
|
|
3
|
+
Version: 4.4.3
|
|
4
4
|
Summary: Library for ocean wave spectra
|
|
5
5
|
Author-email: Wavespectra Developers <r.guedes@oceanum.science>
|
|
6
6
|
Maintainer-email: Rafael Guedes <r.guedes@oceanum.science>, Tom Durrant <t.durrant@oceanum.science>
|
|
@@ -63,6 +63,7 @@ Requires-Dist: fsspec; extra == "extra"
|
|
|
63
63
|
Requires-Dist: gcsfs; extra == "extra"
|
|
64
64
|
Requires-Dist: h5netcdf; extra == "extra"
|
|
65
65
|
Requires-Dist: netCDF4; extra == "extra"
|
|
66
|
+
Requires-Dist: tbump; extra == "extra"
|
|
66
67
|
Requires-Dist: zarr; extra == "extra"
|
|
67
68
|
Provides-Extra: docs
|
|
68
69
|
Requires-Dist: cmocean; extra == "docs"
|
|
@@ -78,6 +78,7 @@ extra = [
|
|
|
78
78
|
"gcsfs",
|
|
79
79
|
"h5netcdf",
|
|
80
80
|
"netCDF4",
|
|
81
|
+
"tbump",
|
|
81
82
|
"zarr",
|
|
82
83
|
]
|
|
83
84
|
docs = [
|
|
@@ -131,6 +132,24 @@ line-ending = "auto"
|
|
|
131
132
|
"wavespectra/input/wavespectra.py" = ["F401"]
|
|
132
133
|
"wavespectra/input/xwaves.py" = ["F401"]
|
|
133
134
|
|
|
135
|
+
[tool.tbump]
|
|
136
|
+
github_url = "https://github.com/wavespectra/wavespectra/"
|
|
137
|
+
|
|
138
|
+
[tool.tbump.version]
|
|
139
|
+
current = "4.4.3"
|
|
140
|
+
regex = '''
|
|
141
|
+
(?P<major>\d+)
|
|
142
|
+
\.(?P<minor>\d+)
|
|
143
|
+
\.(?P<patch>\d+)
|
|
144
|
+
'''
|
|
145
|
+
|
|
146
|
+
[tool.tbump.git]
|
|
147
|
+
message_template = "Bump to {new_version}"
|
|
148
|
+
tag_template = "v{new_version}"
|
|
149
|
+
|
|
150
|
+
[[tool.tbump.file]]
|
|
151
|
+
src = "wavespectra/__init__.py"
|
|
152
|
+
|
|
134
153
|
[tool.tox]
|
|
135
154
|
legacy_tox_ini = """
|
|
136
155
|
[tox]
|
|
@@ -69,9 +69,12 @@ class SwanSpecFile(object):
|
|
|
69
69
|
"LOCATIONS", True
|
|
70
70
|
)
|
|
71
71
|
for ip in locs:
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
72
|
+
# Only the first two tokens are the x/y coordinates. SWAN allows
|
|
73
|
+
# an optional location name to follow them in the header, which
|
|
74
|
+
# is ignored by SWAN when reading the file (see #84).
|
|
75
|
+
xy = ip.split()
|
|
76
|
+
self.x.append(float(xy[0]))
|
|
77
|
+
self.y.append(float(xy[1]))
|
|
75
78
|
self.x = np.array(self.x)
|
|
76
79
|
self.y = np.array(self.y)
|
|
77
80
|
self.afreq = self._read_header("AFREQ", True)
|
|
@@ -35,7 +35,12 @@ def read_file(filename):
|
|
|
35
35
|
df = pd.read_csv(f, delimiter=r"\s+", compression=compressed, header=None)
|
|
36
36
|
df.index = pd.to_datetime(df[date_columns.keys()].rename(columns=date_columns))
|
|
37
37
|
df = df.iloc[:, list(date_columns.keys())[-1] + 1 :]
|
|
38
|
-
|
|
38
|
+
try:
|
|
39
|
+
# pandas 3+: "str" selects StringDtype columns; "object" selects legacy string columns
|
|
40
|
+
freqcols = df.select_dtypes(include=["object", "str"])
|
|
41
|
+
except TypeError:
|
|
42
|
+
# pandas 2: "str" is not a recognised dtype — object covers string columns
|
|
43
|
+
freqcols = df.select_dtypes(include=["object"])
|
|
39
44
|
if not (freqcols.nunique() == 1).all():
|
|
40
45
|
raise IOError("NDBC file has varying frequencies in same file")
|
|
41
46
|
freqs = freqcols.iloc[0].apply(
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: wavespectra
|
|
3
|
-
Version: 4.4.
|
|
3
|
+
Version: 4.4.3
|
|
4
4
|
Summary: Library for ocean wave spectra
|
|
5
5
|
Author-email: Wavespectra Developers <r.guedes@oceanum.science>
|
|
6
6
|
Maintainer-email: Rafael Guedes <r.guedes@oceanum.science>, Tom Durrant <t.durrant@oceanum.science>
|
|
@@ -63,6 +63,7 @@ Requires-Dist: fsspec; extra == "extra"
|
|
|
63
63
|
Requires-Dist: gcsfs; extra == "extra"
|
|
64
64
|
Requires-Dist: h5netcdf; extra == "extra"
|
|
65
65
|
Requires-Dist: netCDF4; extra == "extra"
|
|
66
|
+
Requires-Dist: tbump; extra == "extra"
|
|
66
67
|
Requires-Dist: zarr; extra == "extra"
|
|
67
68
|
Provides-Extra: docs
|
|
68
69
|
Requires-Dist: cmocean; extra == "docs"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|