Skip to content

Commit

Permalink
Update imd_blocks.py
Browse files Browse the repository at this point in the history
just a minor save
  • Loading branch information
RiesBen authored Apr 22, 2021
1 parent 3b9fc32 commit d61f30b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pygromos/files/blocks/imd_blocks.py
Original file line number Diff line number Diff line change
Expand Up @@ -607,6 +607,9 @@ def block_to_string(self) -> str:
result += " " + str(self.ALGORITHM) + "\n"

if(self.ALGORITHM == "2"):
if(self.NUM is None):
raise Exception("You need to specify the NUM parameter for MULTIBATH if ALGORITHM is 2!")

result += "# " + "\t".join(self._order[0][1]) + "\n"
result += " " + str(self.NUM) + "\n"

Expand Down

0 comments on commit d61f30b

Please sign in to comment.