Commit 48e1ba13a53f9d5d0bb37a14024db35b69dc7a1d
1 parent
68af17b7
Add "wait" statement to the end of the output file
The "wait" statement assures that the output file is not exited before old child processes are finished. This provides better control over the proceedings of the TS computation.
Showing
1 changed file
with
4 additions
and
1 deletions
cscripts/cstsmapsplit.py
| ... | ... | @@ -2,7 +2,7 @@ |
| 2 | 2 | # ========================================================================== |
| 3 | 3 | # Create commands to split TS map computation |
| 4 | 4 | # |
| 5 | -# Copyright (C) 2016-2019 Michael Mayer | |
| 5 | +# Copyright (C) 2016-2021 Michael Mayer | |
| 6 | 6 | # |
| 7 | 7 | # This program is free software: you can redistribute it and/or modify |
| 8 | 8 | # it under the terms of the GNU General Public License as published by |
| ... | ... | @@ -247,6 +247,9 @@ class cstsmapsplit(ctools.cslikelihood): |
| 247 | 247 | for cmd in self._cmd: |
| 248 | 248 | f.write(cmd + '\n') |
| 249 | 249 | |
| 250 | + # Add wait statement | |
| 251 | + f.write('wait\n') | |
| 252 | + | |
| 250 | 253 | # Close file |
| 251 | 254 | f.close() |
| 252 | 255 | ... | ... |