#NEWLINE# @ classmethod #NEWLINE# def from_desc( cls , offset , shape , strides , itemsize ) : #NEWLINE# #INDENT# dims = [ ] #NEWLINE# for ( ashape , astride ) in zip ( shape , strides ) : #NEWLINE# #INDENT# dim = Dim ( offset , ( offset + ( ashape * astride ) ) , ashape , astride , single = False ) #NEWLINE# dims . append ( dim ) #NEWLINE# #UNINDENT# return cls ( dims , itemsize )