예제 #1
0
파일: grid.py 프로젝트: iceseismic/odl
 def __str__(self):
     """g.__str__() <==> str(g)."""
     grid_str = ' x '.join(array1d_str(vec) for vec in self.coord_vectors)
     if self.as_midp:
         return 'midp grid {}'.format(grid_str)
     else:
         return 'grid {}'.format(grid_str)
예제 #2
0
파일: base_ntuples.py 프로젝트: wjp/odl
 def __str__(self):
     """Return ``str(self)``."""
     return array1d_str(self)
예제 #3
0
파일: base_ntuples.py 프로젝트: rajmund/odl
 def __str__(self):
     """Return ``str(self)``."""
     return array1d_str(self)
예제 #4
0
 def __str__(self):
     """``vec.__str__() <==> str(vec)``."""
     return array1d_str(self)
예제 #5
0
파일: grid.py 프로젝트: NikEfth/odl
 def __str__(self):
     """Return ``str(self)``."""
     grid_str = ' x '.join(array1d_str(vec) for vec in self.coord_vectors)
     return 'grid ' + grid_str
예제 #6
0
파일: grid.py 프로젝트: rajmund/odl
 def __str__(self):
     """Return ``str(self)``."""
     grid_str = ' x '.join(array1d_str(vec) for vec in self.coord_vectors)
     return 'grid ' + grid_str