Skip to content

Commit

Permalink
Merge pull request #231 from SpikeInterface/pre-commit-ci-update-config
Browse files Browse the repository at this point in the history
[pre-commit.ci] pre-commit autoupdate
  • Loading branch information
alejoe91 authored Nov 2, 2023
2 parents aa4257e + 9e54cf7 commit c5e74d9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ repos:
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/psf/black
rev: 23.10.0
rev: 23.10.1
hooks:
- id: black
files: ^src/
8 changes: 4 additions & 4 deletions resources/generate_cambridgeneurotech_libray.py
Original file line number Diff line number Diff line change
Expand Up @@ -287,21 +287,21 @@ def synchronize_library():
target_dict = json.load(target)

source_dict.pop('version')

target_dict.pop('version')

# this was needed between version 0.2.17 > 0.2.18
# target_dict["probes"][0]["annotations"].pop("first_index")

same = source_dict == target_dict

# copy the json
shutil.copyfile(source_probe_file, target_probe_file)
if not same:
# copy the png
shutil.copyfile(source_probe_file.parent / (source_probe_file.stem + '.png'),
shutil.copyfile(source_probe_file.parent / (source_probe_file.stem + '.png'),
target_probe_file.parent / (target_probe_file.stem + '.png') )




Expand Down

0 comments on commit c5e74d9

Please sign in to comment.