Python viewer will not load any node file

Issue #16 resolved
Robert Welch created an issue

When attempting to load a node file using the FFEA viewer, the following error occurs:

<type 'exceptions.AttributeError'> Exception in Tk callback
  Function: <bound method FFEA_viewer_control_window.choose_ffea_file_to_load of <pmg_tk.startup.pymol_plugin.FFEA_viewer_control_window instance at 0x7f576d9c7a28>> (type: <type 'instancemethod'>)
  Args: ()
Traceback (innermost last):
  File "/usr/lib/python2.6/site-packages/Pmw/Pmw_1_3/lib/PmwBase.py", line 1747, in __call__
    return apply(self.func, args)
  File "/localhome/py12rw/.pymol/startup/pymol_plugin/__init__.py", line 222, in choose_ffea_file_to_load
    self.load_ffea(ffea_fname)
  File "/localhome/py12rw/.pymol/startup/pymol_plugin/__init__.py", line 286, in load_ffea
    new_blob.load(idnum, bindex, cindex, self.script)
  File "/localhome/py12rw/.pymol/startup/pymol_plugin/Blob.py", line 71, in load
    if (not self.node.valid): raise IOError('Something went wrong initialising nodes')
<type 'exceptions.AttributeError'>: FFEA_node instance has no attribute 'valid'

The viewer will not load anything beyond this point. This has occurred for all of the ffea trajectories I've tested, including the ones Katrina made from the tutorial (e.g. ones that are clean of all my script generation problems).

Comments (2)

  1. Robert Welch reporter

    The valid attribute is set in several other FFEA object when they are initially loaded, but not in the node object for some reason. Famous last words: I think this will be an easy fix.

  2. Robert Welch reporter

    Not sure why validation attribute was present in an old version of the modules but not in the current one, it doesn't seem to have any ill effects. I have restored it for the moment. Unfortunately another issue with the viewer has cropped up.

  3. Log in to comment