Skip to content
Snippets Groups Projects
Commit 43a384fd authored by Pierre Augier's avatar Pierre Augier
Browse files

Solve issue 3 in prob_dens_func.py.

parent 455b70b5
No related branches found
No related tags found
No related merge requests found
......@@ -305,7 +305,7 @@
spec_output.init_path_files()
except AttributeError:
pass
def compute_energy(self):
return 0.
......@@ -338,8 +338,7 @@
class SpecificOutput(object):
"""Small class for features useful for specific outputs"""
def __init__(self, output, name_file=None,
period_save=0, period_plot=0,
def __init__(self, output, period_save=0, period_plot=0,
has_to_plot_saved=False,
dico_arrays_1time=None):
......
......@@ -9,6 +9,7 @@
"""A :class:`ProbaDensityFunc` object handles the saving of pdf.
"""
_tag = 'pdf'
_name_file = _tag + '.h5'
@staticmethod
def _complete_params_with_default(params):
......@@ -16,7 +17,7 @@
params.output.periods_save._set_attrib(tag, 0)
params.output._set_child(tag,
attribs={'HAS_TO_PLOT_SAVED': False})
attribs={'HAS_TO_PLOT_SAVED': False})
def __init__(self, output):
params = output.sim.params
......@@ -26,7 +27,6 @@
super(ProbaDensityFunc, self).__init__(
output,
name_file='pdf.h5',
period_save=params.output.periods_save.pdf,
has_to_plot_saved=params.output.pdf.HAS_TO_PLOT_SAVED)
......
......@@ -32,7 +32,7 @@
params.output.periods_save._set_attrib(tag, 0)
params.output._set_child(tag,
attribs={'HAS_TO_PLOT_SAVED': False})
attribs={'HAS_TO_PLOT_SAVED': False})
def __init__(self, output):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment