autoemxsp.core package
Created on Thu Sep 18 13:30:06 2025
@author: Andrea
Subpackages
Submodules
- autoemxsp.core.EMXSp_composition_analyser module
- autoemxsp.core.EM_controller module
- Main Classes
- Example Usage
EM_ControllerEM_Controller.an_circle_keyEM_Controller.an_text_keyEM_Controller.initialise_SEM()EM_Controller.initialise_sample_navigator()EM_Controller.initialise_XS_analyzer()EM_Controller.get_XSp_coords()EM_Controller.convert_XS_coords_to_pixels()EM_Controller.acquire_XS_spot_spectrum()EM_Controller.adjust_BCF()EM_Controller.set_frame_width()EM_Controller.move_to_pos()EM_Controller.convert_pixel_pos_to_mm()EM_Controller.standby()EM_Controller.go_to_next_frame()EM_Controller.save_frame_image()
EM_Sample_Finder
- autoemxsp.core.EM_particle_finder module
- Main Class
- Example Usage
EM_Particle_FinderEM_Particle_Finder.EMEM_Particle_Finder.powder_meas_cfgEM_Particle_Finder.is_manual_particle_selectionEM_Particle_Finder.results_dirEM_Particle_Finder.verboseEM_Particle_Finder.development_modeEM_Particle_Finder._sample_IDEM_Particle_Finder._im_widthEM_Particle_Finder._im_heightEM_Particle_Finder.tot_par_cntrEM_Particle_Finder.analyzed_parsEM_Particle_Finder.go_to_next_particle()EM_Particle_Finder.is_particle_at_frame_edge()EM_Particle_Finder.prepare_mask_for_visualization()EM_Particle_Finder.get_XS_acquisition_spots_coord_list()EM_Particle_Finder.get_particle_stats()EM_Particle_Finder.save_particle_statistics()
- autoemxsp.core.XSp_fitter module
- Overview
- Class Structure and Interactions
- Typical Usage
- Customization & Calibration
- Dependencies
- How the classes interact:
- In short:
patch_lmfit_fast_mode()XSp_FitterXSp_Fitter.spectrum_valsXSp_Fitter.energy_valsXSp_Fitter.els_to_quantifyXSp_Fitter.els_w_frXSp_Fitter.els_substrateXSp_Fitter.fit_backgroundXSp_Fitter.xray_quant_ref_linesXSp_Fitter.is_particleXSp_Fitter.microscope_IDXSp_Fitter.meas_modeXSp_Fitter.spectrum_limsXSp_Fitter.force_fr_totalXSp_Fitter.beam_energyXSp_Fitter.emergence_angleXSp_Fitter.tot_sp_countsXSp_Fitter.sp_collection_timeXSp_Fitter.print_evolving_paramsXSp_Fitter.verboseXSp_Fitter.escape_peaks_strXSp_Fitter.pileup_peaks_strXSp_Fitter.fit_spectrum()XSp_Fitter.plot_result()XSp_Fitter.print_result()
Peaks_ModelPeaks_Model.spectrum_valsPeaks_Model.energy_valsPeaks_Model.fitting_modelPeaks_Model.fitting_paramsPeaks_Model.xray_weight_refs_dictPeaks_Model.xray_weight_refs_linesPeaks_Model.microscope_IDPeaks_Model.meas_modePeaks_Model.is_particlePeaks_Model.free_area_el_linesPeaks_Model.free_peak_shapes_elsPeaks_Model.fixed_peaks_dictPeaks_Model.icc_freq_spectraPeaks_Model.pileup_peaks_strPeaks_Model.icc_freq_spectraPeaks_Model.center_keyPeaks_Model.sigma_keyPeaks_Model.area_keyPeaks_Model.center_offset_keyPeaks_Model.sigma_broadening_keyPeaks_Model.gamma_keyPeaks_Model.tail_fraction_keyPeaks_Model.F_loss_keyPeaks_Model.R_e_keyPeaks_Model.escape_peaks_strPeaks_Model.pileup_peaks_strPeaks_Model.clear_cached_icc_spectra()Peaks_Model.get_peaks_mod_pars()
Background_ModelBackground_Model.cls_beam_eBackground_Model.den_intBackground_Model.num_intBackground_Model.prev_xBackground_Model.prev_rhoz_par_offsetBackground_Model.prev_rhoz_par_slopeBackground_Model.prev_rhoz_limitBackground_Model.prev_w_frsBackground_Model.rhoz_valuesBackground_Model.get_average_Z()Background_Model.get_stopping_power_mod_pars()Background_Model.get_abs_attenuation_mod_pars()Background_Model.get_backscattering_correction_mod_pars()Background_Model.get_beta_expr()Background_Model.get_generated_background_mod_pars()Background_Model.get_detector_efficiency_mod_pars()Background_Model.get_det_zero_peak_model_pars()Background_Model.get_full_background_mod_pars()
DetectorResponseFunction
- autoemxsp.core.XSp_quantifier module
- Class Structure and Interactions
- Typical Usage
- Customization & Calibration
- Dependencies
- How the classes interact
XSp_QuantifierXSp_Quantifier.spectrum_valsXSp_Quantifier.energy_valsXSp_Quantifier.spectrum_limsXSp_Quantifier.fit_backgroundXSp_Quantifier.background_valsXSp_Quantifier.els_sampleXSp_Quantifier.els_to_quantifyXSp_Quantifier.els_substrateXSp_Quantifier.els_w_frXSp_Quantifier.max_undetectable_w_frXSp_Quantifier.force_total_w_frXSp_Quantifier.is_particleXSp_Quantifier.sp_collection_timeXSp_Quantifier.fit_tolXSp_Quantifier.bad_quant_flagXSp_Quantifier.microscope_IDXSp_Quantifier.meas_typeXSp_Quantifier.meas_modeXSp_Quantifier.det_ch_offsetXSp_Quantifier.det_ch_widthXSp_Quantifier.beam_energyXSp_Quantifier.emergence_angleXSp_Quantifier.verboseXSp_Quantifier.fitting_verboseXSp_Quantifier.xray_quant_ref_linesXSp_Quantifier.xray_quant_ref_linesXSp_Quantifier.initialize_and_fit_spectrum()XSp_Quantifier.get_starting_K_val()XSp_Quantifier.quantify_spectrum()XSp_Quantifier.print_quant_result()XSp_Quantifier.plot_quantified_spectrum()XSp_Quantifier.plot_zoomed_peak()
Quant_CorrectionsQuant_Corrections.elementsQuant_Corrections.energiesQuant_Corrections.emergence_angleQuant_Corrections.beam_energyQuant_Corrections.meas_modeQuant_Corrections.Z_elsQuant_Corrections.W_elsQuant_Corrections.els_nuQuant_Corrections.mass_abs_coeffs_linesQuant_Corrections.verboseQuant_Corrections.get_ZAF_mult_f_pb()