Skip to content

Commit 2d4050c

Browse files
author
Elias Benussi
committed
Use FACULTY_PROJECT_ID by default
1 parent 5c063a9 commit 2d4050c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

faculty/experiments.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import os
12
from attr import attrs, attrib
23
import pandas
34

@@ -49,7 +50,10 @@ def _from_client_model(cls, client_object):
4950
return cls(**client_object._asdict())
5051

5152
@classmethod
52-
def query(cls, project_id, filter=None, sort=None):
53+
def query(cls, project_id=None, filter=None, sort=None):
54+
if project_id is None:
55+
project_id = os.environ["FACULTY_PROJECT_ID"]
56+
5357
def get_runs():
5458
client = faculty.client("experiment")
5559

0 commit comments

Comments
 (0)