Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.
Sign up[FIX] Timeseries: time_variable now created in Timeseries #33
Conversation
kernc
reviewed
Dec 15, 2017
| pass | ||
| try: | ||
| self.time_variable = next(var for var in self.domain.attributes | ||
| if isinstance(var, ContinuousVariable)) |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
I don't like this. Where does it happen? |
jerneju
changed the title
[FIX] Timeseries: do not create object if there is no TimeVariable
[WIP][FIX] Timeseries: do not create object if there is no TimeVariable
Dec 18, 2017
jerneju
force-pushed the
jerneju:timeseries-timevar
branch
2 times, most recently
from
1b4b58c
to
a547ddd
Dec 20, 2017
This comment has been minimized.
This comment has been minimized.
codecov-io
commented
Dec 20, 2017
•
Codecov Report
@@ Coverage Diff @@
## master #33 +/- ##
==========================================
- Coverage 55.88% 55.45% -0.43%
==========================================
Files 7 7
Lines 646 651 +5
Branches 99 101 +2
==========================================
Hits 361 361
- Misses 249 253 +4
- Partials 36 37 +1
Continue to review full report at Codecov.
|
jerneju
changed the title
[WIP][FIX] Timeseries: do not create object if there is no TimeVariable
[WIP][FIX] Timeseries: time_variable
Dec 20, 2017
jerneju
force-pushed the
jerneju:timeseries-timevar
branch
from
a547ddd
to
5ea28c4
Dec 20, 2017
jerneju
changed the title
[WIP][FIX] Timeseries: time_variable
[FIX] Timeseries: time_variable
Dec 20, 2017
jerneju
changed the title
[FIX] Timeseries: time_variable
[FIX] Timeseries: time_variable created in Timeseries
Dec 20, 2017
jerneju
changed the title
[FIX] Timeseries: time_variable created in Timeseries
[FIX] Timeseries: time_variable now created in Timeseries
Dec 20, 2017
jerneju
force-pushed the
jerneju:timeseries-timevar
branch
from
5ea28c4
to
e9f0d96
Dec 20, 2017
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
I don't like this change. if var is None:
self.attributes = self.attributes.copy()
self.attributes.pop('time_variable')
return
assert var in self.domainWould that work? |
This comment has been minimized.
This comment has been minimized.
|
@kernc : And you also do not want to have a conversion from |
This comment has been minimized.
This comment has been minimized.
|
Why, doesn't |
jerneju
force-pushed the
jerneju:timeseries-timevar
branch
from
e9f0d96
to
8e2d0e2
Jan 8, 2018
jerneju
force-pushed the
jerneju:timeseries-timevar
branch
from
8e2d0e2
to
fa14b63
Jan 8, 2018
This comment has been minimized.
This comment has been minimized.
|
This looks safer to me. Thanks. |
jerneju commentedDec 15, 2017
•
edited
Issue
Some widgets (Seasonal Adjustment, Moving Transform, and Difference) create
Timeserieswhen they getTableand they do not settime_variable.Description of changes
Scripting part which creates
time_variableis now moved from widget As Timeseries toTimeseries.Now this code can be used when creating
TimeseriesfromTable.Includes