@property
def fmt_string(self):
    'Returns a C-style fmt string for numpy savetxt that corresponds to\n        the dtype'
    if (self.list_free_format is not None):
        use_free = self.list_free_format
    else:
        use_free = True
        if self.package.parent.has_package('bas6'):
            use_free = self.package.parent.bas6.ifrefm
        if ('mt3d' in self.package.parent.version.lower()):
            use_free = False
    fmts = []
    for field in self.dtype.descr:
        vtype = field[1][1].lower()
        if (vtype in ('i', 'b')):
            if use_free:
                fmts.append('%9d')
            else:
                fmts.append('%10d')
        elif (vtype == 'f'):
            if use_free:
                if numpy114:
                    fmts.append('%15s')
                else:
                    fmts.append('%15.7E')
            else:
                fmts.append('%10G')
        elif (vtype == 'o'):
            if use_free:
                fmts.append('%9s')
            else:
                fmts.append('%10s')
        elif (vtype == 's'):
            msg = "MfList.fmt_string error: 'str' type found in dtype. This gives unpredictable results when recarray to file - change to 'object' type"
            raise TypeError(msg)
        else:
            raise TypeError('MfList.fmt_string error: unknown vtype in field: {}'.format(field))
    if use_free:
        fmt_string = (' ' + ' '.join(fmts))
    else:
        fmt_string = ''.join(fmts)
    return fmt_string
Returns a C-style fmt string for numpy savetxt that corresponds to
the dtype
@property
def fmt_string(self):
    'Returns a C-style fmt string for numpy savetxt that corresponds to\n        the dtype'
    if (self.list_free_format is not None):
        use_free = self.list_free_format
    else:
        use_free = True
        if self.package.parent.has_package('bas6'):
            use_free = self.package.parent.bas6.ifrefm
        if ('mt3d' in self.package.parent.version.lower()):
            use_free = False
    fmts = []
    for field in self.dtype.descr:
        vtype = field[1][1].lower()
        if (vtype in ('i', 'b')):
            if use_free:
                fmts.append('%9d')
            else:
                fmts.append('%10d')
        elif (vtype == 'f'):
            if use_free:
                if numpy114:
                    fmts.append('%15s')
                else:
                    fmts.append('%15.7E')
            else:
                fmts.append('%10G')
        elif (vtype == 'o'):
            if use_free:
                fmts.append('%9s')
            else:
                fmts.append('%10s')
        elif (vtype == 's'):
            msg = "MfList.fmt_string error: 'str' type found in dtype. This gives unpredictable results when recarray to file - change to 'object' type"
            raise TypeError(msg)
        else:
            raise TypeError('MfList.fmt_string error: unknown vtype in field: {}'.format(field))
    if use_free:
        fmt_string = (' ' + ' '.join(fmts))
    else:
        fmt_string = .join(fmts)
    return fmt_string