Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
pygwinc
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
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
gwinc
pygwinc
Commits
07137d74
Commit
07137d74
authored
4 years ago
by
Jameson Rollins
Browse files
Options
Downloads
Patches
Plain Diff
io: load_hdf5 don't fail if 'ifo' attribute can not be de-serialized
parent
cb3a79c4
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#129699
passed
4 years ago
Stage: dist
Stage: test
Stage: deploy
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
gwinc/io.py
+6
-1
6 additions, 1 deletion
gwinc/io.py
with
6 additions
and
1 deletion
gwinc/io.py
+
6
−
1
View file @
07137d74
import
h5py
import
yaml
import
datetime
from
.
import
logger
from
.
import
Struct
...
...
@@ -72,5 +74,8 @@ def load_hdf5(path):
traces
=
_read_trace_recursive
(
f
[
'
/traces
'
])
attrs
=
dict
(
f
.
attrs
)
if
'
ifo
'
in
attrs
:
attrs
[
'
ifo
'
]
=
Struct
.
from_yaml
(
attrs
[
'
ifo
'
])
try
:
attrs
[
'
ifo
'
]
=
Struct
.
from_yaml
(
attrs
[
'
ifo
'
])
except
yaml
.
constructor
.
ConstructorError
:
logger
.
warning
(
"
HDF5 load warning: Could not de-serialize
'
ifo
'
YAML attribute.
"
)
return
freq
,
traces
,
attrs
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