Skip to content

Commit

Permalink
Merge pull request #983 from IanCa/develop
Browse files Browse the repository at this point in the history
Fix for unknown library hedIDs, minor updates to CI workflows(run on 3.11)
  • Loading branch information
VisLab authored Jul 16, 2024
2 parents d6ddaf4 + 09722a6 commit 50b3e36
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 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
2 changes: 1 addition & 1 deletion hed/tools/visualization/tag_word_cloud.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ def load_and_resize_mask(mask_path, width=None, height=None):
scale = original_size[1] / height
output_size = original_size / scale

mask_image = mask_image.resize(output_size.astype(int), Image.LANCZOS)
mask_image = mask_image.resize(tuple(output_size.astype(int)), Image.LANCZOS)

mask_image_array = np.array(mask_image)
# Treat transparency (alpha < 128) or white (R>127, G>127, B>127) as white, else black
Expand Down

0 comments on commit 50b3e36

Please sign in to comment.