Skip to content

Commit

Permalink
Merge pull request #3 from pastas/dev
Browse files Browse the repository at this point in the history
first attempt PR on main
  • Loading branch information
dbrakenhoff authored Jun 1, 2021
2 parents 5df3611 + 728af9a commit 61a36fc
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 8 deletions.
2 changes: 1 addition & 1 deletion metran/factoranalysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def solve(self, oseries):
logger.info(msg)
if self.maxfactors is not None:
nfactors = min(nfactors, self.maxfactors)
except:
except Exception:
nfactors = 0
factors = self._minres(correlation, nfactors)

Expand Down
2 changes: 1 addition & 1 deletion metran/kalmanfilter.py
Original file line number Diff line number Diff line change
Expand Up @@ -614,7 +614,7 @@ def set_observations(self, oseries):
self.observation_count[t] = len(obsindices)

if (len(obsindices) > 0):
for i in range(len(obsindices)):
for i, _ in enumerate(obsindices):
obsid = int(obsindices[i])
self.observations[t, obsid] = observation[obsid]
self.observation_indices[t, i] = obsid
Expand Down
6 changes: 0 additions & 6 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,6 @@
url='https://github.com/pastas/metran',
author='W.L. Berendrecht',
author_email='',
project_urls={
'Source': 'https://github.com/pastas/metran',
'Documentation': '',
'Tracker': 'https://github.com/pastas/metran/issues',
'Help': ''
},
license='MIT',
classifiers=[
'Development Status :: 4 - Beta',
Expand Down

0 comments on commit 61a36fc

Please sign in to comment.