Commit 884f9431 authored by Zhang, Chen's avatar Zhang, Chen Committed by Peterson, Peter
Browse files

address PR feedback

parent 01bf3681
......@@ -301,7 +301,7 @@ def calculate_absorption_correction(
environment=environment,
metaws=metaws)
# NOTE: Ideally we want to separate cache related task from calcualtion,
# NOTE: Ideally we want to separate cache related task from calculation,
# but the fact that we are trying to determine the name based on
# caching types requires us to use part of the caching here.
# Not a clean design, but it is unavoidable given that we are
......
......@@ -1361,13 +1361,14 @@ class SNSPowderReduction(DistributedDataProcessorAlgorithm):
missing_value_dict = {
"SampleFormula": 'V',
"SampleDensity": str(absorptioncorrutils.VAN_SAMPLE_DENSITY),
"BL11A:CS:ITEMS:HeightInContainerUnits": "mm", # or cm? not sure which one
"BL11A:CS:ITEMS:HeightInContainerUnits": "mm",
"BL11A:CS:ITEMS:HeightInContainer": "7.0",
"SampleContainer": "None",
}
for key, value in missing_value_dict.items():
mtd[absWksp].mutableRun()[key] = StringTimeSeriesProperty(key)
mtd[absWksp].mutableRun()[key].addValue(0, value)
if not mtd[absWksp].mutableRun().hasProperty(key):
mtd[absWksp].mutableRun()[key] = StringTimeSeriesProperty(key)
mtd[absWksp].mutableRun()[key].addValue(0, value)
abs_v_wsn, _ = absorptioncorrutils.calc_absorption_corr_using_wksp(
absWksp,
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment