Skip to content

Commit 90bf435

Browse files
committed
adopt_plotbase must be in PlotView to be able to set params
1 parent 56e12dd commit 90bf435

1 file changed

Lines changed: 17 additions & 16 deletions

File tree

openmc_plotter/plotmodel.py

Lines changed: 17 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -920,22 +920,6 @@ def urc(self):
920920
z = self.origin[2] + self.height / 2.0
921921
return x, y, z
922922

923-
def adopt_plotbase(self, view):
924-
"""
925-
Applies only the geometric aspects of a view to the current view
926-
927-
Parameters
928-
----------
929-
930-
view : PlotView
931-
View to take parameters from
932-
"""
933-
self.origin = view.origin
934-
self.width = view.width
935-
self.height = view.height
936-
self.h_res = self.h_res
937-
self.v_res = self.v_res
938-
self.basis = view.basis
939923

940924
class PlotView:
941925
"""Setup the view of the model.
@@ -1057,6 +1041,23 @@ def getDomains(domain_type):
10571041

10581042
return domains
10591043

1044+
def adopt_plotbase(self, view):
1045+
"""
1046+
Applies only the geometric aspects of a view to the current view
1047+
1048+
Parameters
1049+
----------
1050+
1051+
view : PlotView
1052+
View to take parameters from
1053+
"""
1054+
self.origin = view.origin
1055+
self.width = view.width
1056+
self.height = view.height
1057+
self.h_res = view.h_res
1058+
self.v_res = view.v_res
1059+
self.basis = view.basis
1060+
10601061

10611062
class DomainView():
10621063
""" Represents view settings for OpenMC cell or material.

0 commit comments

Comments
 (0)