Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
bilby
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
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
lscsoft
bilby
Commits
00af18be
Commit
00af18be
authored
5 years ago
by
Sylvia Biscoveanu
Browse files
Options
Downloads
Patches
Plain Diff
Fix string formatting
parent
272584c9
No related branches found
No related tags found
1 merge request
!507
Add method to get data by channel name
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bilby/gw/detector/__init__.py
+7
-7
7 additions, 7 deletions
bilby/gw/detector/__init__.py
with
7 additions
and
7 deletions
bilby/gw/detector/__init__.py
+
7
−
7
View file @
00af18be
...
...
@@ -235,9 +235,9 @@ def load_data_from_cache_file(
with
open
(
cache_file
,
'
r
'
)
as
ff
:
lines
=
ff
.
readlines
()
if
len
(
lines
)
>
1
:
raise
ValueError
(
'
This method cannot handle cache files with
multiple frames. Use `load_data_by_channel_name
instead.
'
)
raise
ValueError
(
'
This method cannot handle cache files with
'
'
multiple frames. Use `load_data_by_channel_name
'
'
instead.
'
)
else
:
line
=
lines
[
0
]
cache
=
lal
.
utils
.
cache
.
CacheEntry
(
line
)
...
...
@@ -250,11 +250,11 @@ def load_data_from_cache_file(
ifo
=
get_empty_interferometer
(
"
{}1
"
.
format
(
cache
.
observatory
))
if
not
data_in_cache
:
raise
ValueError
(
'
The specified data segment does not exist in
this frame.
'
)
raise
ValueError
(
'
The specified data segment does not exist in
'
'
this frame.
'
)
if
not
psd_in_cache
:
raise
ValueError
(
'
The specified PSD data segment does not exist
in this frame.
'
)
raise
ValueError
(
'
The specified PSD data segment does not exist
'
'
in this frame.
'
)
if
(
not
data_set
)
&
data_in_cache
:
ifo
.
set_strain_data_from_frame_file
(
frame_file
=
cache
.
path
,
...
...
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