Skip to content

Commit

Permalink
fix timestamp unit
Browse files Browse the repository at this point in the history
  • Loading branch information
yuichiroaoki committed Dec 21, 2023
1 parent a3382c6 commit 62d1b63
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion server/data/config/dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ sensor:
beam_diameter: 120.0 # μm
middle_output: 9400
response_time: 15.0 # ms
tolerance: 0.6
tolerance: 2.6
not_in_range_output: 18800
trace:
min_measure_count: 5
Expand Down
2 changes: 1 addition & 1 deletion server/data/config/production.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ sensor:
beam_diameter: 120 # μm
middle_output: 9400
response_time: 10.0 # ms
tolerance: 0.6
tolerance: 2.6
not_in_range_output: 18800
trace:
min_measure_count: 10
Expand Down
2 changes: 1 addition & 1 deletion server/server/measure/mtconnect.py
Original file line number Diff line number Diff line change
Expand Up @@ -798,7 +798,7 @@ def slide_timestamps(self, lines: np.array, slide_time: float):
Slide timestamps by slide_time
"""
lines[:, 1:3] = np.array(lines[:, 1:3], dtype="datetime64[s]") - np.timedelta64(
int(slide_time), "s"
int(slide_time), "ms"
)
return lines

Expand Down

0 comments on commit 62d1b63

Please sign in to comment.