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

Fix type-related bug in DCEGM #990

Merged
merged 2 commits into from
Apr 5, 2021
Merged

Conversation

Mv77
Copy link
Contributor

@Mv77 Mv77 commented Mar 28, 2021

Recent versions of numpy became more strict with respect to data types. Particularly, np.NaN is no longer accepted in integer arrays. This was causing a crash in the DCEGM code whenever it was used with numpy 1.2.0 (which the binder instances do). For instance the DCEGM DemArk binder link crashes.

This PR fixes the issue.

  • Tests for new functionality/models or Tests to reproduce the bug-fix in code.
  • Updated documentation of features that add new functionality.
  • Update CHANGELOG.md with major/minor changes.

@project-bot project-bot bot added this to Needs Triage in Issues & PRs Mar 28, 2021
@Mv77
Copy link
Contributor Author

Mv77 commented Mar 28, 2021

I have not updated the change-log because I'm not sure what the next release will be and what format you'd like to have (no changes have been recorded since 0.11).

@sbenthall
Copy link
Contributor

Let's assume that there will be a 0.12.0 release with data TBD
Then you can fill out the changelog accordingly.
If we wind up doing a 1.0 instead of a 0.12.0 we can update it before the release.

@sbenthall
Copy link
Contributor

Is this the same thing as #988 looks like it?

@Mv77
Copy link
Contributor Author

Mv77 commented Apr 5, 2021

Is this the same thing as #988 looks like it?

It is, yes. Any of the two solutions should work.

@Mv77
Copy link
Contributor Author

Mv77 commented Apr 5, 2021

Changelog updated. This is now ready to merge (Alan's solution would also work).

@llorracc llorracc merged commit 4a4184a into econ-ark:master Apr 5, 2021
Issues & PRs automation moved this from Needs Triage to Done Apr 5, 2021
@Mv77 Mv77 deleted the BugFix/DCEGM branch April 29, 2021 21:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Issues & PRs
  
Done
Development

Successfully merging this pull request may close these issues.

None yet

3 participants