Closed liuzhenqi77 closed 3 years ago
Wait really? It's giving me the same thing... Is this maybe a Python version thing?
>>> n_predictor = 4
>>> print([[] for _ in range(n_predictor - 1)])
[[], [], []]
>>> print([[]] * (n_predictor - 1))
[[], [], []]
Ahhhh, just realized—it's just a reference to the same list! Shit, my bad. Sorry about that!!
@liuzhenqi77 you opened this as a draft PR—I'm assuming you want it merged in though since it's just a quick bug fix. Can you confirm?
Yes, thanks! :shipit:
Just realized this was not the same 😱 https://github.com/netneurolab/netneurotools/pull/97#discussion_r571301858