Fix init json dumping
@@ -388,7 +388,7 @@ class BIDSLayout(object):
engine = self.session.get_bind()
Base.metadata.drop_all(engine)
Base.metadata.create_all(engine)
- self._dump_initalization_args(database_sidecar)
+ json.dump(instance_args, open(database_sidecar, 'w'))
return True
