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
8b42354d
Commit
8b42354d
authored
5 years ago
by
Colm Talbot
Committed by
Gregory Ashton
5 years ago
Browse files
Options
Downloads
Patches
Plain Diff
add progress bars to post-processing
parent
b7915477
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
bilby/gw/conversion.py
+5
-3
5 additions, 3 deletions
bilby/gw/conversion.py
requirements.txt
+1
-0
1 addition, 0 deletions
requirements.txt
setup.py
+2
-1
2 additions, 1 deletion
setup.py
with
8 additions
and
4 deletions
bilby/gw/conversion.py
+
5
−
3
View file @
8b42354d
from
__future__
import
division
import
sys
from
tqdm
import
tqdm
import
numpy
as
np
from
pandas
import
DataFrame
...
...
@@ -969,13 +971,13 @@ def compute_snrs(sample, likelihood):
else
:
logger
.
info
(
'
Computing SNRs for every sample
, this may take some time
.
'
)
'
Computing SNRs for every sample.
'
)
matched_filter_snrs
=
{
ifo
.
name
:
[]
for
ifo
in
likelihood
.
interferometers
}
optimal_snrs
=
{
ifo
.
name
:
[]
for
ifo
in
likelihood
.
interferometers
}
for
ii
in
range
(
len
(
sample
)):
for
ii
in
tqdm
(
range
(
len
(
sample
))
,
file
=
sys
.
stdout
)
:
signal_polarizations
=
\
likelihood
.
waveform_generator
.
frequency_domain_strain
(
dict
(
sample
.
iloc
[
ii
]))
...
...
@@ -1030,7 +1032,7 @@ def generate_posterior_samples_from_marginalized_likelihood(
new_time_samples
=
list
()
new_distance_samples
=
list
()
new_phase_samples
=
list
()
for
ii
in
range
(
len
(
samples
)):
for
ii
in
tqdm
(
range
(
len
(
samples
))
,
file
=
sys
.
stdout
)
:
sample
=
dict
(
samples
.
iloc
[
ii
]).
copy
()
likelihood
.
parameters
.
update
(
sample
)
new_sample
=
likelihood
.
generate_posterior_sample_from_marginalized_likelihood
()
...
...
This diff is collapsed.
Click to expand it.
requirements.txt
+
1
−
0
View file @
8b42354d
...
...
@@ -7,3 +7,4 @@ scipy>=0.16
pandas
mock
dill
tqdm
This diff is collapsed.
Click to expand it.
setup.py
+
2
−
1
View file @
8b42354d
...
...
@@ -84,7 +84,8 @@ setup(name='bilby',
'
numpy>=1.9
'
,
'
matplotlib>=2.0
'
,
'
pandas
'
,
'
scipy
'
],
'
scipy
'
,
'
tqdm
'
],
entry_points
=
{
'
console_scripts
'
:
[
'
bilby_plot=cli_bilby.plot_multiple_posteriors:main
'
,
'
bilby_result=cli_bilby.bilby_result:main
'
,
...
...
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