Skip to content

Connects correctly but returns an error #4

@raacampbell

Description

@raacampbell
In [2]: hZP = zpb.bridge()
FAILED TO FIND MATLAB SESSION "zapit"

In [3]: hZP = zpb.bridge()
Attempting MATLAB connection...
Connected!
Exception ignored in: <function bridge.__del__ at 0x0000020381F26CA0>
Traceback (most recent call last):
  File "C:\Users\shopp\anaconda3\lib\site-packages\zapit_python_bridge\bridge.py", line 57, in __del__
    self.release_matlab()
  File "C:\Users\shopp\anaconda3\lib\site-packages\zapit_python_bridge\bridge.py", line 62, in release_matlab
    self.eng.workspace["hZP"]  # Fails if we have already quit
AttributeError: 'bridge' object has no attribute 'eng'

In [4]: hZP.num_stim_cond()
Out[4]: 5.0

In [5]:

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions