Skip to content

Support variable character limit in NDAttributesFile#550

Merged
MarkRivers merged 1 commit intoareaDetector:masterfrom
callumforrester:configurable-ndattributes-char-limit
Aug 26, 2025
Merged

Support variable character limit in NDAttributesFile#550
MarkRivers merged 1 commit intoareaDetector:masterfrom
callumforrester:configurable-ndattributes-char-limit

Conversation

@callumforrester
Copy link
Contributor

@callumforrester callumforrester commented Aug 22, 2025

Following #503 the NDAttributesFile record can also directly contain an XML string, however the record is still limited to 256 characters, which may not be enough to accomodate a large blob of XML. This adds a macro, XMLSIZE, with a default of 256, so IOCs can be configured to accomodate larger blobs of XML.

@callumforrester callumforrester changed the title Support variable character limit NDAttributesFile Support variable character limit in NDAttributesFile Aug 22, 2025
@callumforrester callumforrester marked this pull request as ready for review August 22, 2025 10:17
@jwlodek
Copy link
Member

jwlodek commented Aug 22, 2025

I think the macro should be used for the NELM field rather than FTVL?

@callumforrester callumforrester force-pushed the configurable-ndattributes-char-limit branch from 41f65ec to 3f0d0cb Compare August 22, 2025 11:46
@callumforrester
Copy link
Contributor Author

callumforrester commented Aug 22, 2025

Thanks @jwlodek, I should actually read before I push!

@MarkRivers
Copy link
Member

Note that the XML layout file for the HDF5 plugin can also be directly contained in the XMLFileName record. The ability to specify the size of that waveform record was added in lines 676 and 685 in this commit: 5ad2a68

For consistency I suggest using the same XMLSIZE macro that is used in that file.

Following areaDetector#503
the NDAttributesFile record can also directly contain an XML string,
however the record is still limited to 256 characters, which may not be
enough to accomodate a large blob of XML. This adds a macro,
XMLSIZE, with a default of 256, so IOCs can be
configured to accomodate larger blobs of XML.
@callumforrester callumforrester force-pushed the configurable-ndattributes-char-limit branch from 3f0d0cb to 91fbd75 Compare August 26, 2025 10:53
@callumforrester
Copy link
Contributor Author

@MarkRivers thanks, done

@MarkRivers MarkRivers merged commit 25bb966 into areaDetector:master Aug 26, 2025
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.

3 participants