Changeset 506


Ignore:
Timestamp:
Mar 1, 2012 11:11:50 AM (10 years ago)
Author:
vondreele
Message:

implement Hester's fix to windows file names
still fails in interpretation of cif file

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/G2importphase_CIF.py

    r484 r506  
    1313import GSASIIlattice as G2lat
    1414import CifFile as cif # PyCifRW from James Hester
     15import urllib
    1516
    1617class CIFPhaseReader(G2IO.ImportPhase):
     
    7172#### end development code
    7273            self.ShowBusy() # this can take a while
    73             cf = cif.ReadCif(filename)
     74            ciffile = 'file:'+urllib.pathname2url(filename)
     75            cf = cif.ReadCif(ciffile)
     76            print cf
    7477            # scan blocks for structural info
    7578            str_blklist = []
Note: See TracChangeset for help on using the changeset viewer.