Menu

#797 binary data source uris to support simple math

closed
nobody
None
5
2023-02-25
2023-02-24
No

It would be really nice if the binary data source URIs would support simple math. For example, I need to read a 2-d array from each record, and each is 64x48 floats. I could do the math and put in 3072, but it also serves as documentation, making magic numbers less mysterious. I would just add support for a single operation, either plus or times (+ or * ).

Discussion

  • Jeremy Faden

    Jeremy Faden - 2023-02-24

    Actually it's pretty easy to support multiple plus and times operations, so I've done that.

     
  • Jeremy Faden

    Jeremy Faden - 2023-02-25
    • status: open --> wont-fix
     
  • Jeremy Faden

    Jeremy Faden - 2023-02-25
    • status: wont-fix --> closed
     
  • Jeremy Faden

    Jeremy Faden - 2023-02-25

    I also added a new "dims" control, which allows a rank 3 dataset to be read in from a binary file. For example, dims=[3,2] will read six numbers from each record and reform them into a 3 by 2 array.

     
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.