Skip to content

Commit

Permalink
black formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
pattonw committed Aug 30, 2024
1 parent 65ed7f4 commit 9693615
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions gunpowder/contrib/nodes/dvid_partner_annotation_source.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,17 @@

logger = logging.getLogger(__name__)


def strtobool(val):
val = val.lower()
if val in ('y', 'yes', 't', 'true', 'on', '1'):
if val in ("y", "yes", "t", "true", "on", "1"):
return 1
elif val in ('n', 'no', 'f', 'false', 'off', '0'):
elif val in ("n", "no", "f", "false", "off", "0"):
return 0
else:
raise ValueError(f"Invalid truth value: {val}")


class DvidPartnerAnnoationSourceReadException(Exception):
pass

Expand Down

0 comments on commit 9693615

Please sign in to comment.