Skip to content
This repository has been archived by the owner on Sep 24, 2020. It is now read-only.

Commit

Permalink
fix project_name()
Browse files Browse the repository at this point in the history
  • Loading branch information
raubitsj committed Jul 29, 2020
1 parent fe93e9a commit 5e957d9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 11 deletions.
10 changes: 4 additions & 6 deletions wandb/sdk/wandb_run.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,12 +212,10 @@ def path(self):
return "/".join(parts)

def project_name(self, api=None):
return self._run_obj.project if self._run_obj else "uncategorized"
# TODO(jhr): this is probably not right needed by dataframes?
# api = api or self.api
# return (api.settings('project') or self.auto_project_name(api) or
# "uncategorized")
# return self._project
if not self._run_obj:
wandb.termwarn("Project name not available in offline run")
return
return self._run_obj.project

@property
def entity(self):
Expand Down
9 changes: 4 additions & 5 deletions wandb/sdk_py27/wandb_run.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,11 +212,10 @@ def path(self):
return "/".join(parts)

def project_name(self, api=None):
# TODO(jhr): this is probably not right needed by dataframes?
# api = api or self.api
# return (api.settings('project') or self.auto_project_name(api) or
# "uncategorized")
return self._project
if not self._run_obj:
wandb.termwarn("Project name not available in offline run")
return
return self._run_obj.project

@property
def entity(self):
Expand Down

0 comments on commit 5e957d9

Please sign in to comment.