Skip to content
Snippets Groups Projects
compute_disk_size.py 150 B
Newer Older
  • Learn to ignore specific revisions
  • import numpy as np
    
    def compute_disk_size(user_radius, upscale_factor=1.2):
        return int(np.ceil(upscale_factor * 2 * user_radius + 1) // 2 * 2 + 1)