Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
shimwell authored May 23, 2024
1 parent c0012e6 commit d114829
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/geouned/GEOUNED/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,8 +171,8 @@ def export_csg(
if not isinstance(UCARD, int) and not isinstance(UCARD, type(None)):
raise TypeError(f"UCARD should be of type int or None not {type(UCARD)}")
if isinstance(UCARD, int):
if UCARD < 1:
raise ValueError("UCARD should be a positive integer above 1")
if UCARD < 0:
raise ValueError("UCARD should be a 0 or a positive integer ")

for arg, arg_str in (
(volSDEF, "volSDEF"),
Expand Down

0 comments on commit d114829

Please sign in to comment.