-
Notifications
You must be signed in to change notification settings - Fork 3
Getting Data from Datamaster
getEntry is useful when you only want to do one or more of the following:
- Look at the details and channels logged for each datasource
- Know where the .ld and .ldx files are located on Google Drive
dm = Datamaster;
getEntry('return', 1) %This will return a single datasource
% TODO: Add example outputgetDatasource is what will typically be used when using Datamaster as it returns a datasource object which lets you:
- Everything that getEntry let's you do
- Get channel data to analyze
- Run analysis functions like
Histogramto visualize and process data
Both of these methods use the same underlying logic to locate and return just the datasource that you want. They do this by allowing you to provided queries in the form of key-value pairs. For example to get all of the datasources with steering angle and engine rpm logged you would run the following:
dm = Datamaster;
ds = dm.getDatasource('channel', {'Steering_Angle', 'Engine_RPM'})But what if you also only wanted the datasource logged after August 23rd 2016? Then you could run the following code:
dm = Datamaster;
ds = dm.getDatasource('channel', {'Steering_Angle', 'Engine_RPM'}, 'StartDate', '2016-08-23')What if you only wanted to know where the .ld and .ldx files are located on Google Drive? Just replace getDatasource with getEntry:
dm = Datamaster;
ds = dm.getEntry('channel', {'Steering_Angle', 'Engine_RPM'}, 'StartDate', '2016-08-23')Items Logged in Details Any field logged in Details can be searched for using Datamaster. For exampled: 'driver', 'event, 'venue', etc.
Date Range
Use StartDate to specify the start of a date range and EndDate to specify the end. Note: Datamaster is inclusive, so if the datasource was logged at the StartDate or EndDate it will be included.
The datetimes specified by StartDate and EndDate must be string and comply to one of the formats shown below:
YYYY-MM-DDYYYY-MM-DD HH:MMYYYY-MM-DD HH:MM:SS
- Getting Started
- Documentation