Skip to content

Commit

Permalink
Fix for unknown library hedIDs, minor updates to CI workflows(run on …
Browse files Browse the repository at this point in the history
…3.11)
  • Loading branch information
IanCa committed Jul 16, 2024
1 parent d6ddaf4 commit 61ffbd5
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
# PR to master branch
echo 'matrix=["3.8", "3.9", "3.10", "3.11"]' >> $GITHUB_OUTPUT
else
echo 'matrix=["3.9"]' >> $GITHUB_OUTPUT
echo 'matrix=["3.9", "3.11"]' >> $GITHUB_OUTPUT
fi
build:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci_windows.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: CI
name: CI Windows

on:
push:
Expand Down
2 changes: 2 additions & 0 deletions hed/schema/schema_io/ontology_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ def _get_hedid_range(schema_name, df_key):
if df_key == constants.STRUCT_KEY:
raise NotImplementedError("Cannot assign hed_ids struct section")

if schema_name not in library_index_ranges:
return set()
starting_id, ending_id = library_index_ranges[schema_name]

start_object_range, end_object_range = object_type_id_offset[df_key]
Expand Down

0 comments on commit 61ffbd5

Please sign in to comment.