Skip to content

Commit

Permalink
change to calling infer_metadata once instead of twice
Browse files Browse the repository at this point in the history
  • Loading branch information
vgkz committed Jun 10, 2024
1 parent 21acb24 commit 2586175
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/get_positional_features.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,9 @@ def get_positional_features(protocol):
# function to get positional features which can be parsed from xml-files

id_key = f"{XML_NS}id"
year = infer_metadata(protocol)['year']
chamber = infer_metadata(protocol)['chamber']
meta_data = infer_metadata(protocol)
year = meta_data['year']
chamber = meta_data['chamber']

id_list = []
page_number_list = []
Expand Down

0 comments on commit 2586175

Please sign in to comment.