Skip to content

Conversation

@srmnitc
Copy link
Member

@srmnitc srmnitc commented Nov 6, 2025

This pull request includes a minor update to the gather_results function in calphy/postprocessing.py. The change replaces the use of np.NaN with np.nan for consistency in representing missing free energy values.

@srmnitc srmnitc requested a review from Copilot November 6, 2025 12:09
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR fixes a case sensitivity issue with NumPy's NaN constant. The change corrects the usage of np.NaN to the proper lowercase np.nan, which is the standard NumPy constant for representing "Not a Number" values.

Key Changes

  • Corrected the capitalization of NumPy's NaN constant from np.NaN to np.nan in the postprocessing module

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@srmnitc srmnitc merged commit 64795f9 into main Nov 26, 2025
9 checks passed
@srmnitc srmnitc deleted the fix_nan branch November 26, 2025 15:52
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