PSFCPlasmaTools / eqtools

Python tools for magnetic equilibria in tokamak plasmas
GNU General Public License v3.0
31 stars 11 forks source link

Latest MDSplus releases once again changed how to import TreeException #6

Closed tfredian closed 6 years ago

tfredian commented 7 years ago

The exception packaging in MDSplus has been refactored again so the code to import TreeException will need to be altered slightly. I would recommend the following import attempts used in several of the modules:

... try: import MDSplus try: from MDSplus.mdsExceptions import _TreeException as TreeException except: try: from MDSplus.mdsExceptions.treeshrExceptions import TreeException except: from MDSplus._treeshr import TreeException _has_MDS = True except Exception as _e_MDS: ...

tfredian commented 6 years ago

This problem is in profiletools not eqtools. Sorry.