Closed Ahmad-Bamba closed 8 months ago
Feel free to let me know if there is anything else that can be done to improve this
@Ahmad-Bamba could you please also push the timespec="microseconds" change?
Ah, I neglected to actually git add that file. My bad
Should be good. Sorry about that!
@LeStarch would you put a second set of eyes on this ?
Change Description
This change makes the TimeType.to_readable function use datetime.isoformat to convert the datetime object to a human readable format. In doing so, fprime-gds outputs
channel.log
entries with microsecond precision.Rationale
Testing/Review Recommendations
I tested the changes locally by first following the fprime hello world tutorial. Then I installed the local version of fprime-tools, and ran the example project with
fprime-gds
. This produced the following output that I've attached below showing no more accuracy loss inchannel.log
:Compared with before this change:
Future Work
This seems like too a small change to make a unit test for, but I could think of a good way to design one if requested.