This is the code
# Import the library
from czml import czml
if __name__ == "__main__":
# Read an existing CZML file
filename = 'data/simple.czml'
with open(filename, 'r') as example:
doc = czml.CZML()
doc.loads(example.read())
print(doc)
pass
Its failing on isinstance(description, Description) on line 1393 in czml.py.
It apparently a unicode string is not an instance of Description.
Errors here:
File "C:\Users\...\venv\lib\site-packages\czml\czml.py", line 1402, in description
raise TypeError
TypeError
Here is the CZML file (super_simple.czml).
[
{
"id":"document",
"name":"simple",
"version":"1.0",
"clock":{
"interval":"2012-03-15T10:00:00Z/2012-03-16T10:00:00Z",
"currentTime":"2012-03-15T10:00:00Z",
"multiplier":60,
"range":"LOOP_STOP",
"step":"SYSTEM_CLOCK_MULTIPLIER"
}
},
{
"id":"0653255a-81a7-4c2c-b154-f987e54767ac",
"name":"Accesses",
"description":"<p>List of Accesses</p>"
}
]