iicsys / pypmu

pyPMU - Python implementation of the IEEE C37.118 synchrophasor standard
BSD 3-Clause "New" or "Revised" License
60 stars 46 forks source link

HANDLE FREQ DEPENDING ON FORMAT IN CONFIGURATION #15

Closed caldweln closed 4 years ago

caldweln commented 4 years ago

IEEE Std C37.118.2-2011 Table 6 states FREQ is the frequency deviation, unless 32bit floating pt. In the case of 16bit float it's the deviation and we unpack and restore nominal offset. In the case of 32bit float it's the actual value and we unpack without adjustment. Also not necessary to restrict to +/- 32.767Hz as it is with 16bit integer.

caldweln commented 4 years ago

replacing pull request #14

sstevan commented 4 years ago

Hey @caldweln,

This looks good now! Thanks for the fix. May I ask you for a favor? In order to speedup pushing these fixes on the PyPI would you mind doing any of the following things:

Thanks one more time for fixing the issue. Please note that it is enough to create pull request on bugfix-v1.0.1 and I will accept it immediately. Trying to find some time to push these fixes on master that is why writing tests would help me a lot as well.

Cheers,

caldweln commented 4 years ago

@sstevan moving to bugfix branch.