-
Notifications
You must be signed in to change notification settings - Fork 59
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
TimeSeries.values or method addition #227
Comments
Using a Makes me wonder if there is a separate class that would be useful for this... are there other methods of TimeSeries that you've been finding useful for the process measurements (e.g. paperclips)? |
In the paperclips example, does the TimeSeries track the rate of paperclip production? If so, then you need to provide a unit for the x axis, for example "5213 paperclips per hour". Only then will you be able to work out total paperclips produced between two datetimes. I think there needs to be a
We could then return the total power consumption in watt-hours using something like Without setting a unit for the x axis though, I don't think it's possible to calculate the total. I expected |
Perhaps whichever solution should use a library such as https://pint.readthedocs.io/en/stable/index.html |
Hey @johnhaire89 I generally agree with you on most points. I disagree on units and that pint is the better alternative. I used pint before but it's not comparable to what we are trying here. Adding another view to this: @stringertheory suggested a new series class for this. Imho that's a question of philosophy behind traces. Is an object purpose driven or universal? As a counter example: You might be familiar with InfluxDB measurements. Think of them as tables in a database specifically architected for time series data. A whole set of statistical functions can be used to query, slice, join, and aggregate data. InfluxDB does not concern itself with the nature of your datapoints and therefore whether the How do you guys feel about this different perspective? |
Apologies for the tone of my previous comments, for answering without understanding what was being discussed, and for the thought bubble about pint =) |
Looking at the usecase of tracing measurements of a process (e.g. production of paperclips over time) a user might be interested in values primarily in some cases (e.g. to compute the total amount of paperclips produced).
I'd suggest to implement something similar to the following:
Wdyt? Are there other aspects to consider?
The text was updated successfully, but these errors were encountered: