Skip to content

Commit

Permalink
Revert of last commit
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanDunfield committed Nov 30, 2024
1 parent 83131f9 commit 5567819
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions python/database.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,8 @@ class ManifoldTable():
def __init__(self, table='', db_path=None,
mfld_hash=mfld_hash, **filter_args):
self._table = table
self.mfld_hash = mfld_hash
self._db_path = db_path
self._mfld_hash = mfld_hash
self._connection = connect_to_db(db_path)
self._cursor = self._connection.cursor()
self._set_schema()
Expand Down Expand Up @@ -235,8 +235,7 @@ def __getitem__(self, index):
conditions.append('id < %d' % stop_id[0])
if self._filter:
conditions.append(self._filter)
return self.__class__(table=self._table, db_path=self._db_path,
filter=' and '.join(conditions))
return self.__class__(filter=' and '.join(conditions))
else:
raise IndexError(
'Use two ints or two floats for start and stop.')
Expand Down Expand Up @@ -339,7 +338,7 @@ def siblings(self, mfld):
betti, torsion))
if not initial_candidates:
return []
return self.find("hash = '%s'" % self._mfld_hash(mfld))
return self.find("hash = '%s'" % self.mfld_hash(mfld))

def identify(self, mfld, extends_to_link=False):
"""
Expand Down

0 comments on commit 5567819

Please sign in to comment.