Closed Sheshuk closed 7 months ago
Even worse—before, you needed data = [[[1]]] << u.Unit('1/(MeV s cm**2)')
(with triple brackets). I agree this is a nice improvement; thanks!
Thanks, you're right! I didn't think about that. That's definitely against what the user would expect.
I added:
data
array if it's 1D to one of the expected shapes.Maybe it still doesn't cover all the possible corner cases.
But in general this class is not supposed to be created by user, but rather produced in the SupernovaModel.get_flux
etc...
But I need to think of more strict conditions, when to use this reshaping
Fixing problem if a user passes a scalar value to container. Example: