Skip to content

Commit 3434ee0

Browse files
committed
fix: correct spelling and add processing of observed_area
1 parent 36cbc71 commit 3434ee0

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

frost_sta_client/model/multi_datastream.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,8 @@ def __setstate__(self, state):
310310
self.name = state.get('name', None)
311311
self.description = state.get('description', None)
312312
self.observation_type = state.get('observationType', None)
313-
self.observation_area = state.get('observedArea', None)
313+
if state.get('observedArea', None) is not None:
314+
self.observed_area = frost_sta_client.utils.process_area(state['observedArea'])
314315
self.phenomenon_time = state.get('phenomenonTime', None)
315316
self.result_time = state.get('resultTime', None)
316317
self.properties = state.get('properties', None)

0 commit comments

Comments
 (0)