Merge branch 'master' of bitbucket.org:glavaux/cosmotool
This commit is contained in:
commit
5395097fa7
7 changed files with 135 additions and 40 deletions
|
@ -23,16 +23,16 @@ class SimulationBare(PySimulationBase):
|
|||
def merge(self, other):
|
||||
|
||||
def _safe_merge(a, b):
|
||||
if b:
|
||||
if a:
|
||||
if b is not None:
|
||||
if a is not None:
|
||||
a = [np.append(q, r) for q,r in zip(a,b)]
|
||||
else:
|
||||
a = b
|
||||
return a
|
||||
|
||||
def _safe_merge0(a, b):
|
||||
if b:
|
||||
if a:
|
||||
if b is not None:
|
||||
if a is not None:
|
||||
a = np.append(a, b)
|
||||
else:
|
||||
a = b
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue