Commit 0a26231d authored by Niklas Uwe Langner's avatar Niklas Uwe Langner
Browse files

[simulations] Only shuffle vecs when it exists

parent 6f42437e
Pipeline #232023 passed with stages
in 7 minutes and 16 seconds
......@@ -109,8 +109,10 @@ class BaseSimulation:
sets_ids = np.repeat(np.arange(self.nsets), self.ncrs).reshape(self.shape)
for _key in[_key] =[_key][sets_ids, shuffle_ids]
sets_ids_3d = np.repeat(np.arange(3),,) + self.shape)['vecs'] =['vecs'][sets_ids_3d, sets_ids, np.stack([shuffle_ids] * 3)]
self.signal_label = self.signal_label[sets_ids, shuffle_ids]
if 'vecs' in
sets_ids_3d = np.repeat(np.arange(3),,) + self.shape)
Please register or sign in to reply['vecs'] =['vecs'][sets_ids_3d, sets_ids, np.stack([shuffle_ids] * 3)]
class ObservedBound(BaseSimulation):
Supports Markdown
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