-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: set up initial experiment server and cycle on firebase #342
feat: set up initial experiment server and cycle on firebase #342
Conversation
…d functionality to increase number of participants in prolific
I'm not sure if we already do this in the project, but we could save credentials and such with dotenv. It would allow us to define the credentials as environment variables. |
You can add it to the |
To use this together with the |
For now, I'd just add them as parameters to the functions, which you can pass using a dictionary using |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks great! Only a couple of small comments.
One major item is naming: We should use the names for IVs and DVs as determined in the maintenance meeting.
Args: | ||
collection_name: the name of the study as given in firebase | ||
condition: the condition | ||
firebase_credentials: dict with the credentials for firebase |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Currently this is typed as string but listed as dict argument in the comment?
doc_ref.set({"condition": condition_json}) | ||
|
||
|
||
def get_dependent_variable(collection_name: str, firebase_credentials: dict) -> Any: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just flagging for discussion: Depending on how we decide about the terminology (independent variables vs. conditions; observations vs. dependent variables), we should rename it. Currently, it's a mix of both (conditions, dependent_variabes).
autora/runner/firebase_runner.py
Outdated
condition: the condition | ||
**kwargs: | ||
""" | ||
send_condition(kwargs["collection_name"], condition, kwargs["firebase_credentials"]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it sending a single condition or an entire set of conditions? If it is the former then we should make this more clear by labeling it accordingly (e.g., send_experiment
or send_conditions
.
autora/runner/firebase_runner.py
Outdated
**kwargs: | ||
|
||
Returns: | ||
the dependent variavle |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the dependent variavle | |
the dependent variable |
autora/runner/firebase_runner.py
Outdated
kwargs["collection_name"], kwargs["firebase_credentials"] | ||
) | ||
while data is None: | ||
sleep(10) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should the sleep time be a parameter?
this is outdated, replaced by the firebase package |
Description
Add experiment runner to the package
Type of change
Features (Optional)
Questions (Optional)