Skip to content

Commit

Permalink
added check for ucard above 1
Browse files Browse the repository at this point in the history
  • Loading branch information
shimwell committed May 23, 2024
1 parent 0b77a74 commit c0012e6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/geouned/GEOUNED/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,9 @@ 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")

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

0 comments on commit c0012e6

Please sign in to comment.