Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
S
Stingray
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
LOFAR2.0
Stingray
Commits
137d50cc
Commit
137d50cc
authored
3 weeks ago
by
Hannes Feldt
Browse files
Options
Downloads
Patches
Plain Diff
L2SS-1914
: Fix extract entry point
parent
e7072a99
No related branches found
Branches containing commit
Tags
v0.0.23
Tags containing commit
1 merge request
!25
L2SS-1914: Fix extract entry point
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lofar_stingray/extract.py
+4
-5
4 additions, 5 deletions
lofar_stingray/extract.py
with
4 additions
and
5 deletions
lofar_stingray/extract.py
+
4
−
5
View file @
137d50cc
# Copyright (C) 202
4
ASTRON (Netherlands Institute for Radio Astronomy)
# Copyright (C) 202
5
ASTRON (Netherlands Institute for Radio Astronomy)
# SPDX-License-Identifier: Apache-2.0
"""
Entry point to extract statistic matrices & metadata to store them as HDF5
"""
...
...
@@ -6,6 +6,7 @@
import
argparse
import
logging
import
os
import
sys
import
tempfile
from
datetime
import
datetime
,
timedelta
from
urllib.parse
import
urlparse
...
...
@@ -80,13 +81,13 @@ def _round_datetime_ms(timestamp: datetime) -> datetime:
return
timestamp
-
timedelta
(
microseconds
=
subtract_ms
)
def
main
(
sys_args
)
->
int
:
def
main
(
sys_args
=
None
)
->
int
:
"""
Parser main method
"""
logger
.
debug
(
"
Starting hdf5 converter
"
)
parser
=
_create_parser
()
args
=
parser
.
parse_args
(
sys_args
)
minio_client
=
get_minio_client
(
args
)
minio_client
=
get_minio_client
(
args
or
sys
.
argv
[
1
:]
)
logger
.
info
(
"
Using source %s
"
,
args
.
source
)
# connect to storage
...
...
@@ -155,6 +156,4 @@ def main(sys_args) -> int:
if
__name__
==
"
__main__
"
:
import
sys
sys
.
exit
(
main
(
sys
.
argv
[
1
:]))
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