Skip to content

Commit 09ea7fe

Browse files
committed
Remove phyvars.PLATES
This is no longer used as the plates module handle arbitrary fields and sfields variables.
1 parent 3bfa10c commit 09ea7fe

File tree

5 files changed

+1
-26
lines changed

5 files changed

+1
-26
lines changed

docs/sources/apiref/phyvars.rst

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -85,19 +85,6 @@ phyvars
8585
Dictionary of time series that StagPy can compute. Keys are the variable
8686
names, values are :class:`Vart` instances.
8787

88-
.. class:: Varp
89-
90-
:class:`collections.namedtuple` whose instances hold metadata of
91-
plate variables. It defines the following fields:
92-
93-
- **description** (*str*): short description of the variable.
94-
95-
.. data:: PLATES
96-
:annotation: = {platevar: Varp()}
97-
98-
Dictionary of plate variables output by StagYY. Keys are the variable
99-
names, values are :class:`Varp` instances.
100-
10188
.. data:: SCALES
10289
:annotation: = {dimstr: func}
10390

stagpy/commands.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -142,9 +142,6 @@ def var_cmd():
142142
print('refstate:')
143143
_layout(phyvars.REFSTATE, {})
144144
print()
145-
if print_all or conf.var.plates:
146-
print('plates:')
147-
_layout(phyvars.PLATES, {})
148145

149146

150147
def version_cmd():

stagpy/config.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -215,8 +215,6 @@ def _index_collection(arg):
215215
False, 'print time variables')),
216216
('refstate', Conf(None, True, None, {'action': 'store_true'},
217217
False, 'print refstate variables')),
218-
('plates', Conf(None, True, None, {'action': 'store_true'},
219-
False, 'print plates variables')),
220218
))
221219

222220
CONF_DEF['config'] = config_conf_section()

stagpy/phyvars.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -262,13 +262,6 @@
262262
('grav', Varr('Gravity', 'Gravity', 'm/s2')),
263263
))
264264

265-
Varp = namedtuple('Varp', ['description'])
266-
PLATES = OrderedDict((
267-
('c', Varp('Composition')),
268-
('sc', Varp('Topography')),
269-
('age', Varp('Age')),
270-
))
271-
272265
SCALES = {
273266
'm': attrgetter('length'),
274267
'kg/m3': attrgetter('density'),

tests/test_commands.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def test_var_cmd(capsys):
1717
stagpy.commands.var_cmd()
1818
output = capsys.readouterr()
1919
expected = re.compile(
20-
r'field:\n.*\nrprof:\n.*\ntime:\n.*\nplates:\n.*$',
20+
r'field:\n.*\nrprof:\n.*\ntime:\n.*\n.*$',
2121
flags=re.DOTALL)
2222
assert expected.fullmatch(output.out)
2323

0 commit comments

Comments
 (0)