13
13
import mule
14
14
import os
15
15
import argparse
16
+
16
17
PROG_STASH_CODES = (0 , 33 , 34 )
17
18
MASK_CODE = 30
18
19
@@ -50,7 +51,6 @@ def parse_arguments():
50
51
args_parsed .include_list = [int (v ) for v in args_parsed .include_list .split ("," )] if args_parsed .include_list else []
51
52
args_parsed .exclude_list = [int (x ) for x in args_parsed .exclude_list .split ("," )] if args_parsed .exclude_list else []
52
53
53
-
54
54
# Check if neither -v nor -x is provided
55
55
if not args_parsed .include_list and not args_parsed .exclude_list and not args_parsed .prognostic :
56
56
raise argparse .ArgumentError (None , "Error: Either -v or -x or -p must be specified." )
@@ -60,8 +60,8 @@ def parse_arguments():
60
60
61
61
def validate_arguments (include_list , exclude_list , prognostic ):
62
62
"""
63
- Checks that the inclusion and exclusion lists are not provided simultaneously
64
- and ensures that the 'prognostic' flag is not used with explicit inclusion or exclusion lists.
63
+ Checks that the inclusion and exclusion lists are not provided simultaneously and
64
+ ensures that the 'prognostic' flag is not used with explicit inclusion or exclusion lists.
65
65
66
66
Parameters
67
67
----------
@@ -76,7 +76,6 @@ def validate_arguments(include_list, exclude_list, prognostic):
76
76
----------
77
77
None
78
78
"""
79
-
80
79
if include_list and exclude_list :
81
80
raise Exception ("Error: -x and -v are mutually exclusive" )
82
81
@@ -139,8 +138,8 @@ def filter_fields(input_file, prognostic, include_list, exclude_list):
139
138
140
139
Parameters
141
140
----------
142
- field : object
143
- The field object to be checked.
141
+ input_file : object
142
+ The loaded dump fields file
144
143
prognostic : bool
145
144
A boolean flag indicating if only prognostic fields should be included.
146
145
include_list : list of int
0 commit comments