Python Library   

Introduction

A library for accessing VitalDB data with API in Python language.

Installation

To use this library, please save as the library file (vitaldb.py) from the following address.

https://raw.githubusercontent.com/vitaldb/vitalutils/master/python/vitaldb.py

You need to download or copy vitaldb.py file to the project folder where you will write the Python code.

If you get an error message that there is no library when you run it, you need to install library such as pandas or requests.

pip install pandas

pip install requests

Library Description

Currently, the library contains only one function to load VitalDB data.

def load_vital(tnames, caseids=[], interval=1, maxcases=10)

Parameter list

  • tnames: list or comma separated track names (with device names)
  • caseids: list of caseid to load
  • interval: time interval of each row
  • maxcases: stop loading if this number of cases are loaded