-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Difficulty in working on MNI in SEEG file #3
Comments
Please check if this is fixed on the main branch |
Thanks. But unfortunately, I am still encountering the same issue, even after Gitpulling the latest version. |
try |
Thanks, MNI detection finally worked. Unfortunately, after saving to npz, I got two errors.
File "c:\Users\ADaida\Documents\GitHub\pyHFO\src\utils\utils_gui.py", line 63, in run result = self.fn(*self.args, **self.kwargs) File "c:\Users\ADaida\Documents\GitHub\pyHFO\main.py", line 716, in _load_from_npz self.hfo_app = self.hfo_app.import_app(fname) File "c:\Users\ADaida\Documents\GitHub\pyHFO\src\hfo_app.py", line 435, in import_app app.hfo_features.artifact_predictions = checkpoint["artifact_predictions"].item() ValueError: can only convert an array of size 1 to a Python scalar Traceback (most recent call last): self.waveform_plot.plot(t_start) File "c:\Users\ADaida\Documents\GitHub\pyHFO\src\ui\plot_waveform.py", line 180, in plot eeg_data_to_display,_=self.backend.get_eeg_data(int(t_startself.sample_freq),int(t_endself.sample_freq), self.filtered) File "c:\Users\ADaida\Documents\GitHub\pyHFO\src\hfo_app.py", line 111, in get_eeg_data return data[:, start:end], self.channel_names TypeError Loading from npz... File "c:\Users\ADaida\Documents\GitHub\pyHFO\src\utils\utils_gui.py", line 63, in run result = self.fn(*self.args, **self.kwargs) File "c:\Users\ADaida\Documents\GitHub\pyHFO\main.py", line 716, in _load_from_npz self.hfo_app = self.hfo_app.import_app(fname) File "c:\Users\ADaida\Documents\GitHub\pyHFO\src\hfo_app.py", line 435, in import_app app.hfo_features.artifact_predictions = checkpoint["artifact_predictions"].item() ValueError: can only convert an array of size 1 to a Python scalar
initializing HFOAnnotation Traceback (most recent call last): annotation = HFOAnnotation(self.hfo_app, self, self.close_signal) File "c:\Users\ADaida\Documents\GitHub\pyHFO\src\ui\annotation.py", line 73, in init self.waveform_plot.plot(start, end, channel, interval=1.0) # Default interval File "c:\Users\ADaida\Documents\GitHub\pyHFO\src\ui\annotation_plot.py", line 91, in plot unfiltered_eeg_data_to_display_one = unfiltered_eeg_data[self.channel_names == channel_name,:][0] IndexError Thank you very much for your help! |
Has this been fixed already? |
Hi, when I run MNI with a default setting in windows ver. pyHFO in my SEEG files, I get the following errors.
Do you think anyone could fix this?
Thank you very much for your consideration.
Loading recording: C:/Users/ADaida/Box/ADaida@mednet.ucla.edu/atsuro_spindle/data/Th_proj_Pt1_spindle.edf
100%|##########| 79.0/79.0 [00:04<00:00, 18.8it/s]
100%|##########| 79.0/79.0 [00:30<00:00, 2.55it/s]
100%|##########| 79.0/79.0 [00:04<00:00, 19.3it/s]
Filtering COMPLETE!
Detecting HFOs...
Traceback (most recent call last):
File "src\utils\utils_gui.py", line 63, in run result = self.fn(*self.args, **self.kwargs)
File "main.py", line 583, in _detect
File "src\hfo_app.py", line 247, in detect_HFO self.channel_names, self.HFOs = self.detector.detect_multi_channels(self.filter_data, self.channel_names, filtered=True)
File "HFODetector\mni.py", line 119, in detect_multi_channels
File "HFODetector\utils.py", line 31, in parallel_process
File "HFODetector\utils.py", line 31, in
File "HFODetector\mni.py", line 157, in detect
File "HFODetector\mni.py", line 248, in _compute_thrd
ValueError: baseline_window contain only 0 and 1
The text was updated successfully, but these errors were encountered: