SecondaryGroupsLC¶
- class SecondaryGroupsLC(dll: SofDll)¶
Bases:
objectThis class provides methods and a data structure to:
access secondary groups info in 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_NAME"group nameLOAD_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.
This is a deliberate design choice and may be changed in the future without breaking the existing API.
- active_groups(load_case: int) list[str]¶
For the given
load_case, return the list of active secondary groups.- Parameters:
load_case (int) – The load_case number
- Raises:
RuntimeError – If the given
load_caseis not loaded.
- get_data(deep: bool = True) DataFrame¶
Return the
pandas.DataFramecontaining the loaded key11/0.- 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).