Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
lscsoft
bilby
Commits
aad8e07f
Commit
aad8e07f
authored
Jun 13, 2018
by
Moritz Huebner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reverted some other changes to restore the original behaviour
parent
60a27381
Pipeline
#21906
failed with stages
in 3 minutes and 11 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
tupak/core/result.py
tupak/core/result.py
+4
-4
No files found.
tupak/core/result.py
View file @
aad8e07f
...
...
@@ -69,15 +69,15 @@ class Result(dict):
val
=
self
.
_standardise_a_string
(
dictionary
[
key
])
setattr
(
self
,
key
,
val
)
__setattr__
=
dict
.
__setitem__
__delattr__
=
dict
.
__delitem__
def
__getattr__
(
self
,
name
):
try
:
return
self
[
name
]
except
KeyError
:
raise
AttributeError
(
name
)
__setattr__
=
dict
.
__setitem__
__delattr__
=
dict
.
__delitem__
def
__repr__
(
self
):
"""Print a summary """
if
hasattr
(
self
,
'samples'
):
...
...
@@ -144,7 +144,7 @@ class Result(dict):
logging
.
info
(
"Saving result to {}"
.
format
(
file_name
))
try
:
deepdish
.
io
.
save
(
file_name
,
self
.
__dict__
)
deepdish
.
io
.
save
(
file_name
,
dict
(
self
)
)
except
Exception
as
e
:
logging
.
error
(
"
\n\n
Saving the data has failed with the "
"following message:
\n
{}
\n\n
"
.
format
(
e
))
...
...
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