Skip to content

[trivial] update m2cgen to use NumPy 2.0's np.nan convention #592

Description

NumPy 2.0 uses np.nan instead of np.NaN. Numpy 1.x supports both.

Recommend switching to np.nan in the 3 places it is used in m2cgen, in tests/utils.py:
83: [np.nan] * self.X.shape[1],
107: [np.nan] * self.X.shape[1],
120: [np.nan] * self.X.shape[1],

Figured I'd raise this issue for awareness, while I figure out how to properly upstream from our fork.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions