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

Supporting numpy2 #1236

Merged
merged 4 commits into from
Apr 4, 2025
Merged

Supporting numpy2 #1236

merged 4 commits into from
Apr 4, 2025

Conversation

damonge
Copy link
Collaborator

@damonge damonge commented Mar 26, 2025

No description provided.

@coveralls
Copy link

Pull Request Test Coverage Report for Build 14127403199

Details

  • 9 of 9 (100.0%) changed or added relevant lines in 2 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 97.458%

Totals Coverage Status
Change from base Build 13315009901: 0.0%
Covered Lines: 6557
Relevant Lines: 6728

💛 - Coveralls

Copy link
Contributor

@vitenti vitenti left a comment

Choose a reason for hiding this comment

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

Looks good to me. All Firecrown unit tests pass with this version.

@@ -124,7 +124,8 @@ def _initialize(self, data_path):
# Add to diagonal
for i, lw in enumerate(self.lamws[j]):
sigma_sim[i, :, :] += np.diag(np.full(m, 1./lw))
kb = np.linalg.solve(sigma_sim, self.w[j])
kb = np.linalg.solve(sigma_sim,
Copy link
Contributor

Choose a reason for hiding this comment

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

This was an annoying change of behavior of numpy, it took me awhile to check if this is the best solution, and it looks like it is.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I know....
Thanks @vitenti !

@damonge damonge merged commit fb49187 into master Apr 4, 2025
4 checks passed
@damonge damonge deleted the numpy2 branch April 4, 2025 08:37
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