#!/usr/bin/env python """ Error messages that might be raised when creating datasets. """ DATA_ERROR_MESSAGES = { "NOT_EXIST" : "\
The folder you have selected does not exist.
\Please select a folder that exists and, preferably, \ contains some valid data files.
\ ", "FOLDER_EMPTY" : "\The folder that you have selected is empty.
\Please select the folder that contains your data files.
\ ", "BAD_FORMAT" : "\The folder contains a file in an unrecognised format.
\ ", "CONTAINS_DIR" : "\The folder that you have selected contains another folder.
\Directories containing data to be analysed should not contain \ other folders. Please check that you have selected the correct \ folder and that your data is arranged as it should be.
\ ", "FORMAT_MISMATCH" : "\Data files have been found in two or more valid formats.
\This suggests that the data in the selected folder has been \ collected in one or more separate runs with differing detector \ settings. Please check your data and the detector configurations \ used.
\ ", "MISSING_DSC" : "\One or more of the data files in the selected folder is missing \ a DSC (detector settings) file.
\ ", "MISSING_DAT" : "\One or more of the DSC files in the selected folder is missing \ a data file.
\ ", "DET_DIFF_CHIPIDS" : "\The Pixelman dataset supplied contains data from different \ detectors.
\ ", "DET_DIFF_NANDSN" : "\The Pixelman dataset supplied contains data from different \ detectors.
\ ", "PIXEL_MASK_IN_DB" : "\A pixel mask with that name is already in the database.
\ ", "NO_SOURCE_NAME" : "\There is currently no source name specified.
\Please select a source from the database or enter a new name \ in the Source Name field.
\ ", "NO_SOURCE_DESC" : "\There is currently no source description specified.
\Please enter a description of the source for the dataset to \ import, or select a source from the database.
\ ", "FRAME_NO_HV" : "\You are trying to create a frame but no bias voltage (HV) \ value has been supplied.
", "FRAME_NO_IKRUM" : "\You are trying to create a frame but no I_Krum value has been supplied.
" }