Skip to content

Implemented unicode dtype support and a dump to blob function#55

Closed
sebaB003 wants to merge 6 commits into
aplbrain:masterfrom
Materys:rebase
Closed

Implemented unicode dtype support and a dump to blob function#55
sebaB003 wants to merge 6 commits into
aplbrain:masterfrom
Materys:rebase

Conversation

@sebaB003
Copy link
Copy Markdown
Contributor

@sebaB003 sebaB003 commented Sep 4, 2025

Implemented U (unicode) data handling in parse function
Implemented a dump function to save a JavaScript Array object or typed array in npy format as a Blob object.

Added tests for the dump functionality.

rikigigi and others added 6 commits September 4, 2025 11:20
for the moment it is simply stored as a uint16 array. The lowercase
conversion is removed since it makes no difference between U (unicode)
and u (unsigned int)
The dump function allows to create a npy file from a javascript Array
object or typed arrays.
In the case of Array object the dtype is infered.
The dump function returns a Blob object that can be saved to a file.

A loadBlob function has been added to load a npy from a Blob object.

Added tests for the dump function
@j6k4m8
Copy link
Copy Markdown
Member

j6k4m8 commented Sep 4, 2025

This is great @sebaB003 !! I'm currently working on refactoring this code base in #52 — Do you think it would be possible to rebase onto that branch? If not, I will be able to do it in a few weeks myself — thank you so much for this contribution!!

@sebaB003
Copy link
Copy Markdown
Contributor Author

sebaB003 commented Sep 5, 2025

I'm going to rework my changes on top of the #52

@sebaB003 sebaB003 closed this Sep 5, 2025
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.

3 participants