Skip to content

NumPy deprecating 'a256' dtype #123

Description

@rogding

It seems that NumPy deprecated the 'a256' dtype somewhere between 2.4.4 and 2.5.2.

  • Deprecation warning when using dtype='a256' in numpy=2.4.4:
    DeprecationWarning: Data type alias 'a' was deprecated in NumPy 2.0. Use the 'S' alias instead.

  • Error message using dtype='a256' in numpy=2.5.2:
    TypeError: data type 'a256' not understood

'a256' appears in a few locations within labscript (although I have also found it in labscript_devices/NI_DAQmx and I'm sure it'll be in other locations as well):

I would guess a transparent fix would be to replace all instances of 'a256' with 'S256' but wanted to get some input before submitting PRs.

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