Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • CAiMIRA CAiMIRA
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
    • Locked files
  • Issues 48
    • Issues 48
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 4
    • Merge requests 4
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test cases
  • Deployments
    • Deployments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • CAiMIRACAiMIRA
  • CAiMIRACAiMIRA
  • Merge requests
  • !404

New precise activity and break inputs

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Luis Aleixo requested to merge feature/ARIA_new_inputs into master Oct 03, 2022
  • Overview 12
  • Commits 9
  • Pipelines 13
  • Changes 3

Added new Activity types:

Screenshot_2022-10-10_at_15.26.27

Added a logic to parse new specific inputs:

  • breaks if self.specific_breaks != [] - parse a list of dictionaries with a start_time and finish_time keys - format [{"start_time": "10:00", "finish_time": "11:00"}, ...]. Otherwise keep the traditional logic for the breaks.
  • precise activities if self.precise_activity != {} parse a dictionary with two keys, physical_activity and respiratory_activity - in which the former value is a single string, while the latter is a list of dictionaries, with the keys type and percentage - format {"physical_activity": "Light activity", "respiratory_activity": [{"type": "Breathing", "percentage": 100}, ...]}. The sum of all the respiratory activity percentages should be 100. If self.precise_activity == {}, keep the traditional logic for the self.activity_type.

It was added a logic for data validation for each new input, as well as a test.

These new inputs will be needed once the ARIA project is ready to connect with CAiMIRA model.

Edited Dec 06, 2022 by Luis Aleixo
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: feature/ARIA_new_inputs