def test_yields_all_pngs():
"""On hipergator there is a rare error where some .png are skipped, using a sample tile that erred. Due to large file size this can only be run locally as debug"""
tfrecords.create_tfrecords('/Users/ben/Downloads/hipergator/2019_SRER_3_521000_3521000_image.tif', patch_size=400, patch_overlap=0.05, savedir="output",overwrite=True)
for i in np.arange(729):
assert os.path.exists("output/2019_SRER_3_521000_3521000_image_{}.png".format(i))
I am trying to solve quite a weird mystery.
Writing to a folder that has lots of files fails
Writing the same file to the directory next to it succeeds
Locally it succeeds