Skip to content

Error when trying to read HEKA .dat file #27

@LouisonPineau

Description

@LouisonPineau

Hello,
I'm trying to use the HEKA and NWB APIs to convert some HEKA dat files to NWB but when I try to read a HEKA file using:

from patchview.HekaIO.HekaHelpers import HekaBundleInfo

bundleTester = HekaBundleInfo('U:/.../... .dat')

traceIndex = [0,0,0,0] ## [Group, Series, Sweep, Trace]
bundleTester.getSeriesSamplingRate(traceIndex)

time, stim, stimInfo = bundleTester.getStim(traceIndex)

data = bundleTester.getSingleTraceData(traceIndex)

I get this error:

---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
Cell In[1], line 2
      1 ## import HekaHelpers which is a wrapper of main file: HEKA_Reader_MAIN
----> 2 from patchview.HekaIO.HekaHelpers import HekaBundleInfo
      4 ## read Heka .dat file into a object
      5 # test file is the full path for your Heka .dat file
      6 bundleTester = HekaBundleInfo('U:/Data_patch/5HT_experiments/Paired_pulse/18-02-2025/Username_2026-02-18_007.dat')

File [~\AppData\Local\anaconda3\Lib\site-packages\patchview\__init__.py:1](http://localhost:8888/lab/tree/Patch_analysis/Analysis%20Code/~/AppData/Local/anaconda3/Lib/site-packages/patchview/__init__.py#line=0)
----> 1 from . import patchview
      2 from PyQt5 import QtWidgets
      3 import sys

File [~\AppData\Local\anaconda3\Lib\site-packages\patchview\patchview.py:40](http://localhost:8888/lab/tree/Patch_analysis/Analysis%20Code/~/AppData/Local/anaconda3/Lib/site-packages/patchview/patchview.py#line=39)
     33 from patchview.utilitis.AnalysisMethods import (
     34     loadYAML,
     35     filterDatSeries,
     36     calculateConnectionTraces,
     37     cleanASCfile,
     38 )
     39 from patchview.utilitis import fitFuncs
---> 40 from patchview.utilitis.patchviewObjects import *
     41 import networkx as nx
     43 ## reading neuroluscida file

File [~\AppData\Local\anaconda3\Lib\site-packages\patchview\utilitis\patchviewObjects.py:42](http://localhost:8888/lab/tree/Patch_analysis/Analysis%20Code/~/AppData/Local/anaconda3/Lib/site-packages/patchview/utilitis/patchviewObjects.py#line=41)
     38         # set root
     39         self.setRootPath(root_path)
---> 42 class sliceSelectionDialog(QtGui.QWidget):
     43     def __init__(self, parent=None, items=None):
     44         super(sliceSelectionDialog, self).__init__(parent)

AttributeError: module 'pyqtgraph.Qt.QtGui' has no attribute 'QWidget'

I have pyqt 5.15.11 , pyqtwebengine 5.15.7 and PyQt5_sip 12.17.0 installed in my venv. Do you have an idea where this might come from ?

Thanks in advance !

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions