human
What is a the Python code you requested given the following:
I am working on the file "Devel/V05/Frame2D_Output.ipynb".
The first task is:
Node Loads
Can you write Python code for it?
assistant
#Here is the Python code you requested.

@extend
class Frame2D:
    
    def list_node_loads(self):
        ans = []
        dirns = ['FX','FY','FZ']
        for loadid,node,nload in self.nodeloads:
            for i in [0,1,2]:
                if nload[i]:
                    ans.append((loadid,node.id,dirns[i],nload[i]))
        return ans

##test:
f.list_node_loads()

##test:
f.write_table('node_loads','test-1')
%cat test-1.d/node_loads.csv