Skip to content

allows deserealizing np.float64#259

Open
Harshghub wants to merge 1 commit into
tiqi-group:mainfrom
Harshghub:feature-numpy-float-serialization
Open

allows deserealizing np.float64#259
Harshghub wants to merge 1 commit into
tiqi-group:mainfrom
Harshghub:feature-numpy-float-serialization

Conversation

@Harshghub

Copy link
Copy Markdown

No description provided.

@mosmuell

Copy link
Copy Markdown
Member

Hey @Harshghub,
Thanks for this. For now, I have been avoiding adding support for numpy types entirely as this brings a bit of complexity with it, e.g.

  • I would assume that serialised numpy floats could be derserialised into the same type again.
  • other numpy types (int, bool, ...) should probably also be added
  • we should make sure that numpy does not become a direct dependency of pydase. It should only be imported where necessary, in which case the user already installed numpy.
  • As we have two different types of clients (python clients, web clients) we should think about how they handle numpy types. For example, if you expose a numpy float through a property, changing this in the frontend should not change it to a simple float. When you change it through the python client, however, the type could be overwritten... Also, the python client needs to have numpy installed when interacting with a server exposing a numpy type

That's just some thoughts on numpy types and why I didn't add support for them yet.

What are your thoughts on this?

@Harshghub

Harshghub commented Oct 6, 2025 via email

Copy link
Copy Markdown
Author

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.

2 participants