replication Module

Defines various utilities for replicated BDF parsing including:
  • to_fields
pyNastran.bdf.bdf_interface.replication._field(old_card, ifield)[source]

helper for replication

pyNastran.bdf.bdf_interface.replication.float_replication(field, old_field)[source]

*4., *(11.5)

pyNastran.bdf.bdf_interface.replication.get_nrepeats(field, old_card, new_card)[source]

=4, =(11)

pyNastran.bdf.bdf_interface.replication.int_replication(field, old_field)[source]

*4, *(11)

pyNastran.bdf.bdf_interface.replication.repeat_cards(old_card, new_card)[source]

helper for replication

pyNastran.bdf.bdf_interface.replication.to_fields_replication(card_lines)[source]

Converts a series of lines in a card into string versions of the field. Handles large, small, and CSV formatted cards. Same as to_fields, but uses a different method to determine if it’s large or small field format.

Parameters:
lines : List[str]

the lines of the BDF card object

Returns:
fields : List[str]

the string formatted fields of the card

Warning

this function is used by the reader and isn’t intended to be called by a separate process