Skip to content

Commit

Permalink
The calc_transmission may also have no coating information
Browse files Browse the repository at this point in the history
Signed-off-by: Brianna Major <brianna.major@taloid.khq.kitware.com>
  • Loading branch information
Brianna Major committed Jan 9, 2025
1 parent 0a353aa commit b74c863
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion hexrd/instrument/hedm_instrument.py
Original file line number Diff line number Diff line change
Expand Up @@ -2193,9 +2193,13 @@ def calc_transmission(self, rMat_s: np.ndarray = None) -> dict[str, np.ndarray]:
energy = self.beam_energy
transmissions = {}
for det_name, det in self.detectors.items():
transmission = 1
transmission_filter, transmission_phosphor = (
det.calc_filter_coating_transmission(energy))
transmission = transmission_filter * transmission_phosphor
if det.filter.thickness > 0:
transmission *= transmission_filter
if det.phosphor.thickness > 0:
transmission *= transmission_phosphor
if self.physics_package is not None:
transmission_physics_package = (
det.calc_physics_package_transmission(
Expand Down

0 comments on commit b74c863

Please sign in to comment.