Skip to content

Commit

Permalink
Made df_attr consistent
Browse files Browse the repository at this point in the history
  • Loading branch information
jessemapel committed Aug 21, 2019
1 parent 8904cb9 commit bec1585
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plio/io/io_controlnetwork.py
Original file line number Diff line number Diff line change
Expand Up @@ -264,8 +264,8 @@ def _set_pid(pointid):
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()

Expand Down

0 comments on commit bec1585

Please sign in to comment.