Skip to content

Commit

Permalink
Merge branch 'development' of https://github.com/suny-downstate-medic…
Browse files Browse the repository at this point in the history
…al-center/netpyne into development
  • Loading branch information
urdapile committed Nov 12, 2024
2 parents 01388f5 + 376993f commit 06466f5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest]
#python-version: [2.7, 3.7]
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
python-version: ["3.9", "3.10", "3.11", "3.12"]
fail-fast: false

steps:
Expand Down
10 changes: 8 additions & 2 deletions netpyne/plotting/plotCSD.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,10 +148,16 @@ def plotCSD(
getAllData=True,
**kwargs)
else:
pass # TODO: ensure time slicing works properly in case CSDData is passed as an argument
nsamples = CSDData.shape[1]
tt = np.arange(nsamples) * dt
if timeRange is not None:
mask = (tt >= timeRange[0]) & (tt < timeRange[1])
LFPData = LFPData[mask, :]
CSDData = CSDData[:, mask]

npcsd = CSDData
if pad > 0: npcsd = getPaddedCSD(CSDData, pad) # apply padding (replicate first,last rows)
if pad > 0:
npcsd = getPaddedCSD(CSDData, pad) # apply padding (replicate first,last rows)

if timeRange is None:
timeRange = [0, sim.cfg.duration]
Expand Down

0 comments on commit 06466f5

Please sign in to comment.