Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Oct 30, 2023
1 parent 2702d89 commit 9e54cf7
Showing 1 changed file with 4 additions and 4 deletions.
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 9e54cf7

Please sign in to comment.