Skip to content
This repository has been archived by the owner on Dec 16, 2024. It is now read-only.

Commit

Permalink
Add new properties to Position
Browse files Browse the repository at this point in the history
  • Loading branch information
Joris Olympio committed Apr 12, 2020
1 parent 6823df7 commit cd57c94
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/czml3/properties.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,8 @@ class Position(BaseCZMLObject, Interpolatable, Deletable):
cartesian = attr.ib(default=None)
cartographicRadians = attr.ib(default=None)
cartographicDegrees = attr.ib(default=None)
cartesianVelocity = attr.ib(default=None)
reference = attr.ib(default=None)

def __attrs_post_init__(self,):
if all(
Expand All @@ -146,6 +148,8 @@ def __attrs_post_init__(self,):
self.cartesian,
self.cartographicDegrees,
self.cartographicRadians,
self.cartesianVelocity,
self.reference,
)
):
raise ValueError(
Expand Down

0 comments on commit cd57c94

Please sign in to comment.