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 5d3f5a0 + 6a473ac commit 24fcbff
Showing 1 changed file with 9 additions and 20 deletions.
29 changes: 9 additions & 20 deletions src/aind_metadata_viz/docdb.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
second_layer_field_mappings,
)

API_GATEWAY_HOST = os.getenv("API_GATEWAY_HOST", "api.allenneuraldynamics-test.org")
API_GATEWAY_HOST = os.getenv("API_GATEWAY_HOST", "api.allenneuraldynamics.org")
DATABASE = os.getenv("DATABASE", "metadata_index")
COLLECTION = os.getenv("COLLECTION", "data_assets")

Expand Down Expand Up @@ -191,28 +191,17 @@ def set_file(self, file: str):

def get_file_field_presence(self):
"""Get the presence of fields in a specific file
Parameters
----------
file : str
_description_
Returns
-------
_type_
_description_
"""
return pd.DataFrame()
# 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)

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 24fcbff

Please sign in to comment.