Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
EdosL0Util
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SIPS
EdosL0Util
Commits
a64bcbd4
Commit
a64bcbd4
authored
6 years ago
by
Bruce Flynn
Browse files
Options
Downloads
Patches
Plain Diff
fix bad conditional in rdrgen
parent
f6705b08
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
edosl0util/cli/rdrgen.py
+15
-11
15 additions, 11 deletions
edosl0util/cli/rdrgen.py
with
15 additions
and
11 deletions
edosl0util/cli/rdrgen.py
+
15
−
11
View file @
a64bcbd4
...
...
@@ -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
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment