Skip to content

Commit

Permalink
Merge 4267456 into 49ffebc
Browse files Browse the repository at this point in the history
  • Loading branch information
dwhswenson committed Dec 21, 2020
2 parents 49ffebc + 4267456 commit 2aa6bd4
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions openpathsampling/experimental/storage/ops_storage.py
Original file line number Diff line number Diff line change
Expand Up @@ -243,11 +243,18 @@ def _build_ops_serializer(schema, safe_codecs, unsafe_codecs):


class Storage(storage.GeneralStorage):
def __init__(self, backend, schema, class_info, fallbacks=None,
safemode=False):
def __init__(self, filename, mode='r', fallbacks=None, safemode=False):
# TODO: this will change to match the current notation
super(Storage, self).__init__(backend, schema, class_info,
fallbacks, safemode)
backend = sql_backend.SQLStorageBackend(filename, mode=mode)
self.snapshots = None
super(Storage, self).__init__(
backend=backend,
schema=ops_schema,
class_info=ops_class_info,
simulation_classes=ops_simulation_classes,
fallbacks=fallbacks,
safemode=safemode
)

self.n_snapshot_types = 0
self.snapshots = SnapshotsTable(self)
Expand Down

0 comments on commit 2aa6bd4

Please sign in to comment.