Skip to content

Comments

Internalize NDDataTypeToScalar#569

Merged
MarkRivers merged 2 commits intoareaDetector:masterfrom
mdavidsaver:internalize-NDDataTypeToScalar
Feb 18, 2026
Merged

Internalize NDDataTypeToScalar#569
MarkRivers merged 2 commits intoareaDetector:masterfrom
mdavidsaver:internalize-NDDataTypeToScalar

Conversation

@mdavidsaver
Copy link
Contributor

Address #568 by using replacing the pvData::ScalarType enum codes with constants. This avoids an unnecessary cross-dependency, and better reflects the reality that these values have become a de facto part of the NTNDArray on-the-wire definition.

I have included an optional second commit adding a sanity bounds check of NDDataTypeToScalar[].

ScalarType enum values from pvDataCPP are a de-facto part
of the NTNDArray definition.  So internalize them to avoid
an unnecessary cross dependency.
@MarkRivers MarkRivers merged commit 8487422 into areaDetector:master Feb 18, 2026
8 checks passed
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