File tree 2 files changed +7
-11
lines changed
2 files changed +7
-11
lines changed Original file line number Diff line number Diff line change @@ -64,11 +64,16 @@ def sum(self, variables=None):
64
64
newpot .set_table (table = t )
65
65
return newpot
66
66
67
- def sumpot (self , axis ):
67
+ def sumpot (self , variables = None , sumover = True ):
68
68
"""
69
69
This method does marginalization. It sums over a variable.
70
70
TODO: See if this has to be moved to Potential class instead.
71
- :param axis:
71
+ :param variables: Variables to consider.
72
+ :type variables: list or numpy.array
73
+ :param sumover: Whether variables specified with "variables" argument
74
+ are to be summed over, or if they are the ones to keep
75
+ at the end.
76
+ :type sumover: bool
72
77
:return:
73
78
"""
74
79
pass
Original file line number Diff line number Diff line change @@ -53,15 +53,6 @@ def __repr__(self) -> str:
53
53
self .variables , self .table )
54
54
return s
55
55
56
- def __len__ (self ):
57
- """
58
- Overwrites the behavior of the __len__ call (for instance len(Array).
59
- When calling len(Array) it is equivalent to just call Array.size()
60
- :return: Number of states in the Array's table
61
- :rtype: numpy.array
62
- """
63
- return self .size ()
64
-
65
56
@staticmethod
66
57
def _check_variables (variables ):
67
58
"""
You can’t perform that action at this time.
0 commit comments