Skip to content

Commit

Permalink
Flake8 fix, don't import input
Browse files Browse the repository at this point in the history
  • Loading branch information
will-moore committed Nov 30, 2023
1 parent f864955 commit 8e37bd7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/omero_zarr/masks.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
import re
import time
from collections import defaultdict
from fileinput import input
from fileinput import input as finput
from typing import Dict, List, Optional, Set, Tuple

import numpy as np
Expand Down Expand Up @@ -121,7 +121,7 @@ def get_label_map(masks: Dict, label_map_arg: str) -> Dict:
roi_map[roi_id] = roi

try:
for line in input(label_map_arg):
for line in finput(label_map_arg):
line = line.strip()
sid, name, roi = line.split(",")
label_map[name].append(roi_map[int(roi)])
Expand Down

0 comments on commit 8e37bd7

Please sign in to comment.