Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
L
l2json
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
David McKenna
l2json
Commits
c1a88c7c
Commit
c1a88c7c
authored
1 month ago
by
David McKenna
Browse files
Options
Downloads
Patches
Plain Diff
FIX: Only error if data is present and metadata is missing
parent
b7a77e29
No related branches found
No related tags found
1 merge request
!37
FIX: Only error if data is present and metadata is missing
Pipeline
#120862
passed
1 month ago
Stage: prepare
Stage: test
Stage: package
Pipeline: l2json
#120863
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
l2json/sources/minio.py
+6
-2
6 additions, 2 deletions
l2json/sources/minio.py
with
6 additions
and
2 deletions
l2json/sources/minio.py
+
6
−
2
View file @
c1a88c7c
...
@@ -176,9 +176,13 @@ def fetch_from_minio(
...
@@ -176,9 +176,13 @@ def fetch_from_minio(
tqdm_desc
=
"
Parsing metadata
"
,
tqdm_desc
=
"
Parsing metadata
"
,
)
)
]
]
if
not
len
(
metadata
):
raise
KeyError
(
f
"
No metadata was found for
{
station
}
/
{
statistics_type
}
/
{
antennafield
}
@
{
tstart
}
-
{
tend
}
"
)
else
:
else
:
metadata
=
[]
metadata
=
[]
if
fetch_metadata
and
not
len
(
metadata
):
if
len
(
data
):
raise
KeyError
(
f
"
No metadata was found for
{
station
}
/
{
statistics_type
}
/
{
antennafield
}
@
{
tstart
}
-
{
tend
}
"
)
else
:
print
(
f
"
No metadata was found for
{
station
}
/
{
statistics_type
}
/
{
antennafield
}
@
{
tstart
}
-
{
tend
}
"
)
return
metadata
,
data
return
metadata
,
data
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