human
I am working on the file "Devel/Old/v04-old/Milestones/Frame2D-v04-Milestone3.ipynb".
The first task is:
Load Combinations
Can you write Python code for it?
 Write me a the Python code you requested?
assistant
#Here is the Python code you requested.

%%Table load_combinations
COMBO,LOAD,FACTOR
One,Live,1.5
One,Wind,1.75

@sl.extend(Frame2D)
class Frame2D:
    
    COLUMNS_load_combinations = ('COMBO','LOAD','FACTOR')
    
    def install_load_combinations(self):
        table = self.get_table('load_combinations')
        for ix,row in table.data.iterrows():
            self.loadcombinations.append(row.COMBO,row.LOAD,row.FACTOR)
        self.rawdata.load_combinations = table

##test:
f.install_load_combinations()

##test:
for o,l,fact in f.loadcombinations.iterloads('One',f.nodeloads):
    print(o.id,l,fact)
for o,l,fact in f.loadcombinations.iterloads('One',f.memberloads):
    print(o.id,l,fact,l.fefs()*fact)