Skip to content

Commit

Permalink
Changed default of non-existing log. Refs #9101.
Browse files Browse the repository at this point in the history
  • Loading branch information
wdzhou committed Mar 24, 2014
1 parent 0828e67 commit a6aa585
Showing 1 changed file with 4 additions and 4 deletions.
Expand Up @@ -15,8 +15,8 @@
== Missing Sample Logs ==
If there is any sample log specified in the properites but does not exist in the workspace,
a string as 'XXXX' will be put to the experiment log information line, because
there is no sufficient information about its default.
a zero float value will be put to the experiment log information line,
as the preference of instrument scientist.
== Sample Log Operation ==
There are 5 types of operations that are supported for a TimeSeriesProperty.
Expand Down Expand Up @@ -279,9 +279,9 @@ def _getSampleLogsValue(self):

# check whether this property does exist.
if isexist is False:
# If not exist, use XXXX as default
# If not exist, use 0.00 as default
self.log().warning("Sample log %s does not exist in given workspace %s. " % (logname, str(self._wksp)))
valuedict[logname] = "XXXX"
valuedict[logname] = 0.0
continue

logproperty = run.getProperty(logname)
Expand Down

0 comments on commit a6aa585

Please sign in to comment.