ladim 2.0.4__py3-none-any.whl → 2.0.5__py3-none-any.whl
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.
- ladim/__init__.py +1 -1
- ladim/__main__.py +1 -1
- ladim/config.py +5 -1
- ladim/forcing.py +2 -0
- ladim/grid.py +14 -4
- ladim/output.py +0 -1
- {ladim-2.0.4.dist-info → ladim-2.0.5.dist-info}/METADATA +2 -2
- {ladim-2.0.4.dist-info → ladim-2.0.5.dist-info}/RECORD +12 -12
- {ladim-2.0.4.dist-info → ladim-2.0.5.dist-info}/WHEEL +1 -1
- {ladim-2.0.4.dist-info → ladim-2.0.5.dist-info}/LICENSE +0 -0
- {ladim-2.0.4.dist-info → ladim-2.0.5.dist-info}/entry_points.txt +0 -0
- {ladim-2.0.4.dist-info → ladim-2.0.5.dist-info}/top_level.txt +0 -0
ladim/__init__.py
CHANGED
ladim/__main__.py
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
from . import run
|
|
2
|
-
run()
|
|
2
|
+
run()
|
ladim/config.py
CHANGED
|
@@ -73,7 +73,7 @@ def convert_1_to_2(c):
|
|
|
73
73
|
if 'numerics' in c:
|
|
74
74
|
if 'dt' in c['numerics']:
|
|
75
75
|
dt_value, dt_unit = c['numerics']['dt']
|
|
76
|
-
dt_sec = np.timedelta64(dt_value, dt_unit).astype('timedelta64[s]').astype(
|
|
76
|
+
dt_sec = int(np.timedelta64(dt_value, dt_unit).astype('timedelta64[s]').astype(int))
|
|
77
77
|
|
|
78
78
|
out['version'] = 2
|
|
79
79
|
|
|
@@ -86,13 +86,17 @@ def convert_1_to_2(c):
|
|
|
86
86
|
|
|
87
87
|
out['grid'] = {}
|
|
88
88
|
out['grid']['file'] = dict_get(c, [
|
|
89
|
+
'gridforce.first_file',
|
|
89
90
|
'files.grid_file', 'gridforce.grid_file',
|
|
90
91
|
'files.input_file', 'gridforce.input_file'])
|
|
91
92
|
out['grid']['legacy_module'] = dict_get(c, 'gridforce.module', '') + '.Grid'
|
|
92
93
|
out['grid']['start_time'] = np.datetime64(dict_get(c, 'time_control.start_time', '1970'), 's')
|
|
94
|
+
out['grid']['subgrid'] = dict_get(c, 'gridforce.subgrid', None)
|
|
93
95
|
|
|
94
96
|
out['forcing'] = {}
|
|
95
97
|
out['forcing']['file'] = dict_get(c, ['gridforce.input_file', 'files.input_file'])
|
|
98
|
+
out['forcing']['first_file'] = dict_get(c, 'gridforce.first_file', "")
|
|
99
|
+
out['forcing']['last_file'] = dict_get(c, 'gridforce.last_file', "")
|
|
96
100
|
out['forcing']['legacy_module'] = dict_get(c, 'gridforce.module', '') + '.Forcing'
|
|
97
101
|
out['forcing']['start_time'] = np.datetime64(dict_get(c, 'time_control.start_time', '1970'), 's')
|
|
98
102
|
out['forcing']['stop_time'] = np.datetime64(dict_get(c, 'time_control.stop_time', '1970'), 's')
|
ladim/forcing.py
CHANGED
|
@@ -45,6 +45,8 @@ class RomsForcing(Forcing):
|
|
|
45
45
|
legacy_conf = dict(
|
|
46
46
|
gridforce=dict(
|
|
47
47
|
input_file=file,
|
|
48
|
+
first_file=conf.get('first_file', ""),
|
|
49
|
+
last_file=conf.get('last_file', ""),
|
|
48
50
|
),
|
|
49
51
|
ibm_forcing=conf.get('ibm_forcing', []),
|
|
50
52
|
start_time=conf.get('start_time', None),
|
ladim/grid.py
CHANGED
|
@@ -22,18 +22,28 @@ class Grid(Module):
|
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
class RomsGrid(Grid):
|
|
25
|
-
def __init__(
|
|
25
|
+
def __init__(
|
|
26
|
+
self,
|
|
27
|
+
model: Model,
|
|
28
|
+
file: str,
|
|
29
|
+
start_time=None,
|
|
30
|
+
subgrid=None,
|
|
31
|
+
legacy_module='ladim.gridforce.ROMS.Grid',
|
|
32
|
+
**_,
|
|
33
|
+
):
|
|
26
34
|
super().__init__(model)
|
|
27
35
|
|
|
28
36
|
legacy_conf = dict(
|
|
29
37
|
gridforce=dict(
|
|
30
|
-
input_file=
|
|
38
|
+
input_file=file,
|
|
31
39
|
),
|
|
32
|
-
start_time=
|
|
40
|
+
start_time=start_time,
|
|
33
41
|
)
|
|
42
|
+
if subgrid is not None:
|
|
43
|
+
legacy_conf['gridforce']['subgrid'] = subgrid
|
|
34
44
|
|
|
35
45
|
from .model import load_class
|
|
36
|
-
LegacyGrid = load_class(
|
|
46
|
+
LegacyGrid = load_class(legacy_module)
|
|
37
47
|
|
|
38
48
|
# Allow gridforce module in current directory
|
|
39
49
|
import sys
|
ladim/output.py
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
ladim/__init__.py,sha256=
|
|
2
|
-
ladim/__main__.py,sha256=
|
|
3
|
-
ladim/config.py,sha256=
|
|
4
|
-
ladim/forcing.py,sha256=
|
|
5
|
-
ladim/grid.py,sha256=
|
|
1
|
+
ladim/__init__.py,sha256=UGP8_kdUONjjK3VRkweldaz-FdiCQ5T8Jxip8Yuff20,51
|
|
2
|
+
ladim/__main__.py,sha256=I1AOHBQDwQNe3fVmDMyC84JcriqidOEURoeoJSOCTzg,24
|
|
3
|
+
ladim/config.py,sha256=p6swxS4yF0wHPNxE8psNtRxr4YGyhqnsrBs5kdYkUc0,5698
|
|
4
|
+
ladim/forcing.py,sha256=0KjV7R0S0Zx8RCDV2KohA6aWB7zpYekLiBpxRQeZfsw,3156
|
|
5
|
+
ladim/grid.py,sha256=42R6kIaLzDjFy026Ja0iJkwfbsidCYfcJ2vHghTyzEg,2417
|
|
6
6
|
ladim/main.py,sha256=6_blu3PYnDXaYdPxfZoukWsjN0o9vh7O8_-W2-aguAI,2894
|
|
7
7
|
ladim/model.py,sha256=iXClvieChhipCSZ-dDrmnjqwS4cuM53VpJv7oaJyQ88,3794
|
|
8
|
-
ladim/output.py,sha256=
|
|
8
|
+
ladim/output.py,sha256=uhdPdlIRicggXcARXXj72js811BeVymTH-NAq6qvmTI,8372
|
|
9
9
|
ladim/release.py,sha256=1j__9Gj0BD0CqVCM2KLZhio1Ia-hz1gbUIhTsa0J3Rg,8451
|
|
10
10
|
ladim/sample.py,sha256=n8wRGd_VsW_qyQe1ZoTpmfZcdcwB929vsM8PoKG6JTs,8292
|
|
11
11
|
ladim/solver.py,sha256=sZvYgOxzJ-EItI-IB2y8_z8Tf-SJAQSrmydlhDRa7ZQ,755
|
|
@@ -24,9 +24,9 @@ postladim/cellcount.py,sha256=nCFu9iJmprubn4YmPB4W0VO02GfEb90Iif7D49w1Kss,2054
|
|
|
24
24
|
postladim/kde_plot.py,sha256=GvMWzT6VxIeXKh1cnqaGzR-4jGG_WIHGMLPpRMXIpo4,1628
|
|
25
25
|
postladim/particlefile.py,sha256=0aif9wYUJ-VrpQKeCef8wB5VCiBB-gWY6sxNCUYviTA,4889
|
|
26
26
|
postladim/variable.py,sha256=-2aihoppYMMmpSpCqaF31XvpinTMaH3Y01-USDIkbBc,6587
|
|
27
|
-
ladim-2.0.
|
|
28
|
-
ladim-2.0.
|
|
29
|
-
ladim-2.0.
|
|
30
|
-
ladim-2.0.
|
|
31
|
-
ladim-2.0.
|
|
32
|
-
ladim-2.0.
|
|
27
|
+
ladim-2.0.5.dist-info/LICENSE,sha256=BgtXyjNr6Ly9nQ7ZLXKpV3r5kWRLnh5MiN0dxp0Bvfc,1085
|
|
28
|
+
ladim-2.0.5.dist-info/METADATA,sha256=XLp5OWtYkodte-kXvLCRp5HPZQZuIq9c98kzBtlhs-E,1841
|
|
29
|
+
ladim-2.0.5.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
|
|
30
|
+
ladim-2.0.5.dist-info/entry_points.txt,sha256=JDlNJo87GJaOkH0-BpAzTPLCrZcuPSdSlHNQ4XmnoRg,41
|
|
31
|
+
ladim-2.0.5.dist-info/top_level.txt,sha256=TK8Gl7d6MsrAQvqKG4b6YJCbB4UL46Se3SzsI-sJAuc,16
|
|
32
|
+
ladim-2.0.5.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|