PetaVision / OpenPV

PetaVision is a C++ library for designing and deploying large-scale neurally-inspired computational models.
http://petavision.github.io
Eclipse Public License 1.0
40 stars 13 forks source link

Improved deleteOlderCheckpoints #301

Closed peteschultz closed 5 years ago

peteschultz commented 5 years ago

This pull request changes the method for deleting older checkpoints. Instead of a blunt "rm -r" passed to a shell, each registered CheckpointEntry calls its remove method. Checkpointer then deletes the files that it wrote to the checkpoint (timers.txt, pv.params, pv.params.lua) and calls rmdir.