Skip to content
Snippets Groups Projects
Commit 00af18be authored by Sylvia Biscoveanu's avatar Sylvia Biscoveanu
Browse files

Fix string formatting

parent 272584c9
No related branches found
No related tags found
1 merge request!507Add method to get data by channel name
......@@ -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,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment