Hi John,
Ø
In the ADPilatus plug-in, should I set "Auto Increment" to No? Which will give me a fixed "FULL_FILE_NAME". Of course, then this file keeps getting over-written and deleting
it is less relevant.
There is no need to set AutoIncrement to No. In you detector attribute XML file if you add this line:
<Attribute name="DriverFileName" type="PARAM" source="FULL_FILE_NAME" datatype="STRING" description="Driver file name"/>
then it should set that attribute to the name of the TIFF file corresponding to that NDArray, and then the HDF5 file plugin will delete the correct file, even if it has an incrementing file number
in it. Did you try that and see some issue?
Mark
From: Tech-talk <tech-talk-bounces at aps.anl.gov>
On Behalf Of John Dobbins via Tech-talk
Sent: Monday, February 8, 2021 10:55 AM
To: tech-talk at aps.anl.gov
Subject: ADPilaus + NDFileHDF5
I am trying the Pilatus with the NDFileHDF5 plug-in. From an acquisition I end up with both TIFF (x NumImages) files and one hdf5 file and am wondering about the proper way to end up with just the
hdf5.
I see in the documentation for the NDPluginFile
-----------------------------------------------------------
The base class will delete the “original” file that the driver created for that array if the following are all true:
The DeleteDriverFile record is “Yes”.
The file plugin has successfully written a new file.
The array contains an attribute called “DriverFileName” that contains the full file name of the original file. The driver attributes XML file should contain a line like the following:
<Attribute name="DriverFileName" type="PARAM" source="FULL_FILE_NAME" datatype="STRING" description="Driver file name"/>
-------------------------------------------------------------
In the NDFileHDF5 plug-in I have "Delete Driver File" = Yes
And the plug-in successfully writes the .h5 file
Regarding the third point (Attribute DriverFileName):
In the ADPilatus plug-in, should I set "Auto Increment" to No? Which will give me a fixed "FULL_FILE_NAME". Of course, then this file keeps getting over-written and deleting it is less relevant.
What is the best way to handle this?
Research Support Specialist
Cornell High Energy Synchrotron Source