Skip to content

Correction of the eeg_processing.py function:#24

Open
rafael-mannarelli wants to merge 2 commits intoPeyracheLab:mainfrom
rafael-mannarelli:main
Open

Correction of the eeg_processing.py function:#24
rafael-mannarelli wants to merge 2 commits intoPeyracheLab:mainfrom
rafael-mannarelli:main

Conversation

@rafael-mannarelli
Copy link
Copy Markdown

  • Change the nSS variable type from a pandas DataFrame to a NumPy array
  • Update the codebase to replace DataFrame-specific operations with equivalent NumPy functions to maintain functionality.

- Change the `nSS` variable type from a pandas DataFrame to a NumPy array
- Update the codebase to replace DataFrame-specific operations with equivalent NumPy functions to maintain functionality.
- This modification addresses compatibility issues and optimizes data manipulation processes
osc_max.append(tmp.max())
for i in range(len(osc_ep)):
s,e=osc_ep.loc[i]
tmp = nSS[np.argmin(np.abs(nSS.t - s)):np.argmin(np.abs(nSS.t - e))]
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you can use the get method in this case.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

with get(s, e)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants