GroupsLC¶
- class GroupsLC(dll: SofDll)¶
Bases:
objectThis class provides methods and a data structure to:
access keys
11/LCof the CDB file;store the retrieved data in a convenient format;
provide access to the data after the CDB is closed.
The underlying data structure is a
pandas.DataFramewith the following columns:GROUP"group numberLOAD_CASE"the load case numberIS_ACTIVE"indicates whether the group is active in the load case
The
DataFrameuses a MultiIndex with levelGROUPandLOAD_CASE(in this specific order) to enable fast lookups via theis_activemethod. The index columns are not dropped from theDataFrame.Note
Not all available quantities are retrieved and stored. In particular:
MNR: material number of the groupMBW: material reinforcement number of the groupIBBandIBD: construction stage numbersMIN_ID,MAX_IDand number of elements.
are currently not included; however,
MIN_ID,MAX_ID, and the number of elements are available in theGroupsclass.This is a deliberate design choice and may be changed in the future without breaking the existing API.
- get_data(deep: bool = True) DataFrame¶
Return the
pandas.DataFramecontaining the loaded keys11/LC.- Parameters:
deep (bool, default True) – When
deep=True, a new object will be created with a copy of the calling object’s data and indices. Modifications to the data or indices of the copy will not be reflected in the original object (refer topandas.DataFrame.copy()documentation for details).