tardis.tardis_portal.filters package¶
Submodules¶
tardis.tardis_portal.filters.diffractionimage module¶
diffractionimage.py
-
class
tardis.tardis_portal.filters.diffractionimage.
DiffractionImageFilter
(name, schema, diffdump_path, diff2jpeg_path, tagsToFind=[], tagsToExclude=[])¶ Bases:
object
This filter runs the CCP4 diffdump binary on a diffraction image and collects its output into the trddatafile schema
If a white list is specified then it takes precidence and all other tags will be ignored.
param name: the short name of the schema. type name: string param schema: the name of the schema to load the EXIF data into. type schema: string param tagsToFind: a list of the tags to include. type tagsToFind: list of strings param tagsToExclude: a list of the tags to exclude. type tagsToExclude: list of strings
-
getDiffractionImageMetadata
(filename)¶ Return a dictionary of the metadata.
-
getDiffractionPreviewImage
(filename)¶ Return a base64 encoded preview image.
-
getParameters
(schema, metadata)¶ Return a list of the paramaters that will be saved.
-
getSchema
()¶ Return the schema object that the paramaterset will use.
-
output_beamcenter
(term, value)¶
-
output_detectordistance
(term, value)¶
-
output_exposuretime
(term, value)¶
-
output_imagesize
(term, value)¶
-
output_metadata
(term, value)¶
-
output_oscillation
(term, value)¶
-
output_pixelsize
(term, value)¶
-
output_twotheta
(term, value)¶
-
output_wavelength
(term, value)¶
-
parse_output
(output)¶
-
parse_term
(line)¶
-
parse_value
(line)¶
-
run_diff2jpeg
(filename)¶
-
run_diffdump
(file_path)¶
-
saveDiffractionImageMetadata
(instance, schema, metadata)¶ Save all the metadata to a DataFiles paramamter set.
-
split_oscillation
(terms, value)¶
-
split_output
(terms, value, strip)¶
-
-
tardis.tardis_portal.filters.diffractionimage.
make_filter
(name='', schema='', tagsToFind=[], tagsToExclude=[])¶ This filter runs the CCP4 diffdump binary on a diffraction image and collects its output into the trddatafile schema
If a white list is specified then it takes precidence and all other tags will be ignored.
param name: the short name of the schema. type name: string param schema: the name of the schema to load the EXIF data into. type schema: string param tagsToFind: a list of the tags to include. type tagsToFind: list of strings param tagsToExclude: a list of the tags to exclude. type tagsToExclude: list of strings
tardis.tardis_portal.filters.jeolsem module¶
-
class
tardis.tardis_portal.filters.jeolsem.
JEOLSEMFilter
¶ Bases:
object
This filter collects metadata from JEOL SEM text files.
param name: the short name of the schema. type name: string param schema: the name of the schema to load the EXIF data into. type schema: string
-
ATTR_PREFIXES
= ('$CM_', '$$SM_')¶
-
SCHEMA
= 'http://www.jeol.com/#jeol-sem-schema'¶
-
get_file_contents
(datafile)¶
-
get_metadata
(schema, filedata)¶
-
is_already_processed
(datafile)¶
-
is_jeol_sem_metadata
(filedata)¶
-
is_text_file
(datafile)¶
-
save_metadata
(datafile, schema, metadata)¶
-