Skip to content

Commit 8902331

Browse files
committed
Fix ViewParam origin type
1 parent 0140f74 commit 8902331

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

openmc_plotter/plotmodel.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1080,7 +1080,7 @@ class ViewParam:
10801080
10811081
Parameters
10821082
----------
1083-
origin : 3-tuple of floats
1083+
origin : sequence of float
10841084
Origin (center) of plot view
10851085
width : float
10861086
Width of plot view in model units
@@ -1091,7 +1091,7 @@ class ViewParam:
10911091
10921092
Attributes
10931093
----------
1094-
origin : tuple of float
1094+
origin : list of float
10951095
Origin (center) of plot view
10961096
width : float
10971097
Width of the plot view in model units
@@ -1114,8 +1114,7 @@ class ViewParam:
11141114
_VALID_BASES = ('xy', 'xz', 'yz')
11151115

11161116
def __init__(self, origin=(0, 0, 0), width=10, height=10, default_res=1000):
1117-
"""Initialize ViewParam attributes"""
1118-
self.origin = tuple(origin)
1117+
self.origin = list(origin)
11191118
self.width = float(width)
11201119
self.height = float(height)
11211120
self.h_res = int(default_res)

0 commit comments

Comments
 (0)