Skip to content

Commit

Permalink
Rename internal arguments in Dataset.
Browse files Browse the repository at this point in the history
  • Loading branch information
riga committed Jul 6, 2023
1 parent 30c5fcf commit 2af09bc
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions order/dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -269,19 +269,19 @@ def info(self, info):

return _info

def set_info(self, shift_name, info):
def set_info(self, name, info):
"""
Sets an :py:class:`DatasetInfo` object *info* for a given *shift_name*. Returns the object.
Sets an :py:class:`DatasetInfo` object *info* for a given *name*. Returns the object.
"""
shift_name, info = list(self.__class__.info.fparse(self, {shift_name: info}).items())[0]
self.info[shift_name] = info
name, info = list(self.__class__.info.fparse(self, {name: info}).items())[0]
self.info[name] = info
return info

def get_info(self, shift_name):
def get_info(self, name):
"""
Returns the :py:class:`DatasetInfo` object for a given *shift_name*.
Returns the :py:class:`DatasetInfo` object for a given *name*.
"""
return self.info[shift_name]
return self.info[name]

@property
def keys(self):
Expand Down

0 comments on commit 2af09bc

Please sign in to comment.