Update app.py
Browse files
app.py
CHANGED
|
@@ -243,8 +243,8 @@ _, colA, colB, colC, _ = st.columns([bordersize,1,1,1,bordersize])
|
|
| 243 |
|
| 244 |
if uploaded_file is not None:
|
| 245 |
# NORMALIZE IMAGE
|
| 246 |
-
MIN = np.min(np.where(
|
| 247 |
-
if MIN < 1:
|
| 248 |
|
| 249 |
image = np.log10(data+1)
|
| 250 |
plot_image(image, scale)
|
|
|
|
| 243 |
|
| 244 |
if uploaded_file is not None:
|
| 245 |
# NORMALIZE IMAGE
|
| 246 |
+
MIN = np.min(np.where(data == 0, 1, data))
|
| 247 |
+
if MIN < 1: data = data / MIN
|
| 248 |
|
| 249 |
image = np.log10(data+1)
|
| 250 |
plot_image(image, scale)
|