Skip to content
Snippets Groups Projects
Commit fec1a81a authored by Charlie Hoy's avatar Charlie Hoy
Browse files

updating typo

parent acc68112
No related branches found
No related tags found
1 merge request!335Downsample before applying conversion function
Pipeline #129361 failed
......@@ -420,6 +420,7 @@ class Read(object):
np.array(self.samples).T, number
))
self.samples = _samples.T.tolist()
self.extra_kwargs["sampler"]["nsamples"] = number
def to_dat(self, **kwargs):
"""Save the PESummary results file object to a dat file
......
......@@ -564,6 +564,7 @@ class PESummary(Read):
_samples.append(np.array(resample_posterior_distribution(
np.array(samp).T, number
)).T.tolist())
self.extra_kwargs[num]["sampler"]["nsamples"] = number
self.samples = _samples
def to_dat(self, labels="all", **kwargs):
......
......@@ -572,8 +572,8 @@ class GWRead(Read):
self.parameters, self.samples, extra_kwargs=self.extra_kwargs,
return_dict=False, **kwargs
)
self.data["parameters"] = data[0]
self.data["samples"] = data[1]
self.parameters = data[0]
self.samples = data[1]
if kwargs.get("return_kwargs", False):
self.extra_kwargs = data[2]
......
......@@ -303,8 +303,8 @@ class PESummary(GWRead, CorePESummary):
converted_samples.append(data[1])
if kwargs.get("return_kwargs", False):
converted_kwargs.append(data[2])
self.data["parameters"] = converted_params
self.data["samples"] = converted_samples
self.parameters = converted_params
self.samples = converted_samples
if converted_kwargs != []:
self.extra_kwargs = {
label: converted_kwargs[num] for num, label in enumerate(
......
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