Skip to content

Commit

Permalink
Fix creating default session. (#187)
Browse files Browse the repository at this point in the history
  • Loading branch information
aniezurawski authored Oct 31, 2019
1 parent 6ec89c4 commit d9d63ad
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion neptune/experiments.py
Original file line number Diff line number Diff line change
Expand Up @@ -841,7 +841,7 @@ def set_property(self, key, value):
experiment.set_property('magic-number', 7)
"""
properties = {p.key: p.value for p in self._backend.get_experiment(self.internal_id).properties}
properties[key] = value
properties[key] = str(value)
return self._backend.update_experiment(
experiment=self,
properties=properties
Expand Down
2 changes: 1 addition & 1 deletion neptune/sessions.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ def with_default_backend(cls, api_token=None):
session = Session.with_default_backend()
"""
return cls(HostedNeptuneBackend(api_token))
return cls(backend=HostedNeptuneBackend(api_token))

def get_project(self, project_qualified_name):
"""Get a project with given ``project_qualified_name``.
Expand Down

0 comments on commit d9d63ad

Please sign in to comment.