Skip to content

Commit 1801106

Browse files
committed
handle empty navdata inputs
1 parent e5a7ab7 commit 1801106

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

gnss_lib_py/algorithms/snapshot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ def solve_wls(measurements, weight_type = None, only_bias = False,
132132
states.append([timestamp, np.nan, np.nan, np.nan, np.nan])
133133

134134
if len(states) == 0:
135-
states = [[] for i in range(5)]
135+
states = [[np.nan]*5]
136136
states = np.array(states)
137137

138138
state_estimate = NavData()

0 commit comments

Comments
 (0)