Skip to content

[bug] Integer overflow when the photometry data is too long #6

Description

@teristam

Hello,

Recently I ran into a bug importing data from pyPhotometry. The default data type of np.arange is np.int32, which will lead to an integer overflow when the recoded length is longer than 35 min at 1000Hz from the following line:

time = np.arange(analog_1.shape[0])*1000/sampling_rate # Time relative to start of recording (ms).

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