Skip to content

Commit

Permalink
Refs #5340 append 0 to workspace for no chunking
Browse files Browse the repository at this point in the history
  • Loading branch information
VickieLynch committed May 18, 2012
1 parent aa354b1 commit a1a2ae9
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -237,8 +237,11 @@ def _loadData(self, runnumber, extension, filterWall=None, **chunk):

name = "%s_%d" % (self._instrument, runnumber)
filename = name + extension
if (len(chunk) > 1):
# EMPTY_INT() from C++
if int(chunk["ChunkNumber"]) < 2147483647:
name += "_%02d" % (int(chunk["ChunkNumber"]))
else:
name += "_%02d" % 0

if extension.endswith("_event.nxs"):
chunk["Precount"] = True
Expand Down

0 comments on commit a1a2ae9

Please sign in to comment.