Skip to content
Snippets Groups Projects
Commit bec15857 authored by Jesse Mapel's avatar Jesse Mapel
Browse files

Made df_attr consistent

parent 8904cb94
No related branches found
No related tags found
No related merge requests found
......@@ -264,8 +264,8 @@ class IsisStore(object):
df_attr = self.point_field_map.get(attr, attr)
if df_attr in g.columns:
# As per protobuf docs for assigning to a repeated field.
if attr == 'aprioriCovar' or attr == 'adjustedCovar':
arr = g.iloc[0][attr]
if df_attr == 'aprioriCovar' or df_attr == 'adjustedCovar':
arr = g.iloc[0][df_attr]
if isinstance(arr, np.ndarray):
arr = arr.ravel().tolist()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment