Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Eliu Huerta Escudero
Waveform_Extractor
Commits
44ee260e
Commit
44ee260e
authored
Feb 12, 2021
by
Roland Haas
Browse files
POWER: fix sim_dir usage
parent
92829d77
Changes
1
Hide whitespace changes
Inline
Side-by-side
power.py
View file @
44ee260e
...
...
@@ -378,7 +378,7 @@ def POWER(sim_path, radii, modes):
first level is indexed only by None then by the (el,em) mode, ie.
strains[None][(el,em)] is a numpy array.
"""
simdirs
=
os
.
path
.
join
(
sim_
dir
,
"output-????"
,
"*"
)
simdirs
=
os
.
path
.
join
(
sim_
path
,
"output-????"
,
"*"
)
meta_name
=
glob
.
glob
(
os
.
path
.
join
(
simdirs
,
"TwoPunctures.bbh"
))[
0
]
f0
=
getCutoffFrequencyFromTwoPuncturesBBH
(
meta_name
)
...
...
@@ -388,7 +388,7 @@ def POWER(sim_path, radii, modes):
# get translation table from (mode, radius) to dataset name
# TODO: this ought to be handled differently
dsets
=
{}
fn
=
glob
.
glob
(
os
.
path
.
join
(
sim
m
dirs
,
"mp_[Pp]si4.h5"
))[
0
]
fn
=
glob
.
glob
(
os
.
path
.
join
(
simdirs
,
"mp_[Pp]si4.h5"
))[
0
]
with
h5py
.
File
(
fn
,
"r"
)
as
fh
:
for
dset
in
fh
:
# TODO: extend Multipole to save the radii as attributes and/or
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment