asserts and checks
This commit is contained in:
parent
67afb6da47
commit
091f2cea4a
|
@ -419,7 +419,9 @@ class LatentBlending():
|
||||||
|
|
||||||
# Split the first block if there is branch1 crossfeeding
|
# Split the first block if there is branch1 crossfeeding
|
||||||
if self.branch1_influence > 0.0 and not self.branch1_insertion_completed:
|
if self.branch1_influence > 0.0 and not self.branch1_insertion_completed:
|
||||||
assert self.list_nmb_branches[0]==2, 'branch1 influence currently requires the self.list_nmb_branches[0] = 0'
|
assert self.list_nmb_branches[0]==2, 'branch1 influnce currently requires the self.list_nmb_branches[0] = 0'
|
||||||
|
self.branch1_influence = np.clip(self.branch1_influence, 0, 1)
|
||||||
|
self.branch1_fract_crossfeed = np.clip(self.branch1_fract_crossfeed, 0, 1)
|
||||||
self.list_nmb_branches.insert(1, 2)
|
self.list_nmb_branches.insert(1, 2)
|
||||||
idx_crossfeed = int(round(self.list_injection_idx[1]*self.branch1_fract_crossfeed))
|
idx_crossfeed = int(round(self.list_injection_idx[1]*self.branch1_fract_crossfeed))
|
||||||
self.list_injection_idx_ext.insert(1, idx_crossfeed)
|
self.list_injection_idx_ext.insert(1, idx_crossfeed)
|
||||||
|
|
Loading…
Reference in New Issue