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
4d8cc897
Commit
4d8cc897
authored
6 years ago
by
Colm Talbot
Browse files
Options
Downloads
Patches
Plain Diff
change imports, set up default BBH prior
parent
5f008ac6
No related branches found
No related tags found
1 merge request
!59
Updating priors
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tupak/gw/prior.py
+6
-4
6 additions, 4 deletions
tupak/gw/prior.py
with
6 additions
and
4 deletions
tupak/gw/prior.py
+
6
−
4
View file @
4d8cc897
import
logging
from
tupak.core
import
prior
from
tupak.core.prior
import
*
class
CBC
PriorSet
(
prior
.
PriorSet
):
class
BBH
PriorSet
(
PriorSet
):
def
__init__
(
self
,
dictionary
=
None
,
filename
=
None
):
prior
.
PriorSet
.
__init__
(
dictionary
=
dictionary
,
filename
=
filename
)
if
dictionary
is
None
and
filename
is
None
:
filename
=
os
.
path
.
join
(
os
.
path
.
dirname
(
__file__
),
'
prior_files
'
,
'
binary_black_holes.prior
'
)
logging
.
info
(
'
No prior given, using default BBH priors in {}.
'
.
format
(
filename
))
PriorSet
.
__init__
(
dictionary
=
dictionary
,
filename
=
filename
)
self
.
test_redundancy
=
test_cbc_redundancy
...
...
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