sas.qtgui.Perspectives.ParticleEditor.calculations package¶
Submodules¶
sas.qtgui.Perspectives.ParticleEditor.calculations.boundary_check module¶
- sas.qtgui.Perspectives.ParticleEditor.calculations.boundary_check.check_mag_zero_at_boundary(calculation: ScatteringCalculation, tol=1e-09)¶
Checks the magnetism vector is zero at the sampling boundary
- Returns:
True if boundary conditions are good
- sas.qtgui.Perspectives.ParticleEditor.calculations.boundary_check.check_sld_continuity_at_boundary(calculation: ScatteringCalculation, tol=1e-09)¶
Checks the continuity of the SLD at the sampling boundary
- Returns:
True if boundary conditions are good
sas.qtgui.Perspectives.ParticleEditor.calculations.calculate module¶
- exception sas.qtgui.Perspectives.ParticleEditor.calculations.calculate.MagBoundaryNonZero¶
Bases:
Exception
- __doc__ = None¶
- __module__ = 'sas.qtgui.Perspectives.ParticleEditor.calculations.calculate'¶
- __weakref__¶
list of weak references to the object
- exception sas.qtgui.Perspectives.ParticleEditor.calculations.calculate.SLDBoundaryMismatch¶
Bases:
Exception
- __doc__ = None¶
- __module__ = 'sas.qtgui.Perspectives.ParticleEditor.calculations.calculate'¶
- __weakref__¶
list of weak references to the object
- sas.qtgui.Perspectives.ParticleEditor.calculations.calculate.calculate_scattering(calculation: ScatteringCalculation) ScatteringOutput ¶
sas.qtgui.Perspectives.ParticleEditor.calculations.debye module¶
sas.qtgui.Perspectives.ParticleEditor.calculations.debye_benchmark module¶
sas.qtgui.Perspectives.ParticleEditor.calculations.fq module¶
- sas.qtgui.Perspectives.ParticleEditor.calculations.fq.scattering_via_fq(sld_definition: SLDDefinition, magnetism_definition: MagnetismDefinition | None, parameters: CalculationParameters, point_generator: SpatialDistribution, q_sample: QSample, angular_distribution: AngularDistribution, chunk_size=1000000) ndarray ¶
sas.qtgui.Perspectives.ParticleEditor.calculations.run_function module¶
Helper functions that run SLD and magnetism functions
- sas.qtgui.Perspectives.ParticleEditor.calculations.run_function.run_magnetism(magnetism_definition: MagnetismDefinition, parameters: CalculationParameters, x: ndarray, y: ndarray, z: ndarray) Tuple[ndarray, ndarray, ndarray] ¶
Evaluate the magnetism function from the definition at specified coordinates
- sas.qtgui.Perspectives.ParticleEditor.calculations.run_function.run_sld(sld_definition: SLDDefinition, parameters: CalculationParameters, x: ndarray, y: ndarray, z: ndarray) ndarray ¶
Evaluate the SLD function from the definition object at specified coordinates