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
b2f117e0
Commit
b2f117e0
authored
4 years ago
by
MoritzThomasHuebner
Browse files
Options
Downloads
Patches
Plain Diff
Fixed some documentation
parent
b785508c
No related branches found
No related tags found
1 merge request
!932
Fix pickle
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
bilby/core/result.py
+3
-3
3 additions, 3 deletions
bilby/core/result.py
bilby/core/sampler/__init__.py
+1
-1
1 addition, 1 deletion
bilby/core/sampler/__init__.py
with
4 additions
and
4 deletions
bilby/core/result.py
+
3
−
3
View file @
b2f117e0
...
...
@@ -42,7 +42,7 @@ def result_file_name(outdir, label, extension='json', gzip=False):
label: str
Naming scheme of the output file
extension: str, optional
Whether to save as `hdf5`
or
`json`
Whether to save as `hdf5`
,
`json`
, or `pickle`
gzip: bool, optional
Set to True to append `.gz` to the extension for saving in gzipped format
...
...
@@ -730,11 +730,11 @@ class Result(object):
default=False
outdir: str, optional
Path to the outdir. Default is the one stored in the result object.
extension: str, optional {json, hdf5, True}
extension: str, optional {json, hdf5,
pickle,
True}
Determines the method to use to store the data (if True defaults
to json)
gzip: bool, optional
If true, and outputing to a json file, this will gzip the resulting
If true, and output
t
ing to a json file, this will gzip the resulting
file and add
'
.gz
'
to the file extension.
"""
...
...
This diff is collapsed.
Click to expand it.
bilby/core/sampler/__init__.py
+
1
−
1
View file @
b2f117e0
...
...
@@ -93,7 +93,7 @@ def run_sampler(likelihood, priors=None, label='label', outdir='outdir',
saving. For example, if `meta_data={dtype:
'
signal
'
}`. Warning: in case
of conflict with keys saved by bilby, the meta_data keys will be
overwritten.
save: bool
save: bool
, str
If true, save the priors and results to disk.
If hdf5, save as an hdf5 file instead of json.
If pickle or pkl, save as an pickle file instead of json.
...
...
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