DetermineChunking v1#
Summary#
Workflow algorithm to determine chunking strategy for event nexus, raw, or histo nexus files.
Properties#
Name |
Direction |
Type |
Default |
Description |
|---|---|---|---|---|
Filename |
Input |
string |
Mandatory |
The name of the event nexus, raw, or histo nexus file to read, including its full or relative path. The Event NeXus file name is typically of the form INST_####_event.nxs (N.B. case sensitive if running on Linux). Allowed extensions: [‘.nxs’, ‘.nxs.h5’, ‘.raw’, ‘_event.nxs’, ‘_histo.nxs’] |
MaxChunkSize |
Input |
number |
Optional |
Get chunking strategy for chunks with this number of Gbytes. File will not be loaded if this option is set. |
OutputWorkspace |
Output |
Mandatory |
An output workspace. |
Description#
Workflow algorithm to determine chunking strategy for event nexus, raw, or histo nexus files
Usage#
Example
ws=DetermineChunking("CNCS_7860_event.nxs",MaxChunkSize=0.0005)
print("A max chunk size of 0.0005 created {} chunks.".format(ws.rowCount()))
Output:
A max chunk size of 0.0005 created 11 chunks.
Categories: AlgorithmIndex | Workflow\DataHandling
Source#
C++ header: DetermineChunking.h
C++ source: DetermineChunking.cpp