Source code for pyNastran.bdf.field_writer_16

"""
Defines functions for single precision 16 character field writing.
"""
import sys
import warnings
from typing import List, Union, Optional, Any
from numpy import float32, isnan  # type: ignore

from pyNastran.utils.numpy_utils import integer_types
from pyNastran.bdf.cards.utils import wipe_empty_fields
from pyNastran.bdf.field_writer_8 import set_blank_if_default

[docs]def set_string16_blank_if_default(value: Any, default: Any) -> str: """helper method for writing BDFs""" val = set_blank_if_default(value, default) if val is None: return ' ' return '%16s' % val