diff --git a/.github/workflows/test_and_deploy.yml b/.github/workflows/test_and_deploy.yml index 89e5e0c..34d8216 100644 --- a/.github/workflows/test_and_deploy.yml +++ b/.github/workflows/test_and_deploy.yml @@ -12,13 +12,13 @@ jobs: linting: runs-on: ubuntu-latest steps: - - uses: neuroinformatics-unit/actions/lint@v2.0.0 + - uses: neuroinformatics-unit/actions/lint@v2 manifest: name: Check Manifest runs-on: ubuntu-latest steps: - - uses: neuroinformatics-unit/actions/check_manifest@v2.0.0 + - uses: neuroinformatics-unit/actions/check_manifest@v2 test: needs: [linting, manifest] diff --git a/scripts/generate_sample_projects/pose_utils.py b/scripts/generate_sample_projects/pose_utils.py index 239caf6..ec7e0d3 100644 --- a/scripts/generate_sample_projects/pose_utils.py +++ b/scripts/generate_sample_projects/pose_utils.py @@ -33,7 +33,7 @@ def load_poses_from_dlc(file_path: Path) -> Optional[pd.DataFrame]: return df -def save_poses_to_dlc(df: pd.DataFrame, file_path: Path): +def save_poses_to_dlc(df: pd.DataFrame | pd.Series, file_path: Path): """Save pose estimation results to a DeepLabCut (DLC) .h5 file. Also saves the poses to a .csv file with the same name. diff --git a/wazp/callbacks/metadata.py b/wazp/callbacks/metadata.py index 5d33275..8fe2821 100644 --- a/wazp/callbacks/metadata.py +++ b/wazp/callbacks/metadata.py @@ -661,7 +661,9 @@ def generate_yaml_files_from_spreadsheet( # convert all fields in dataframe to strings # (otherwise datetime fields are not encoded correctly in the YAML) - df = df.applymap(str) + df = df.applymap(str) # type: ignore[operator] + # TODO: remove mypy ignore comment 👆 if we update the linter job to + # 3.11 with newer pandas-stubs version # check if columns in spreadsheet match metadata file: # if not, add missing columns