casinotools.fileformat.casino2 package¶
Submodules¶
casinotools.fileformat.casino2.Composition module¶
casinotools.fileformat.casino2.Element module¶
Element data from CASINO v2.
-
class
casinotools.fileformat.casino2.Element.Element(number_xray_layers=500)[source]¶ Bases:
casinotools.fileformat.FileReaderWriterTools.FileReaderWriterTools-
getDepthXrayDistribution()[source]¶ Return the depth x-ray distributions.
Note: Remove last value, because it is the accumulator for all out of range values.
-
getDepthXrayDistributionByLineType(line, line_type='Emitted')[source]¶ Return the depth x-ray distributions.
Note: Remove last value, because it is the accumulator for all out of range values.
-
getDepthXrayDistributionLayer(z0_nm, z1_nm)[source]¶ Return the depth x-ray distributions.
Note: Remove last value, because it is the accumulator for all out of range values.
-
getDepthXrayDistributionLayerByLineType(z0_nm, z1_nm, line, line_type='Emitted')[source]¶ Return the depth x-ray distributions.
Note: Remove last value, because it is the accumulator for all out of range values.
-
casinotools.fileformat.casino2.ElementIntensity module¶
-
class
casinotools.fileformat.casino2.ElementIntensity.ElementIntensity[source]¶ Bases:
casinotools.fileformat.FileReaderWriterTools.FileReaderWriterTools
casinotools.fileformat.casino2.File module¶
CASINO file structure: either sim or .cas.
-
class
casinotools.fileformat.casino2.File.File[source]¶ Bases:
casinotools.fileformat.FileReaderWriterTools.FileReaderWriterTools
casinotools.fileformat.casino2.GenerateSimFile module¶
casinotools.fileformat.casino2.GraphData module¶
-
class
casinotools.fileformat.casino2.GraphData.GraphData(size=0, borneInf=0.0, borneSup=0.0, isLog=False, isUneven=False, title='', xTitle='', yTitle='', file=None)[source]¶ Bases:
casinotools.fileformat.FileReaderWriterTools.FileReaderWriterTools
casinotools.fileformat.casino2.MeanIonizationPotential module¶
casinotools.fileformat.casino2.Region module¶
Region data from CASINO v2.
-
class
casinotools.fileformat.casino2.Region.Region(number_xray_layers)[source]¶ Bases:
casinotools.fileformat.FileReaderWriterTools.FileReaderWriterTools
casinotools.fileformat.casino2.RegionOptions module¶
RegionOptions data from CASINO v2.
-
class
casinotools.fileformat.casino2.RegionOptions.RegionOptions(number_xray_layers)[source]¶ Bases:
casinotools.fileformat.FileReaderWriterTools.FileReaderWriterTools
casinotools.fileformat.casino2.ScatteringEvent module¶
casinotools.fileformat.casino2.SimulationData module¶
Read one simulation data from a CASINO v2 file.
-
class
casinotools.fileformat.casino2.SimulationData.SimulationData(is_skip_reading_data=False)[source]¶ Bases:
casinotools.fileformat.FileReaderWriterTools.FileReaderWriterTools-
getTotalXrayIntensities()[source]¶ Returns a
dictwith the intensities (generated and emitted) of all the lines and elements in the simulation. The dictionary is structured as followed: atomic number, line,EMITTEDorGENERATED. The lines can either beLINE_K,LINE_L,LINE_M.Return type: class:dict
-
get_total_xray_intensities_1_esr()[source]¶ Returns a
dictwith the intensities (emitted) of all the lines and elements in the simulation in photon / (electron * steradian). The dictionary is structured as followed: atomic number, line. The lines can either beATOMLINE_KA1,ATOMLINE_KA2,ATOMLINE_KB1,ATOMLINE_KB2,ATOMLINE_LA,ATOMLINE_LB1,ATOMLINE_LB2,ATOMLINE_LG,ATOMLINE_MA.Return type: class:dict
-
casinotools.fileformat.casino2.SimulationOptions module¶
-
class
casinotools.fileformat.casino2.SimulationOptions.SimulationOptions[source]¶ Bases:
casinotools.fileformat.FileReaderWriterTools.FileReaderWriterTools-
setLinescanParameters(start_nm, end_nm, step_nm)[source]¶ Sets the linescan parameters. If the beam is stationary, use
setPosition()instead.Note
The CASINO v2 code is very bad with naming variables. The POS_NStep is actually the step length and the POS_Step is not used. The correct variable are used in the read and write methods.
Parameters: - start_nm – start position (in nm)
- end_nm – end position (in nm)
- step_nm – step length (in nm)
-
casinotools.fileformat.casino2.SimulationResults module¶
-
class
casinotools.fileformat.casino2.SimulationResults.SimulationResults(isSkipReadingData=False)[source]¶ Bases:
casinotools.fileformat.FileReaderWriterTools.FileReaderWriterTools
casinotools.fileformat.casino2.TrajectoriesData module¶
casinotools.fileformat.casino2.Trajectory module¶
casinotools.fileformat.casino2.Version module¶
Different versions of the CASINO program. Internal version taken from the CASINO C++ source code. External version taken from the CASINO C++ source code and file generated by different version of CASINO.
casinotools.fileformat.casino2.XrayRadial module¶
casinotools.fileformat.casino2.XrayRadialReader module¶
casinotools.fileformat.casino2.test_Composition module¶
casinotools.fileformat.casino2.test_Element module¶
casinotools.fileformat.casino2.test_ElementIntensity module¶
casinotools.fileformat.casino2.test_File module¶
casinotools.fileformat.casino2.test_GenerateSimFile module¶
casinotools.fileformat.casino2.test_GraphData module¶
casinotools.fileformat.casino2.test_MeanIonizationPotential module¶
casinotools.fileformat.casino2.test_Region module¶
casinotools.fileformat.casino2.test_RegionOptions module¶
casinotools.fileformat.casino2.test_ScatteringEvent module¶
casinotools.fileformat.casino2.test_SimulationData module¶
casinotools.fileformat.casino2.test_SimulationOptions module¶
casinotools.fileformat.casino2.test_SimulationResults module¶
casinotools.fileformat.casino2.test_TrajectoriesData module¶
casinotools.fileformat.casino2.test_Trajectory module¶
casinotools.fileformat.casino2.test_Version module¶
casinotools.fileformat.casino2.test_XrayRadial module¶
casinotools.fileformat.casino2.test_XrayRadialReader module¶
casinotools.fileformat.casino2.tests module¶
Regression testing for the project.