Skip to content

Commit ef67209

Browse files
committed
Add options to RunMatrix for #40
1 parent c5b5509 commit ef67209

File tree

2 files changed

+56
-0
lines changed

2 files changed

+56
-0
lines changed

cape/cfdx/options/runmatrixopts.py

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -282,6 +282,34 @@ class BetaKeyDefnOpts(KeyDefnOpts):
282282
}
283283

284284

285+
# Definitions for CaseFunction
286+
class CaseFunctionKeyDefnOpts(KeyDefnOpts):
287+
# Attributes
288+
__slots__ = ()
289+
290+
# Additional options
291+
_optlist = (
292+
"CompID",
293+
"Function",
294+
)
295+
296+
# Types
297+
_opttypes = {
298+
"CompID": (str,) + INT_TYPES,
299+
"Function": str,
300+
}
301+
302+
# Option list depth
303+
_optlistdepth = {
304+
"CompID": 1,
305+
}
306+
307+
# Defaults
308+
_rc = {
309+
"Label": False,
310+
}
311+
312+
285313
# Definitions for missile-axis roll
286314
class PhiPKeyDefnOpts(KeyDefnOpts):
287315
# Attributes
@@ -783,6 +811,7 @@ class KeyDefnCollectionOpts(OptionsDict):
783811
_sec_cls_opt = "Type"
784812
_sec_cls_optmap = {
785813
"_default_": KeyDefnOpts,
814+
"CaseFunction": CaseFunctionKeyDefnOpts,
786815
"ConfigFunction": ConfigFunctionDefnOpts,
787816
"ConfigRotate": ConfigRotationDefnKeyOpts,
788817
"ConfigTranslate": ConfigTranslationDefnKeyOpts,

doc/changelog.rst

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,33 @@
33
Changelog
44
********************
55

6+
Release 2.0.1
7+
=============================
8+
9+
New Features
10+
---------------
11+
12+
* GPU options in *RunControl* section of options
13+
* ``CaseRunner`` system calls now allow piping lines of a file to STDIN
14+
15+
16+
Behavior Changes
17+
------------------
18+
19+
* Archiving uses ``tar -u`` if using the standard ``.tar`` archive format
20+
* Fix ``-e`` option to execute commands in case folders, and allow it to run
21+
regular system commands (not just local scripts)
22+
23+
24+
Bugs Fixed
25+
--------------
26+
27+
* Add several missing options to *RunMatrix* definitions
28+
* Improve handling of different-sized iterative histories in ``CaseFM``
29+
* Add PyYAML and colorama to install requirements
30+
31+
32+
633
Release 2.0.0
734
=============================
835

0 commit comments

Comments
 (0)