From 2d4050c6aee5a4e31b7e21684fc60f22a4d211d4 Mon Sep 17 00:00:00 2001 From: Elias Benussi Date: Thu, 30 May 2019 17:57:43 +0100 Subject: [PATCH] Use FACULTY_PROJECT_ID by default --- faculty/experiments.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/faculty/experiments.py b/faculty/experiments.py index 72790286..3b117d65 100644 --- a/faculty/experiments.py +++ b/faculty/experiments.py @@ -1,3 +1,4 @@ +import os from attr import attrs, attrib import pandas @@ -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")