File tree Expand file tree Collapse file tree 2 files changed +4
-8
lines changed
Expand file tree Collapse file tree 2 files changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -43,7 +43,10 @@ def variables(self):
4343 :return: All the variables defined in ``__init__`` in order.
4444 :rtype: list[str]
4545 """
46- return self .geometries [0 ].variables
46+ variables = []
47+ for geom in self .geometries :
48+ variables += geom .variables
49+ return sorted (list (set (variables )))
4750
4851 @abstractmethod
4952 def is_inside (self , point , check_border = False ):
Original file line number Diff line number Diff line change @@ -39,13 +39,6 @@ def sample_modes(self):
3939 set ([geom .sample_modes for geom in self .geometries ])
4040 )
4141
42- @property
43- def variables (self ):
44- variables = []
45- for geom in self .geometries :
46- variables += geom .variables
47- return list (set (variables ))
48-
4942 def is_inside (self , point , check_border = False ):
5043 """
5144 Check if a point is inside the ``Union`` domain.
You can’t perform that action at this time.
0 commit comments