Skip to content

Commit

Permalink
re #6669 added the missing import, removed some print statements
Browse files Browse the repository at this point in the history
  • Loading branch information
NickDraper committed Mar 15, 2013
1 parent 807d9a1 commit 00cafae
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
import numbers
import bisect
from mantid.api import * # PythonAlgorithm, registerAlgorithm, WorkspaceProperty
from mantid.kernel import * # StringArrayProperty

class LoadLogPropertyTable(PythonAlgorithm):
# same concept as built in "CreateLogPropertyTable" but loads its own workspaces and needn't hold all in memory at once
Expand Down Expand Up @@ -55,8 +56,7 @@ def getGeneralLogValue(self,ws,name,begin):
raise ValueError(message)
try:
times2=[]
if (hasattl(v,"unfiltered")):
print "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!unfiltered!!!!!!!!!!!!!!!!!!!!!!!!"
if (hasattr(v,"unfiltered")):
v=v.unfiltered()
for tt in v.times:
times2.append((datetime.datetime(*(time.strptime(str(tt),"%Y-%m-%dT%H:%M:%S")[0:6]))-begin).total_seconds())
Expand Down Expand Up @@ -126,7 +126,7 @@ def PyExec(self):
#check if the ws is a group
ws = loadedWs
if (ws.id() == 'WorkspaceGroup'):
print "Loaded file is multiperiod; Logs will be from the first period"
print "Loaded file is multiperiod; Logs will be from the first period, but unfilterd"
ws=ws[0]

begin=datetime.datetime(*(time.strptime(ws.getRun().getProperty("run_start").value,"%Y-%m-%dT%H:%M:%S")[0:6])) # start of day
Expand Down

0 comments on commit 00cafae

Please sign in to comment.