-
Notifications
You must be signed in to change notification settings - Fork 6
implement LArray.from_dict or from_dict top-level function #581
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
and/or modify behavior of LArray(dict) which currently creates a "scalar" LArray with the dict, which is a bit weird. |
stack(d) could work for this use case, but it currently does not. |
As long as we add one or several examples, no warnings at all seems fine to me. |
* generalized it to more than one dimension (closes #56) - works for both stack([(ndkey, value), ...], axis=axes) and stack({ndkey: value}, several_axes) - deprecated axis argument in favor of axes * changed the exception when using **kwargs without an axis on Python < 3.6 to a warning * allowed using a dict without axis (closes #581, closes #755) This will produces a warning on Python < 3.7 * added support for res_axes
* generalized it to more than one dimension (closes #56) - works for both stack([(ndkey, value), ...], axis=axes) and stack({ndkey: value}, several_axes) - deprecated axis argument in favor of axes * changed the exception when using **kwargs without an axis on Python < 3.6 to a warning * allowed using a dict without axis (closes #581, closes #755) This will produces a warning on Python < 3.7 * added support for res_axes
@alixdamman the functionality is now in stack, but LArray.from_dict might be more readable/more discoverable, so we might want to add it as a simple alias anyway. Thoughts? |
|
The text was updated successfully, but these errors were encountered: