Skip to content

Commit

Permalink
grids: Add a method to set axes names.
Browse files Browse the repository at this point in the history
Workaround for amusecode#856.
  • Loading branch information
Sbte committed Jan 31, 2023
1 parent 26b9867 commit e330390
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/amuse/datamodel/grids.py
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,9 @@ def get_axes_names(self):

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

def set_axes_names(self, value):
self.add_vector_attribute('position', value)

class UnstructuredGrid(BaseGrid):
GLOBAL_DERIVED_ATTRIBUTES=CompositeDictionary(BaseGrid.GLOBAL_DERIVED_ATTRIBUTES)
class StructuredBaseGrid(BaseGrid):
Expand Down

0 comments on commit e330390

Please sign in to comment.