-
Notifications
You must be signed in to change notification settings - Fork 15
Move data manipulation functions to external header #94
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
Move data manipulation functions to external header #94
Conversation
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.
Mostly looks good to me. Someone else should check this too.
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.
Could you rebase on top of main
branch, so we get the mostly-working CI?
You can see errors and warnings here. Search for |
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 numerous commits should be squashed down to just a few, or maybe even just one.
a216805
to
3864354
Compare
include/itkDataManipulation.h
Outdated
@@ -1,119 +0,0 @@ | |||
/*========================================================================= |
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.
I assume these file deletions should have been in a previous commit? Also it might make sense to squash commits 2 and 3, to avoid appearance of itkDataManipulation.h
only to be immediately renamed.
STYLE: Move unrelated data manipulation functions out of main class STYLE: Add and update doxygen comments for functions BUG: remove depreciated sprintf
3864354
to
6da674c
Compare
If you mark this as "ready for review" I will squash-merge it. |
Issue
There were multiple functions within the ScancoIO class that did not depend on or use any class-specific values. These functions are all related to manipulating raw data or strings and decoding/conversions to and from typed data. These currently clutter among the related IO functions for the class.
Additionally, these functions affect part of the issues seen in this issue. Specifically, the dates when written to an ISQ header are not correctly converted to the OpenVMS timestamps which have a different epoch. This caused 'garbage' dates to be written with the buggy conversion.
Proposed Changes
EncodeDate
function to beEncodeCurrentDate
Notes:
itkDataManipulation.h/cxx
are added files and an associated line is added for these to be compiled with cmake in theCMakeLists.txt
-> This file's name and organization method can be modified easily if preferred