Skip to content

Commit

Permalink
cosmetics
Browse files Browse the repository at this point in the history
Default integration algo is None, otherwise documentation is difficult to read
  • Loading branch information
sofianehaddad committed Mar 30, 2023
1 parent f0aa68b commit 6ee7638
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions oteclm/oteclm.py
Original file line number Diff line number Diff line change
Expand Up @@ -270,10 +270,13 @@ class ECLM(object):
"""


def __init__(self, totalImpactVector, integrationAlgo=ot.GaussLegendre([40]), nIntervals=8, verbose=False):
def __init__(self, totalImpactVector, integrationAlgo=None, nIntervals=8, verbose=False):
# set attribute
self.totalImpactVector = totalImpactVector
self.integrationAlgo = integrationAlgo
if integrationAlgo is None:
self.integrationAlgo = ot.GaussLegendre([40])
else:
self.integrationAlgo = integrationAlgo
self.nIntervals = nIntervals
self.n = self.totalImpactVector.getSize()-1
self.verbose = verbose
Expand Down

0 comments on commit 6ee7638

Please sign in to comment.