@@ -4120,14 +4120,14 class PedestalInformation(Operation): | |||||
4120 | path = os.path.join(self.path, dt.strftime('%Y-%m-%dT%H-00-00')) |
|
4120 | path = os.path.join(self.path, dt.strftime('%Y-%m-%dT%H-00-00')) | |
4121 | self.filename = os.path.join(path, 'pos@{}.000.h5'.format(int(self.utcfile))) |
|
4121 | self.filename = os.path.join(path, 'pos@{}.000.h5'.format(int(self.utcfile))) | |
4122 |
|
4122 | |||
4123 | for i in range(2): |
|
4123 | for i in range(20): | |
4124 | ok = False |
|
4124 | ok = False | |
4125 | for j in range(self.nTries): |
|
4125 | for j in range(self.nTries): | |
4126 | ok = False |
|
4126 | ok = False | |
4127 | try: |
|
4127 | try: | |
4128 | if not os.path.exists(self.filename): |
|
4128 | if not os.path.exists(self.filename): | |
4129 | log.warning('Waiting {}s for position files...'.format(self.delay), self.name) |
|
4129 | log.warning('Waiting {}s for position files...'.format(self.delay), self.name) | |
4130 |
time.sleep( |
|
4130 | time.sleep(2) | |
4131 | continue |
|
4131 | continue | |
4132 | self.fp.close() |
|
4132 | self.fp.close() | |
4133 | self.fp = h5py.File(self.filename, 'r') |
|
4133 | self.fp = h5py.File(self.filename, 'r') |
General Comments 0
You need to be logged in to leave comments.
Login now