Skip to content

Commit

Permalink
Merge branch 'dev'
Browse files Browse the repository at this point in the history
  • Loading branch information
dbirman committed Oct 15, 2024
2 parents 25c7150 + 175735f commit fc7ac88
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions src/aind_metadata_viz/docdb.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,16 +192,17 @@ def set_file(self, file: str):
def get_file_field_presence(self):
"""Get the presence of fields in a specific file
"""
expected_fields = (
self.field_list[0].keys() if len(self.field_list) > 0 else []
)
processed = process_record_list(self.field_list, expected_fields)
# expected_fields = (
# self.field_list[0].keys() if len(self.field_list) > 0 else []
# )
# processed = process_record_list(self.field_list, expected_fields)

print(processed)
df = pd.DataFrame()
df = pd.DataFrame(processed, columns=expected_fields)
# print(processed)
# df = pd.DataFrame()
# df = pd.DataFrame(processed, columns=expected_fields)

return compute_count_true(df)
# return compute_count_true(df)
return pd.DataFrame()

def get_csv(self, vp_state: str = "Not Valid/Present"):
"""Build a CSV file of export data based on the selected file and field
Expand Down

0 comments on commit fc7ac88

Please sign in to comment.