SimEx icon indicating copy to clipboard operation
SimEx copied to clipboard

Unified units in simex_platform

Open CFGrote opened this issue 6 years ago • 3 comments

Some SimEx classes use the python module pint to handle physical units (e.g. "meter") and constants ( e.g. the elementary charge "e"). Examples are the DetectorGeometry class, DetectorPanel class, PhotonBeamParameters, and Parameters and Calculators that make use of the former.

The goal is to update all SimEx classes to use the pint module.

As a sequel, one would then update IO to make use of the same concept.

Pint :beer: Resources

CFGrote avatar Apr 13 '18 12:04 CFGrote

Did you already compile a list of Parameter and Calculator objects that need to be adapted to use pint?

  • PlasmaXRTSCalculatorParameters
  • ...

n01r avatar Apr 19 '18 13:04 n01r

Go through this list of calculators and define action needed

Calculator Action needed Status
AbstractBaseCalculator.py [ ]
AbstractPhotonDetector.py [ ]
AbstractPhotonDiffractor.py [ ]
AbstractPhotonInteractor.py [ ]
AbstractPhotonPropagator.py [ ]
ComptonScatteringCalculator.py [ ]
CrystFELPhotonDiffractor.py [ ]
EMCCaseGenerator.py [ ]
EstherPhotonMatterInteractor.py [ ]
FEFFPhotonMatterInteractor.py [ ]
IdealPhotonDetector.py [ ]
PlasmaXRTSCalculator.py open
SingFELPhotonDiffractor.py [ ]
XCSITPhotonDetector.py [ ]
XFELPhotonPropagator.py [ ]
XMDYNDemoPhotonMatterInteractor.py [ ]
XMDYNPhotonMatterInteractor.py [ ]

CFGrote avatar Jul 26 '19 05:07 CFGrote

Go through this list of parameters and define action needed

Parameter class Action needed Status
EstherPhotonMatterInteractorParameters.py [ ]
FEFFPhotonMatterInteractorParameters.py [ ]
PhotonBeamParameters.py,imported [ ]
PhotonMatterInteractorParameters.py [ ]
PlasmaXRTSCalculatorParameters.py [ ]
SingFELPhotonDiffractorParameters.py [ ]
WavePropagatorParameters.py [ ]
XCSITPhotonDetectorParameters.py [ ]

CFGrote avatar Jul 26 '19 05:07 CFGrote