Skip to content

Commit

Permalink
Use FACULTY_PROJECT_ID by default
Browse files Browse the repository at this point in the history
  • Loading branch information
Elias Benussi committed Jun 3, 2019
1 parent 3a64b9d commit 2955886
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion faculty/experiments.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import os
from attr import attrs, attrib
import pandas

Expand Down Expand Up @@ -49,7 +50,10 @@ def _from_client_model(cls, client_object):
return cls(**client_object._asdict())

@classmethod
def query(cls, project_id, filter=None, sort=None):
def query(cls, project_id=None, filter=None, sort=None):
if project_id is None:
project_id = os.environ["FACULTY_PROJECT_ID"]

def get_runs():
client = faculty.client("experiment")

Expand Down

0 comments on commit 2955886

Please sign in to comment.