Skip to content
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

Deprecated assignment of array to scalar #303

Open
MassimoCimmino opened this issue Aug 30, 2024 · 1 comment
Open

Deprecated assignment of array to scalar #303

MassimoCimmino opened this issue Aug 30, 2024 · 1 comment
Labels
Milestone

Comments

@MassimoCimmino
Copy link
Owner

Some of the examples return a DeprecationWarning from numpy due to the assignment of an array to a scalar, of the form:

deltaT_b = LoadAgg.temporal_superposition()
T_b[i] = T_g - deltaT_b

where deltaT_b is an array of shape (1,).

This issue will implement a clause in the load aggregation objects to convert the output of _LoadAggregation.temporal_superposition() to a scalar when the supplied g-function is of shape (Nt,).

@MassimoCimmino MassimoCimmino added this to the v2.2.4 milestone Aug 30, 2024
@MassimoCimmino
Copy link
Owner Author

numpy.asscalar is also deprecated and used in the gFunction class

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant