MCPcopy Create free account
hub / github.com/BindsNET/bindsnet / cycleOutFiles

Method cycleOutFiles

bindsnet/environment/dot_simulator.py:467–476  ·  view source on GitHub ↗

Increments numbered suffix on output file to start a new one.

(self, newInt=-1)

Source from the content-addressed store, hash-verified

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 """

Callers 2

changeFileSuffixMethod · 0.95
runSimulatorFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected