npyjs
npyjs copied to clipboard
Read numpy .npy files in JavaScript
Closes #44 This PR add support of npy file containing `float16`. Float 16-bits is not supported in JavaScript as a `TypedArray`, but can be passed through javascript as an opaque...
Hi, I am using your library for fast prototyping. It was very convenient to use but i had to patch it to read float16. `float16` is not supported by js,...
Numpy supports the following dtypes as per [the docs](https://numpy.org/doc/stable/reference/arrays.dtypes.html#specifying-and-constructing-data-types). However `npyjs` only supports the following: | character | description | supported | | --- | --- | --- | |...
`.npy` files can contain structured arrays, as described [here](https://numpy.org/doc/stable/user/basics.rec.html), fail to open with error: ``` Uncaught SyntaxError: Unexpected token ( in JSON at position 28 ``` Example, in python create...
Hello -- some things I noticed in the code which I think may be worth mentioning. 1. **Errors for headers larger than 255 bytes**: In parse(), when reading the header...
Publishing a WIP as I have to step away from this for a little bit and perhaps someone will want to carry this across the finish-line :) This begins to...
```ts /* * Copyright 2023 aplbrain/npyjs * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License....
Hey @j6k4m8, this package has been super useful. I sat down to add the ability save files #15 and ended up tweaking a bunch of things: - Adds a `format`...
Title says it all. Would it be possible to include a `save()` function for TypedArrays and regular arrays? For both NodeJS filesystem as in-browser download? This way I can export...
When trying to open a file I get the following. Tried with both the local and absolute paths as well as with `file:///` and without. ```... node_modules/npyjs/index.js:115 TypeError: Only absolute...