Skip to content

Commit

Permalink
Merge pull request #155 from will-moore/flake8_fix
Browse files Browse the repository at this point in the history
Flake8 fix, don't import input
  • Loading branch information
will-moore authored Dec 4, 2023
2 parents f864955 + 8e37bd7 commit 954dd24
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 954dd24

Please sign in to comment.