slac-lcls / smalldata_tools

code to facilitate production of LCLS small data files and the analysis thereof
12 stars 11 forks source link

finally include the var/flat arrays as sparsifyFunc option #129

Closed silkenelson closed 2 years ago

silkenelson commented 2 years ago

Now not specifying nData will give you a 'var array'. nData==0 is a ragged array and nData > 0 the good, old rectangular array.

h5ls /reg/d/psdm/mec/mecx45520/scratch/snelson/mecx52320_Run0286.h5/epix100a_1_XTCS/var_droplet_sparse col Dataset {119/Inf} data Dataset {119/Inf} npix Dataset {119/Inf} row Dataset {119/Inf} tile Dataset {119/Inf}

h5ls -d /reg/d/psdm/mec/mecx45520/scratch/snelson/mecx52320_Run0286.h5/epix100a_1_XTCS/var_droplet_sparse_len var_droplet_sparse_len Dataset {3/Inf} Data: (0) 24, 44, 51

Code to read this will be similar to the changes coming up for the more general droplet2phot implementation.

vespos commented 2 years ago

Looks good, just a string syntax comments.