Logging fixes
This commit is contained in:
parent
3f29e6ccea
commit
19b2afe7d7
1 changed files with 6 additions and 8 deletions
|
|
@ -429,8 +429,8 @@ class RangeofMotionThing(lt.Thing):
|
||||||
|
|
||||||
try:
|
try:
|
||||||
logger.info(
|
logger.info(
|
||||||
f"Beginning the {axis}-axis in the {'positive' if direction == 1 else 'negative'}\
|
f"Beginning the {axis}-axis in the {'positive' if direction == 1 else 'negative'} "
|
||||||
direction"
|
"direction"
|
||||||
)
|
)
|
||||||
|
|
||||||
# Generate required dictionaries for step sizes and minimum offsets
|
# Generate required dictionaries for step sizes and minimum offsets
|
||||||
|
|
@ -556,8 +556,8 @@ class RangeofMotionThing(lt.Thing):
|
||||||
:return: Results dictionary separated into keys of each axis and direction.
|
:return: Results dictionary separated into keys of each axis and direction.
|
||||||
"""
|
"""
|
||||||
logger.info(
|
logger.info(
|
||||||
"Using the stage to measure the Range of Motion.\
|
"Using the stage to measure the Range of Motion. "
|
||||||
Please ensure you are using a big enough sample."
|
"Please ensure you are using a big enough sample."
|
||||||
)
|
)
|
||||||
start_time = time.time()
|
start_time = time.time()
|
||||||
rom_json = {}
|
rom_json = {}
|
||||||
|
|
@ -581,12 +581,10 @@ class RangeofMotionThing(lt.Thing):
|
||||||
end_time = time.time()
|
end_time = time.time()
|
||||||
total_time = (end_time - start_time) / 60
|
total_time = (end_time - start_time) / 60
|
||||||
|
|
||||||
rom_results = _collate_data(
|
rom_results = _collate_data(data=rom_json, time=total_time, csm=csm)
|
||||||
data=rom_json, time=total_time, csm=csm, logger=logger
|
|
||||||
)
|
|
||||||
|
|
||||||
logger.info(
|
logger.info(
|
||||||
f"Range of motion is {rom_results['Step Range'][0]} X {rom_results['Step Range'][1]} steps"
|
f"Range of motion is {rom_results['Step Range'][0]} x {rom_results['Step Range'][1]} steps"
|
||||||
)
|
)
|
||||||
|
|
||||||
self.last_calibration = DenumpifyingDict(rom_results).model_dump()
|
self.last_calibration = DenumpifyingDict(rom_results).model_dump()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue