Skip to content

Output cannot expand timeseries with numpy==1.25 #100

Closed
@dihm

Description

@dihm

Refreshed a labscript installation and bumped up against this line

self.raw_output = np.array(self.timeseries, dtype=np.dtype)

There appears to be a typo, since np.dtype is not a dtype, but a function for getting dtypes. Older versions of numpy allow this to slide by assuming an object dtype which get corrected later when writing to/from the h5 file. With at least numpy 1.25, this call results in a process hanging error that stops the compiler cold.

Fix is pretty simple: self.raw_output = np.array(self.timeseries, dtype=np.dtype(self.dtype)) to match the call below it.

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingcritical

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions