-
Notifications
You must be signed in to change notification settings - Fork 8
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
Added NonSequentialTimeSeries Model #76
Conversation
-Added NonSequentialTimeSeriesModel which can store NonSequential time steps as contrary to SingleTimeSeries which works with a fixed resolution of time steps - Updated existing modules coupled with SingleTimeSeries to be generic such that they can now accept NonSequentialTimeSeries model - Replicated tests as applicable to SingleTimeSeries - Infile storage is stored as a StructArray contrary pyarrow array as we store data and timestamps in different types
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #76 +/- ##
==========================================
- Coverage 95.77% 95.47% -0.30%
==========================================
Files 46 47 +1
Lines 3835 4179 +344
==========================================
+ Hits 3673 3990 +317
- Misses 162 189 +27 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
- updated and resolved changes from the main branch - updated the arrow storage to handle record array instead of pyarrow structure - complied with the TimeSeriesKey model for NonSequentialTimeSeries
- merged with the main branch with Chronify-related changes - resolved conflicts with incoming changes and merged changes reflecting NonSequentialTimeSeries - pytest complies with all the merged changes
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks good now. I have a few minor comments.
@@ -221,7 +221,7 @@ def to_input_output( | |||
|
|||
xs = self.function_data.x_coords | |||
ys = np.multiply(xs[1:], self.function_data.y_coords).tolist() | |||
ys.insert(0, c) | |||
ys.insert(0, c) # type:ignore |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@pesap Do you know why we need this?
- added chronological checks based on comments from CADET team - merged add time series methods into one based on singleedispatchmethod func - os and path permission error on windows
Added NonSequentialTimeSeries Model
-Added
NonSequentialTimeSeriesModel
which can store non-sequential time steps as contrary toSingleTimeSeries
which works with a fixed resolution of time stepsSingleTimeSeries
to be generic such that they can now acceptNonSequentialTimeSeries
modelSingleTimeSeries
pyarrow.StructArray
contrarypyarrow.array
as we store data and timestamps in different types. This can also follow apandas.DataFrame
approach but I think parsing two different arrays -- one for data and one for timestamps -- should be fine for now.