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

sum, max, and min np like methods of NDVarArray #350

Merged
merged 14 commits into from
Jun 19, 2023

Conversation

Dimosts
Copy link
Collaborator

@Dimosts Dimosts commented Jun 13, 2023

I am adding the max and min functions in NDVarArray. For now same as sum, but I plan to also implement the 'axis' and 'out' options.

Any good suggestion of what other np methods we could use?

@IgnaceBleukx
Copy link
Collaborator

looking at the list of np functions in their docs:
any, all, (mean? will probably already work...), prod

@Dimosts
Copy link
Collaborator Author

Dimosts commented Jun 15, 2023

any, all, mean and prod added. I also added some tests for NDVarArray expressions.

I think it is ready for a review

@IgnaceBleukx
Copy link
Collaborator

Should we also fix issue #341 in this pull request? Can also be in another one probably

@IgnaceBleukx IgnaceBleukx marked this pull request as ready for review June 15, 2023 13:33
@Dimosts
Copy link
Collaborator Author

Dimosts commented Jun 16, 2023

I am fine both with including it in this PR or another one. Do you already know how to fix that issue? If not, I can look into it

cpmpy/expressions/variables.py Outdated Show resolved Hide resolved
cpmpy/expressions/variables.py Outdated Show resolved Hide resolved
cpmpy/expressions/variables.py Outdated Show resolved Hide resolved
cpmpy/expressions/variables.py Outdated Show resolved Hide resolved
cpmpy/expressions/variables.py Outdated Show resolved Hide resolved
@JoD JoD added the next release Needed for next release label Jun 19, 2023
@Dimosts Dimosts merged commit d618fa7 into master Jun 19, 2023
@Wout4 Wout4 mentioned this pull request Jun 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
next release Needed for next release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants