Skip to content
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

Better reading of Int data types #17

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

BleakerM
Copy link

@BleakerM BleakerM commented Jan 29, 2025

Fixes part of issue #4 by allowing breaking down the iostream into UInt8 and then bit shifting this to represent the correct value as a UInt32, it also allows double floats (Float64) to be read in. The current fix passes all tests relevant to the changes. Tests not passed are the deprecation warnings for data and param fields.

The only thing this doesn't fix is for oddly sized ints e.g. Int10 - this would need a bit mask.

allows smaller multiple 8 channels to be read.
@BleakerM
Copy link
Author

Noticed that some entries are missing after the reading - hold off on any potential merge until fixed.

Copy link
Author

@BleakerM BleakerM left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Last fix should resolve the issue

@tlnagy
Copy link
Owner

tlnagy commented Feb 4, 2025

Thanks, looks good! The failures on the nightlies seems unrelated.

Do you mind adding some tests for the new features?

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