Skip to content

Commit f4ccd44

Browse files
committed
grids: Add a method to set axes names.
Workaround for #856.
1 parent cbec986 commit f4ccd44

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/amuse/datamodel/grids.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -268,6 +268,9 @@ def get_axes_names(self):
268268

269269
raise Exception("do not know how to find axes_names")
270270

271+
def set_axes_names(self, value):
272+
self.add_vector_attribute('position', value)
273+
271274
class UnstructuredGrid(BaseGrid):
272275
GLOBAL_DERIVED_ATTRIBUTES=CompositeDictionary(BaseGrid.GLOBAL_DERIVED_ATTRIBUTES)
273276
class StructuredBaseGrid(BaseGrid):

0 commit comments

Comments
 (0)