Commit b0454c18 authored by Yannick DAYER's avatar Yannick DAYER

Remove the Sampleset exception in copy_attributes.

parent edc9e508
......@@ -16,15 +16,7 @@ def _copy_attributes(sample, parent, kwargs):
"""Copies attributes from a dictionary to self."""
if parent is not None:
for key in parent.__dict__:
if (
key.startswith("_")
or key in SAMPLE_DATA_ATTRS
or (
isinstance(sample, SampleSet)
and getattr(parent, "_delayed_attributes", None) is not None
and key in getattr(parent, "_delayed_attributes", [])
)
):
if key.startswith("_") or key in SAMPLE_DATA_ATTRS:
continue
setattr(sample, key, getattr(parent, key))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment