Skip to content
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

Add EDA data type #405

Merged
merged 3 commits into from
Oct 7, 2022
Merged

Add EDA data type #405

merged 3 commits into from
Oct 7, 2022

Conversation

Whathecode
Copy link
Member

@Whathecode Whathecode commented Oct 6, 2022

For an upcoming sensor integration which can measure electrodermal activity (also known as GSR), an EDA data type was added. Closes #399

While implementing this, I introduced a development checklist for introducing new data types to CARP Core. It's introduced as part of this PR.

There are already quite a few unit tests to guide developers in doing this correctly. But, I noticed there was no check whether a newly introduced data type is added to CarpDataTypes. So, I started out by introducing a unit test for this.

I also noticed there is no check to verify whether a valid JSON schema is available for the Data type. But, introducing a test for this seems less straightforward so I added a new backlog item for this instead: #404

Lastly, I noticed some of the existing data types (heart rate and geolocation) were too liberal in the values they accepted. I updated the Data classes and JSON schemas accordingly.

@Whathecode Whathecode marked this pull request as ready for review October 6, 2022 18:46
@Whathecode Whathecode requested a review from pmasulli October 6, 2022 18:46
@Whathecode Whathecode merged commit 7341a7d into develop Oct 7, 2022
@Whathecode Whathecode deleted the eda-data branch October 7, 2022 12:15
@Whathecode Whathecode mentioned this pull request Oct 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add a GSR/EDA data type
2 participants