Support for shallow copy-modify messages #77
Replies: 2 comments 6 replies
|
So NMEAMessage objects are intentionally immutable after creation as they are intended to represent point-in-time GNSS state. There is no easy way to "copy and amend" an existing NMEAMessage object other than by creating a new NMEAMessage and setting (some of) its attributes to those of the original message, much as you have done in your code snippet. I would, however, be very wary of using a I would simply set the individual public attributes for the particular message type you're interested in - most NMEA sentences are not that large. I'd be interested to understand what use case would warrant this? |
|
FYI it may not be exactly what you're looking for, but the ubxsimulator utility within the pyubxutils library is capable of generating synthetic time series data for selected NMEA, UBX or RTCM message types, based on a json configuration file. It was developed precisely to facilitate time series testing of my own GNSS applications. I'd be happy to consider enhancements to this utility if it would benefit wider testing use cases. |
Uh oh!
There was an error while loading. Please reload this page.
I have a use case where I want to modify the time of a message and then re-serialize it. I did get it working, via the clunky
Is there a better way, either with the current codebase or an added feature?
All reactions