Skip to content

Commit

Permalink
Fix linter errors and changing time types to 'Double' (radar-schemas-…
Browse files Browse the repository at this point in the history
…0.1.4)
  • Loading branch information
fschulting committed Jul 21, 2024
1 parent 4c3eda7 commit 9ce6b40
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 12 deletions.
6 changes: 3 additions & 3 deletions commons/passive/polar/polar_acceleration.avsc
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
"namespace": "org.radarcns.passive.polar",
"type": "record",
"name": "PolarAcceleration",
"doc": "Accelerometer data with sample rate of 50 Hz and range of 8 G. Axis specific acceleration data in mG.",
"doc": "Accelerometer data. Axis specific acceleration data in mG.",
"fields": [
{ "name": "deviceName", "type": "string", "doc": "Polar device name" },
{ "name": "time", "type": "long", "doc": "Device timestamp in UTC (ns)." },
{ "name": "deviceName", "type": "string", "doc": "Polar device name." },
{ "name": "time", "type": "double", "doc": "Device timestamp in UTC (ns)." },
{ "name": "timeReceived", "type": "double", "doc": "Device receiver timestamp in UTC (s)." },
{ "name": "x", "type": "int", "doc": "Acceleration in the x-axis (mG)." },
{ "name": "y", "type": "int", "doc": "Acceleration in the y-axis (mG)." },
Expand Down
2 changes: 1 addition & 1 deletion commons/passive/polar/polar_battery_level.avsc
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"name": "PolarBatteryLevel",
"doc": "Device battery level.",
"fields": [
{ "name": "deviceName", "type": "string", "doc": "Polar device name" },
{ "name": "deviceName", "type": "string", "doc": "Polar device name." },
{ "name": "time", "type": "double", "doc": "Device timestamp in UTC (s)." },
{ "name": "timeReceived", "type": "double", "doc": "Device receiver timestamp in UTC (s)." },
{ "name": "batteryLevel", "type": "float", "doc": "Battery level from 0 to 1." }
Expand Down
4 changes: 2 additions & 2 deletions commons/passive/polar/polar_ecg.avsc
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
"name": "PolarEcg",
"doc": "Data from ECG in yV.",
"fields": [
{ "name": "deviceName", "type": "string", "doc": "Polar device name" },
{ "name": "time", "type": "long", "doc": "Device timestamp in UTC (ns)." },
{ "name": "deviceName", "type": "string", "doc": "Polar device name." },
{ "name": "time", "type": "double", "doc": "Device timestamp in UTC (ns)." },
{ "name": "timeReceived", "type": "double", "doc": "Device receiver timestamp in UTC (s)." } ,
{ "name": "ecgSignal", "type": "int", "doc": "ECG signal (yV)." }
]
Expand Down
4 changes: 2 additions & 2 deletions commons/passive/polar/polar_heart_rate.avsc
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
"name": "PolarHeartRate",
"doc": "Heart rate as beats per minute.",
"fields": [
{ "name": "deviceName", "type": "string", "doc": "Polar device name" },
{ "name": "time", "type": "long", "doc": "Device receiver timestamp in UTC (ns)." },
{ "name": "deviceName", "type": "string", "doc": "Polar device name." },
{ "name": "time", "type": "double", "doc": "Device receiver timestamp in UTC (ns)." },
{ "name": "timeReceived", "type": "double", "doc": "Device receiver timestamp in UTC (s)." },
{ "name": "heartRate", "type": "int", "doc": "Heart rate (bpm)." },
{ "name": "rrsMs", "type": {"type": "array", "items": "int"}, "doc": "Data for rrsMs." },
Expand Down
4 changes: 2 additions & 2 deletions commons/passive/polar/polar_pp_interval.avsc
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
"namespace": "org.radarcns.passive.polar",
"type": "record",
"name": "PolarPpInterval",
"doc": "PP interval (milliseconds) representing cardiac pulse-to-pulse interval extracted from PPG signal.",
"doc": "PP interval representing cardiac pulse-to-pulse interval extracted from PPG signal.",
"fields": [
{ "name": "deviceName", "type": "string", "doc": "Polar device name" },
{ "name": "deviceName", "type": "string", "doc": "Polar device name." },
{ "name": "time", "type": "double", "doc": "Device timestamp in UTC (s)." },
{ "name": "timeReceived", "type": "double", "doc": "Device receiver timestamp in UTC (s)." },
{ "name": "blockerBit", "type": "boolean", "doc": "Data for blockerBit." },
Expand Down
4 changes: 2 additions & 2 deletions commons/passive/polar/polar_ppg.avsc
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
"name": "PolarPpg",
"doc": "Data from PPG channels.",
"fields": [
{ "name": "deviceName", "type": "string", "doc": "Polar device name" },
{ "name": "time", "type": "long", "doc": "Device timestamp in UTC (ns)." },
{ "name": "deviceName", "type": "string", "doc": "Polar device name." },
{ "name": "time", "type": "double", "doc": "Device timestamp in UTC (ns)." },
{ "name": "timeReceived", "type": "double", "doc": "Device receiver timestamp in UTC (s)." } ,
{ "name": "ppg0", "type": "int", "doc": "PPG0." },
{ "name": "ppg1", "type": "int", "doc": "PPG1." },
Expand Down

0 comments on commit 9ce6b40

Please sign in to comment.