Skip to content

Commit

Permalink
Merge pull request computationalgeography#652 from kordejong/gh648
Browse files Browse the repository at this point in the history
Partition shape is not parsed correctly in `lue_calculate`
  • Loading branch information
kordejong authored May 30, 2024
2 parents 9c23656 + b7f10d6 commit f20ef0f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/framework/python/script/lue_calculate.py
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ def main() -> int:
statement Assignment statement to evaluate
-h --help Show this screen
--version Show version
--partition=<shape> Shape of partitions
--partition=<shape> Shape of partitions, formatted as #rows,#cols
The right-hand side expression of the assignment statement must be a
valid Python expression. It is assumed that all functions and operators
Expand Down Expand Up @@ -286,7 +286,7 @@ def main() -> int:

partition_shape: typing.Optional[tuple[int, int]] = None

if "--partition_shape" in arguments:
if arguments["--partition"] is not None: # type: ignore
partition_shape = tuple(
int(extent) for extent in arguments["--partition"].split(",") # type: ignore
)
Expand Down

0 comments on commit f20ef0f

Please sign in to comment.