Skip to content

Commit

Permalink
add samplerate to MapToInputModels function
Browse files Browse the repository at this point in the history
  • Loading branch information
unclearParadigm committed Jun 12, 2020
1 parent ee79284 commit a6a9de4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/OSCARGyroExporter/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ private static void ManualMode(ManualCmdArguments arg) {
});

var operationResult = ReadFile(arg.InputFile)
.Bind(fileContent => MapToInputModels(fileContent, referenceDate.Value.AddMinutes(arg.TimezoneOffset)))
.Bind(fileContent => MapToInputModels(fileContent, referenceDate.Value.AddMinutes(arg.TimezoneOffset), arg.SampleRate))
.Bind(MapToOutputModel)
.Bind(ConvertToOutputCsv)
.Bind(fileContent => WriteToFile(fileContent, arg.OutputFile));
Expand Down Expand Up @@ -67,7 +67,7 @@ private static void AutomaticMode(AutomaticCmdArguments arg) {
var outputFilepath = Path.Join(arg.OutputDirectory, Path.GetFileName(f));

var operationResult = ReadFile(f)
.Bind(fileContent => MapToInputModels(fileContent, referenceDateTime.Value.AddMinutes(arg.TimezoneOffset)))
.Bind(fileContent => MapToInputModels(fileContent, referenceDateTime.Value.AddMinutes(arg.TimezoneOffset), arg.SampleRate))
.Bind(MapToOutputModel)
.Bind(ConvertToOutputCsv)
.Bind(fileContent => WriteToFile(fileContent, outputFilepath));
Expand Down

0 comments on commit a6a9de4

Please sign in to comment.