-
Notifications
You must be signed in to change notification settings - Fork 74
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
math/Utils: removed, removes support for I/O BigEndian files #307
Conversation
- we do not support any BigEndian platforms, that code has not been run or tested - otherwise, math/Utils had no usage, so can be removed
@dkeeney you should probably review this, as you made the capnp switch and work on NetworkAPI. |
@@ -29,7 +29,6 @@ | |||
#include <cstdio> //fopen | |||
#include <iostream> | |||
#include <math.h> | |||
#include <nupic/math/Utils.hpp> // For isSystemLittleEndian and utils::swapBytesInPlace. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
these were the only uses of math/Utils,
and I could remove the support (for reading files with different endian-ness, as we can only serialize to/from files on the same platform now)
See also issue #175. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good to me, but I don't fully understand the VectorFile
code so I can't approve.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, I agree with this.
The code is actually rather ugly and there is no reason that it needs to be that way. But it works and I think it is a lower priority to clean up that code. Perhaps a cleanup would be appropriate if/when we change the name as per Issue #306. |
or tested
Fixes #103
For #306 VectorFile: removes BigEndian support
API breakage: VectorFileSensor can no longer Read files created on BigEndian on a LittleEnd platform, but since we revamped Serialization completely by removing capnp, this is not an issue. As now we support serialization only on the same platform as the code runs.