CNCLgithub / GalileoEvents

Galileo + Events
MIT License
2 stars 0 forks source link

ValueError: could not broadcast input array from shape (180,3,3,3) into shape (180,3) #20

Closed jeffzma2000 closed 4 years ago

jeffzma2000 commented 4 years ago

@belledon I am running into this error when I try to concatenate first_trace[0:contact] and trace2. I assume this is because of something due to the shape of the arrays but I am not sure where I went wrong.

belledon commented 4 years ago

simulate returns a triple (pal, rot, col) you should concatenate each component individually

jeffzma2000 commented 4 years ago

I pushed the new changes where I concatenated them individually. When you wrote to save using np.save, did you mean to save the concatenated components of (pal, rot, col)?

belledon commented 4 years ago

yes. lets save two sets of traces. Let the first set consist of the original trace without causal intervention for the full time frame. Use the prefix orig_* as in orig_pal.npy.

the second set consists of the concatenation with altered trace, use the prefix intr_*