diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index bed2e1c9..6d27d8a0 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -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: diff --git a/.github/workflows/ci_windows.yaml b/.github/workflows/ci_windows.yaml index 278271b9..d02dfb2e 100644 --- a/.github/workflows/ci_windows.yaml +++ b/.github/workflows/ci_windows.yaml @@ -1,4 +1,4 @@ -name: CI +name: CI Windows on: push: diff --git a/hed/schema/schema_io/ontology_util.py b/hed/schema/schema_io/ontology_util.py index bb27c881..898c55a8 100644 --- a/hed/schema/schema_io/ontology_util.py +++ b/hed/schema/schema_io/ontology_util.py @@ -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] diff --git a/hed/tools/visualization/tag_word_cloud.py b/hed/tools/visualization/tag_word_cloud.py index 90a06a87..6f6619bf 100644 --- a/hed/tools/visualization/tag_word_cloud.py +++ b/hed/tools/visualization/tag_word_cloud.py @@ -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