-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: composite measures should be correctly exported to CSV (#309)
* refactor: add acceleration measure to the DummyTemp Decoder * fix: test name * test: implement failing tests * feat: add an ask event to retrieve the content of a measure * feat: generate a measure column for each property of a measure * fix: position needs to be the first property for consistency purposes * fix: failing test * refactor: more proper way of computing header string --------- Co-authored-by: Théo Dislay <[email protected]>
- Loading branch information
Showing
10 changed files
with
197 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import { MeasureDefinition } from "lib/modules/measure"; | ||
|
||
/* eslint-disable sort-keys */ | ||
|
||
export type AccelerationMeasurement = { | ||
acceleration: { | ||
x: number; | ||
y: number; | ||
z: number; | ||
}; | ||
accuracy: number; | ||
}; | ||
|
||
export const accelerationMeasureDefinition: MeasureDefinition = { | ||
valuesMappings: { | ||
acceleration: { | ||
properties: { | ||
x: { type: "float" }, | ||
y: { type: "float" }, | ||
z: { type: "float" }, | ||
}, | ||
}, | ||
accuracy: { type: "float" }, | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.