-
Notifications
You must be signed in to change notification settings - Fork 128
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
Change integer type of Mantid:Nexus::NXInfo #38805
Change integer type of Mantid:Nexus::NXInfo #38805
Conversation
790de34
to
bb5510e
Compare
This is no longer needed |
fbca2b5
to
5c550b0
Compare
👋 Hi, @peterfpeterson, Conflicts have been detected against the base branch. Please rebase your branch against the base branch. |
e08c226
to
259a147
Compare
259a147
to
cdb0bca
Compare
@@ -295,7 +295,7 @@ Workspace_sptr LoadNexusProcessed::doAccelleratedMultiPeriodLoading(NXRoot &root | |||
NXDataSetTyped<double> errors(wsEntry, "errors"); | |||
errors.openLocal(); | |||
|
|||
const int nChannels = data.dim1(); | |||
const int nChannels = static_cast<int>(data.dim1()); |
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.
Can this be declared int64_t
?
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.
There is too much pointer math in this section to edit as part of this PR. It deserves a harder look
@@ -489,7 +489,7 @@ Workspace_sptr LoadMuonNexus1::loadDetectorGrouping(NXRoot &root, const Geometry | |||
NXInt groupingData = dataEntry.openNXInt("grouping"); | |||
groupingData.load(); | |||
|
|||
int numGroupingEntries = groupingData.dim0(); | |||
int numGroupingEntries = static_cast<int>(groupingData.dim0()); |
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 this not be int64_t
or size_t
?
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 started down this path and it got ugly really fast
@@ -931,14 +931,14 @@ void LoadNexusProcessed::loadV3DColumn(Mantid::NeXus::NXDouble &data, const API: | |||
if (!columnTitle.empty()) { | |||
ColumnVector<V3D> col = tableWs->addColumn("V3D", columnTitle); | |||
|
|||
const int rowCount = data.dim0(); | |||
const int64_t rowCount = data.dim0(); |
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.
Not related to your PR, but it annoys me that L848 and L851 above use dims[]
and L934 uses dim0()
.
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 might also need a cast operation, as above
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'm not messing with these
👋 Hi, @peterfpeterson, Conflicts have been detected against the base branch. Please rebase your branch against the base branch. |
ec5a899
to
5576a64
Compare
👋 Hi, @peterfpeterson, Conflicts have been detected against the base branch. Please rebase your branch against the base branch. |
5576a64
to
31efdde
Compare
31efdde
to
2124ac1
Compare
👋 Hi, @peterfpeterson, Conflicts have been detected against the base branch. Please rebase your branch against the base branch. |
2124ac1
to
3f95cc7
Compare
👋 Hi, @peterfpeterson, Conflicts have been detected against the base branch. Please rebase your branch against the base branch. |
9734f34
to
c01c3bf
Compare
Since nexus actually works with int64_t, change the integer type in nxinfo to match
c01c3bf
to
9a19ed1
Compare
Since nexus actually works with
int64_t
, change the integer type inNexusClasses.h
'sNXInfo
to match the representation.This is intended to support #38791 and isolate potential issues because it is a much more substantial change.
Refs #38332
To test:
This changes an internal type from
int
toint64_t
and existing tests will pick up any issues caused by it.This does not require release notes because it is a code refactor with no user facing changes.
Reviewer
Please comment on the points listed below (full description).
Your comments will be used as part of the gatekeeper process, so please comment clearly on what you have checked during your review. If changes are made to the PR during the review process then your final comment will be the most important for gatekeepers. In this comment you should make it clear why any earlier review is still valid, or confirm that all requested changes have been addressed.
Code Review
Functional Tests
Does everything look good? Mark the review as Approve. A member of
@mantidproject/gatekeepers
will take care of it.Gatekeeper
If you need to request changes to a PR then please add a comment and set the review status to "Request changes". This will stop the PR from showing up in the list for other gatekeepers.