Move imports to top of file
import matplotlib.pyplot as plt
+from scipy.ndimage import zoom
+
import numpy as np
import random
@@ -67,9 +69,6 @@ def array_to_image(data,
"""
- from scipy.ndimage import zoom
- import matplotlib.pyplot as plt
-
num_timepoints = data.shape[0]
num_channels = data.shape[1]
num_channels_after_scaling = int(num_channels * spatial_zoom[1])
