Ignore:
Timestamp:
Oct 2, 2013 9:27:17 AM (8 years ago)
Author:
toby
Message:

more CIF work

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/imports/G2pwd_CIF.py

    r1069 r1074  
    1414import GSASIIIO as G2IO
    1515import CifFile as cif # PyCifRW from James Hester
    16 import urllib
    1716import GSASIIpath
    1817GSASIIpath.SetVersionNumber("$Revision: 810 $")
     
    10099            if cf is None:
    101100                self.ShowBusy() # this can take a while
    102                 ciffile = 'file:'+urllib.pathname2url(filename)
    103                 #cf = cif.ReadCif(ciffile)
    104                 fp = open(ciffile,'r')             # patch: open file to avoid windows bug
    105                 cf = cif.ReadCif(fp)
    106                 fp.close()
     101                cf = G2IO.ReadCIF(filename)
    107102                self.DoneBusy()
    108103        except Exception as detail:
Note: See TracChangeset for help on using the changeset viewer.