Trial Data to Private Sheets (beta)
Pre-release
Pre-release
This version of the library adds writing of individual trial data to private spreadsheets. It's still beta (i.e. testing), so after some of you try it out and don't notice any issues, I'll update the README
and merge this into master.
The format of a private spreadsheet is more like the old spreadsheet organization. Each column is its own data point, and each row in a column has the PID, timestamp, and trials.
There are a few API changes to this version, but they are quite minor. Your preexisting code will not break (although you won't be able to use the new functionality either).
- There's a new constructor. The only difference is that it takes another parameter, which is the ID of your private spreadsheet. Below are the old and new constructors.
public Sheets(Host host, String appName, String spreadsheetId);
public Sheets(Host host, String appName, String spreadsheetId, String privateSpreadsheetId);
- The trial data is written by calling a new method
writeTrials
. It takes the same input aswriteData
, except it will need an array of floats (one for each trial). Do not call these two functions one after another. You'll want to make sure the first spreadsheet call has finished before you call the second. In other words, make sure thatnotifyFinished
has been successfully called before launching another spreadsheet call. (If you find this too inconvenient, let me know and I'll try to change the API).
public void writeTrials (TestType testType, String userId, float[] trials);
- There's a new
enum
value for the new app (the head sway app).
Sheets.TestType.HEAD_SWAY
As usual, there's (updated) sample code that shows all of this in use. Please test this out and point out any issues you find.