-
Notifications
You must be signed in to change notification settings - Fork 32
Sequence
type is improperly defined
#162
Comments
@astrojuanlu bump |
I agree, I would find it weird that |
From the TimeIntervalCollection wiki:
I think Note that I can't find anything related to czml3's |
I also want to add that changing the class name from |
Good points. Then let's go ahead with your option 👍🏼 |
The
Sequence
type (link) is too broadly defined as it accepts as inputlist[Any]
. It isn't defined in the CZML wiki, and the only use case I can see for it is for defining a list ofTimeInterval
s (e.g. here) or a list ofIntervalValue
s (e.g. here).It seems more appropriate to replace the
Sequence
class with either:SequenceTime
(or something similar) class that acceptslist[TimeInterval] | list[IntervalValue]
SequenceTimeInterval
class andSequenceIntervalValue
classMy preference is for option 1.
As a side note I think many people will get this class confused with the
Sequence
class fromcollections.abc
.@astrojuanlu let me know your thoughts and I'll submit a PR (along with some other bug fixes I've found recently).
The text was updated successfully, but these errors were encountered: