You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
passing a quantity array to numpy functions (e.g. meshgrid) discards units #47
@ddale this example in this issue works as expected for me now, so I think this could be closed, however I did find a similar issue.
Using np.array, np.append and np.concatenate removes units, even if they are consistent - I could see how maybe this is a feature to prevent inconsistent units. My work around is quite fast, simply, reapply the units to the result.
Activity
jgosmann commentedon Jan 18, 2013
I would appreciate a fix for this.
jgosmann commentedon Jan 18, 2013
Same for numpy.concatenate.
mforbes commentedon Oct 23, 2014
And
np.arange.mikofski commentedon Mar 28, 2016
@ddale this example in this issue works as expected for me now, so I think this could be closed, however I did find a similar issue.
Using
np.array,np.appendandnp.concatenateremoves units, even if they are consistent - I could see how maybe this is a feature to prevent inconsistent units. My work around is quite fast, simply, reapply the units to the result.