Skip to content

Commit

Permalink
Adjust zfill
Browse files Browse the repository at this point in the history
  • Loading branch information
kahst committed Apr 9, 2018
1 parent 0fc5709 commit 4703754
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ def parseDataset():
os.makedirs(filepath)

# Filename contains s2n-ratio
filename = str(int(noise[s] * 1000)).zfill(3) + '_' + afiles[i].split('.')[0] + '_' + str(s).zfill(2)
filename = str(int(noise[s] * 1000)).zfill(3) + '_' + afiles[i].split('.')[0] + '_' + str(s).zfill(3)

# Write to HDD
cv2.imwrite(os.path.join(filepath, filename + '.png'), specs[s] * 255.0)
Expand Down

0 comments on commit 4703754

Please sign in to comment.