Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

migrate pack strings here #85

Open
github-actions bot opened this issue Jul 29, 2021 · 0 comments
Open

migrate pack strings here #85

github-actions bot opened this issue Jul 29, 2021 · 0 comments
Labels

Comments

@github-actions
Copy link

migrate pack strings here

#TODO: migrate pack strings here

                if (self.welfordsCount >= PM_SAMPLE_COUNT_FOR_AVERAGE): #Keep adding data

                    variance = self.welfordsM2/self.welfordsCount
                    sampleVariance = self.welfordsM2 / (self.welfordsCount -1)

                    #A = message type class/ see ring buffer -- for pickle
                    secInt =  secOfTheMonth() # TIME_ISO8601_FMT.format(*time.gmtime())
                    dataMsg = [self.port, secInt, self.welfordsCount  ,self.welfordsMean]# ,round(sampleVariance), round(variance)]
                    #formatStr = "<BHHHHH"
                    #print(dataMsg)
                    #payload = struct.pack(formatStr, *dataMsg)
                    #print("here66666")
                    #payloadStr = "<BHHHHH," + str(b2a_base64(payload))
                    #TODO: migrate pack strings here

                    #averageStr = ",".join()
                    self.averageLogger.log_row(str(dataMsg))

                    self.msgBuffer.push(dataMsg)  #TODO: add to buffer to Transmit this data
                    #Reset welfords
                    self.welfordsCount = 0
                    self.welfordsMean = 0

709d497e870578f5a8a354f5c4bedf573b72346f

@github-actions github-actions bot added the todo label Jul 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

0 participants