In python naming a method append usually returns a modified version of the object, and not a modified copy. For this behavior the naming concatenate or merge is used.
import copy
class A():
def __init__(self, data):
self.data = data
def concatenate(self, other):
'''This concatenate self.data and other.data into a new object'''
merged = copy.deepcopy(self)
merged.data += other.data
return(merged)
def append(self, other):
'''This append other.data at the end of self.data.'''
self.data += other.data
return(True)
I decided not to offer the concatenation function anymore because
de-trending is less costly on shorter light curve chunks, and
injection-recovery sampling results should be interpreted with respect to individual light curves since their quality can vary across TESS/K2/Kepler sectors/campaigns/quarters
What needs to be created or improved?
In python naming a method
append
usually returns a modified version of the object, and not a modified copy. For this behavior the naming concatenate or merge is used.Can you provide an example?
a
is modified.lc1
is not modifiedWhat is the goal / expected behaviour?