Changeset 3229 for trunk/exports


Ignore:
Timestamp:
Jan 17, 2018 8:53:06 AM (4 years ago)
Author:
vondreele
Message:

fix map export for python 3

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/exports/G2export_map.py

    r3136 r3229  
    1919'''
    2020from __future__ import division, print_function
     21import platform
    2122import os
    2223import GSASIIpath
     
    132133            for i in range(24,53):
    133134                self.Write(0,'i')
    134             for s in ['M','A','P',' ']: self.Write(s,'s')
     135            if '2' in platform.python_version_tuple()[0]:
     136                for s in ['M','A','P',' ']: self.Write(s,'s')
     137            else:
     138                for s in [b'M',b'A',b'P',b' ']: self.Write(s,'c')
    135139            self.Write(0x44410000,'i')
    136140            self.Write(np.std(rho),'f')
Note: See TracChangeset for help on using the changeset viewer.