dragonyanglong / diffpy.pdfgui

graphical user interface for real space structure refinement to PDF
Other
0 stars 0 forks source link

nometa cannot apply on fitting.py structure #8

Open dragonyanglong opened 6 years ago

dragonyanglong commented 6 years ago

In calculation.py, nometa(self.owner.strucs[0]) works as Pavol shows in #1

But in fitting.py, nometa(self.strucs[0]) doesn't work. show error:

Exception in thread Thread-3:
Traceback (most recent call last):
  File "/Users/Dragon/anaconda/envs/pdfgui2/lib/python2.7/threading.py", line 801, in __bootstrap_inner
    self.run()
  File "diffpy/pdfgui/control/fitting.py", line 94, in run
    self.fitting.run()
  File "diffpy/pdfgui/control/fitting.py", line 421, in run
    self.configure()
  File "diffpy/pdfgui/control/fitting.py", line 352, in configure
    self.cmiserver.addStructure("test",nometa(self.strucs[0]))
  File "/Users/Dragon/anaconda/envs/pdfgui2/lib/python2.7/site-packages/diffpy.srfit-1.3-py2.7.egg/diffpy/srfit/pdf/pdfcontribution.py", line 190, in addStructure
    gen.setStructure(stru, "phase", periodic)
  File "/Users/Dragon/anaconda/envs/pdfgui2/lib/python2.7/site-packages/diffpy.srfit-1.3-py2.7.egg/diffpy/srfit/pdf/basepdfgenerator.py", line 219, in setStructure
    parset = struToParameterSet(name, stru)
  File "/Users/Dragon/anaconda/envs/pdfgui2/lib/python2.7/site-packages/diffpy.srfit-1.3-py2.7.egg/diffpy/srfit/structure/__init__.py", line 49, in struToParameterSet
    raise TypeError("Unadaptable structure format")
TypeError: Unadaptable structure format