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

Return AdjFloat of an AdjFloat summation #181

Merged
merged 10 commits into from
Nov 28, 2024
Merged

Conversation

Ig-dolci
Copy link
Contributor

No description provided.

@@ -196,6 +197,23 @@ def __call__(self, values):
if len(values) != len(self.controls):
raise ValueError("values should be a list of same length as controls.")

for i, value in enumerate(values):
if isinstance(value, (int, float)):
value = AdjFloat(value)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do this the generic way.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@Ig-dolci Ig-dolci requested review from connorjward and dham November 28, 2024 09:23
@Ig-dolci Ig-dolci merged commit 3415139 into master Nov 28, 2024
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants