Skip to content

Commit

Permalink
prevent downloaded files to be committed by addition to gitignore
Browse files Browse the repository at this point in the history
  • Loading branch information
JuliaSprenger committed Oct 4, 2022
1 parent 261bb1e commit 54b39c6
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 5 deletions.
9 changes: 8 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -66,4 +66,11 @@ neo/test/io/neurosharemergeio.py
files_for_testing_neo
/venv
/neo/test/resources
doc/source/examples
doc/examples
doc/*.abf
doc/*.png
doc/*.plx
doc/*.nev
doc/*.ns5
doc/*.nix
doc/*.nwb
2 changes: 1 addition & 1 deletion examples/plot_with_matplotlib.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
import neo

distantfile = 'https://web.gin.g-node.org/NeuralEnsemble/ephy_testing_data/raw/master/plexon/File_plexon_3.plx'
localfile = './File_plexon_3.plx'
localfile = 'File_plexon_3.plx'

urllib.request.urlretrieve(distantfile, localfile)

Expand Down
2 changes: 1 addition & 1 deletion examples/read_files_neo_io.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

# Plexon files
distantfile = url_repo + 'plexon/File_plexon_3.plx'
localfile = './File_plexon_3.plx'
localfile = 'File_plexon_3.plx'
urllib.request.urlretrieve(distantfile, localfile)

# create a reader
Expand Down
4 changes: 2 additions & 2 deletions examples/read_files_neo_rawio.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

# Get Plexon files
distantfile = url_repo + 'plexon/File_plexon_3.plx'
localfile = './File_plexon_3.plx'
localfile = 'File_plexon_3.plx'
urllib.request.urlretrieve(distantfile, localfile)

# create a reader
Expand Down Expand Up @@ -56,7 +56,7 @@

# Read event timestamps and times (take another file)
distantfile = url_repo + 'plexon/File_plexon_2.plx'
localfile = './File_plexon_2.plx'
localfile = 'File_plexon_2.plx'
urllib.request.urlretrieve(distantfile, localfile)

# Count events per channel
Expand Down

0 comments on commit 54b39c6

Please sign in to comment.