Increments numbered suffix on output file to start a new one.
(self, newInt=-1)
| 465 | plt.pause(1e-8) |
| 466 | |
| 467 | def cycleOutFiles(self, newInt=-1): |
| 468 | """ |
| 469 | Increments numbered suffix on output file to start a new one. |
| 470 | """ |
| 471 | underScore = self.filename.rfind("_") |
| 472 | if 0 <= newInt: |
| 473 | self.fileCnt = newInt |
| 474 | else: |
| 475 | self.fileCnt += 1 |
| 476 | self.filename = self.filename[: underScore + 1] + str(self.fileCnt) + ".csv" |
| 477 | |
| 478 | def addFileSuffix(self, suffix): |
| 479 | """ |
no outgoing calls
no test coverage detected