Skip to content

Commit 9a41f88

Browse files
committed
Updated data classes docstrings to clarify parameters vs. attributes
1 parent e23cbb8 commit 9a41f88

10 files changed

Lines changed: 11 additions & 11 deletions

File tree

dabench/data/_barotropic.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ class Barotropic(_data.Data):
4343
vortices in turbulent flow. Journal of Fluid Mechanics, 146,
4444
pp 21-43 doi:10.1017/S0022112084001750.
4545
46-
Attributes:
46+
Args:
4747
system_dim: system dimension
4848
beta: Gradient of coriolis parameter. Units: meters^-1 *
4949
seconds^-1. Default is 0.

dabench/data/_data.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
class Data():
1919
"""Generic class for data generator objects.
2020
21-
Attributes:
21+
Args:
2222
system_dim: system dimension
2323
time_dim: total time steps
2424
original_dim: dimensions in original space, e.g. could be 3x3

dabench/data/_enso_indices.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class ENSOIndices(_data.Data):
1919
Notes:
2020
Source: https://www.cpc.ncep.noaa.gov/data/indices/
2121
22-
Attributes:
22+
Args:
2323
system_dim: system dimension
2424
time_dim: total time steps
2525
store_as_jax: Store values as jax array instead of numpy array.

dabench/data/_gcp.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class GCP(_data.Data):
2424
Source: https://cloud.google.com/storage/docs/public-datasets/era5
2525
Data is hourly
2626
27-
Attributes:
27+
Args:
2828
variables: Names of ERA5 variables to
2929
load. For description of variables, see:
3030
https://github.com/google-research/arco-era5?tab=readme-ov-file#full_37-1h-0p25deg-chunk-1zarr-v3

dabench/data/_lorenz63.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
class Lorenz63(_data.Data):
1616
""" Class to set up Lorenz 63 model data
1717
18-
Attributes:
18+
Args:
1919
sigma: Lorenz 63 param. Default is 10., the original value
2020
used in Lorenz, 1963.
2121
https://doi.org/10.1175/1520-0469(1963)020<0130:DNF>2.0.CO;2

dabench/data/_lorenz96.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class Lorenz96(_data.Data):
1919
Default values come from Lorenz, 1996:
2020
eapsweb.mit.edu/sites/default/files/Predicability_a_Problem_2006.pdf
2121
22-
Attributes:
22+
Args:
2323
forcing_term: Forcing constant for Lorenz96, prevents energy
2424
from decaying to 0. Default is 8.0.
2525
x0: Initial state vector, array of floats of size

dabench/data/_pyqg.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class PyQG(_data.Data):
3434
Uses default attribute values from pyqg.QGModel:
3535
https://pyqg.readthedocs.io/en/latest/api.html#pyqg.QGModel
3636
37-
Attributes:
37+
Args:
3838
beta (float): Gradient of coriolis parameter. Units: meters^-1 *
3939
seconds^-1
4040
rek (float): Linear drag in lower layer. Units: seconds^-1
@@ -47,7 +47,7 @@ class PyQG(_data.Data):
4747
ny (int): Number of grid points in the y direction (default: nx).
4848
L (float): Domain length in x direction. Units: meters.
4949
W (float): Domain width in y direction. Units: meters (default: L).
50-
filterfac (float): amplitdue of the spectral spherical filter
50+
filterfac (float): amplitude of the spectral spherical filter
5151
(originally 18.4, later changed to 23.6).
5252
delta_t (float): Numerical timestep. Units: seconds.
5353
twrite (int): Interval for cfl writeout. Units: number of timesteps.

dabench/data/_pyqg_jax.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ class PyQGJax(_data.Data):
4141
Uses default attribute values from pyqg_jax.QGModel:
4242
https://pyqg.readthedocs.io/en/latest/api.html#pyqg.QGModel
4343
44-
Attributes:
44+
Args:
4545
beta: Gradient of coriolis parameter. Units: meters^-1 *
4646
seconds^-1
4747
rd: Deformation radius. Units: meters.

dabench/data/_qgs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ class QGS(_data.Data):
3838
The QGS class is simply a wrapper of an *optional* qgs package.
3939
See https://qgs.readthedocs.io/
4040
41-
Attributes:
41+
Args:
4242
model_params: qgs parameter object. See:
4343
https://qgs.readthedocs.io/en/latest/files/technical/configuration.html#qgs.params.params.QgParams
4444
If None, will use defaults specified by:

dabench/data/_sqgturb.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
class SQGTurb(_data.Data):
5353
"""Class to set up SQGTurb model and manage data.
5454
55-
Attributes:
55+
Args:
5656
pv: Potential vorticity array. If None (default),
5757
loads data from 57600 step spinup with initial conditions taken
5858
from Jeff Whitaker's original implementation:

0 commit comments

Comments
 (0)