Avoided setup-dependent error (file structuring). Implemented TNMR application search and re-open if it closes. This will not fix any particularly odd situations, but it will recover the majority of TNMR crashes and user error.

This commit is contained in:
2025-08-15 11:15:10 +02:00
parent bee3f5615a
commit 558bbfded9
4 changed files with 18 additions and 2 deletions

View File

@@ -309,7 +309,8 @@ class ProgrammedSequence(fc.Drivable): # Drivable only for kill() funcitonality
self.approx_sequence_length += float(self.post_acquisition_time)*1e-6
# then, save the thing
filepath = os.getcwd()
# save it in a reasonable location, within frappy
filepath = os.path.dirname(os.path.realpath(__file__))
filename = self.title + f'_{time.time()}'
filename = filepath + '/sequences/' + filename.replace('.','')
seq_gen.save_sequence(filename, seq)