Skip to content
Snippets Groups Projects
Commit a64bcbd4 authored by Bruce Flynn's avatar Bruce Flynn
Browse files

fix bad conditional in rdrgen

parent f6705b08
No related branches found
No related tags found
No related merge requests found
......@@ -5,17 +5,20 @@ from edosl0util.rdrgen import packets_to_rdrs
def main():
parser = util.default_parser(description=__doc__)
parser.add_argument(
'--aggr-type', choices=['idps', 'full'], default='idps',
help=(
'Aggregation type to perform. Use idps to have the aggregation buckets '
'determined by the same method IDPS uses, or full to create a single '
'large RDR containg all the data.'
)
)
'--aggr-type',
choices=['idps', 'full'],
default='idps',
help=
('Aggregation type to perform. Use idps to have the aggregation buckets '
'determined by the same method IDPS uses, or full to create a single '
'large RDR containg all the data.'))
g = parser.add_mutually_exclusive_group()
g.add_argument(
'--aggr-level', type=int,
help='Number of aggregation granules used to determine alignment. Only used for type = idps.')
'--aggr-level',
type=int,
help=
'Number of aggregation granules used to determine alignment. Only used for type = idps.'
)
g.add_argument('--aggr', type=int, help='Deprecated, use --aggr-level')
parser.add_argument('sat', choices=['npp', 'snpp', 'j01'])
parser.add_argument('pds', nargs='+')
......@@ -24,11 +27,12 @@ def main():
level = args.aggr_level or args.aggr
if args.sat = 'snpp':
if args.sat == 'snpp':
args.sat = 'npp'
if level:
packets_to_rdrs(args.sat, args.pds, aggr_type=args.aggr_type, aggr_level=level)
packets_to_rdrs(
args.sat, args.pds, aggr_type=args.aggr_type, aggr_level=level)
else:
packets_to_rdrs(args.sat, args.pds, aggr_type=args.aggr_type)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment