Skip to content

Commit

Permalink
Fixes regions and group size in loading
Browse files Browse the repository at this point in the history
- Regions set nan to empty string when loading
- Group size is assigned when loading
  • Loading branch information
hobbitsyfeet committed Feb 10, 2023
1 parent ddfdaf1 commit df76ad5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/multitracker.py
Original file line number Diff line number Diff line change
Expand Up @@ -875,11 +875,13 @@ def load_tracker_data(csv, input_dialog, frame):
tracker_data["Sex"] = tracker_data["Sex"].fillna("")
tracker_data["Description"] = tracker_data["Description"].fillna("")
tracker_data["Group_Size"] = tracker_data["Group_Size"].fillna(0)
tracker_data["Region"] = tracker_data["Region"].fillna("")
print(tracker_data.iloc[1])
# Build tab info, this tab info is used to build the tracker
new_tab.name_line.setText(tracker_data["Name"].iloc[1])
new_tab.id_line.setText(tracker_data["ID"].iloc[1])
new_tab.sex_line.setText(str(tracker_data["Sex"].iloc[1]))
new_tab.group_line.setText(str(tracker_data["Group_Size"].iloc[1]))

description_text = ""
if tracker_data["Description"].iloc[1] == "":
Expand All @@ -896,6 +898,7 @@ def load_tracker_data(csv, input_dialog, frame):
new_tab.beginning_button.setChecked(eval(tracker_data["Present At Beginning"].iloc[1]))




# Build new tracker with info loaded
tracker = MultiTracker(new_tab)
Expand Down

0 comments on commit df76ad5

Please sign in to comment.