Skip to content

Commit f390172

Browse files
saving: added edf with lz4 compression
1 parent 1186971 commit f390172

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

LimaCCDs.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -482,6 +482,9 @@ def init_device(self) :
482482
if SystemHasFeature('Core.CtSaving.EDFConcat'):
483483
self.__SavingFormat['EDFCONCAT'] = Core.CtSaving.EDFConcat
484484
self.__SavingFormatDefaultSuffix[Core.CtSaving.EDFConcat] = '.edf'
485+
if SystemHasFeature('Core.CtSaving.EDFLZ4'):
486+
self.__SavingFormat['EDFLZ4'] = Core.CtSaving.EDFLZ4
487+
self.__SavingFormatDefaultSuffix[Core.CtSaving.EDFLZ4] = '.edf.lz4'
485488

486489
self.__SavingMode = {'MANUAL' : Core.CtSaving.Manual,
487490
'AUTO_FRAME' : Core.CtSaving.AutoFrame,

plugins/LimaTacoCCD.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -526,6 +526,8 @@ def DevCcdSetFilePar(self, par_arr):
526526
pars.fileFormat = Core.CtSaving.HDF5
527527
elif pars.suffix.lower()[-5:] == '.tiff':
528528
pars.fileFormat = Core.CtSaving.TIFFFormat
529+
elif pars.suffix.lower()[-8:] == '.edf.lz4':
530+
pars.fileFormat = Core.CtSaving.EDFLZ4
529531
else:
530532
pars.fileFormat = Core.CtSaving.RAW
531533
saving.setParameters(pars)

0 commit comments

Comments
 (0)