Skip to content

Commit

Permalink
docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
chrizzFTD committed Mar 20, 2021
1 parent db0ecb9 commit 238ef84
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions grill/names/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def _table_from_id(id_mapping):


class DefaultName(naming.Name):
""" Inherited by: :class:`grill.names.CGAsset` :class:`grill.names.DateTimeFile`
""" Inherited by: :class:`grill.names.CGAsset`
Base class for any Name object that wishes to provide `default` functionality via
the `get_default` method.
Expand All @@ -57,6 +57,14 @@ def get_default(cls, **kwargs) -> DefaultName:


class DefaultFile(DefaultName, naming.File):
""" Inherited by: :class:`grill.names.DateTimeFile`
Similar to :class:`grill.names.DefaultName`, provides File Name objects default
creation via the `get_default` method.
Adds an extra `DEFAULT_SUFFIX='ext'` member that will be used when creating objects.
"""

DEFAULT_SUFFIX = 'ext'

@property
Expand Down Expand Up @@ -210,9 +218,8 @@ def get_path_pattern_list(self) -> typing.List[str]:


class LifeTR(naming.Name):
"""Taxonomic Rank used for biological classification.
"""Taxonomic Rank used for biological classification."""

"""
config = {k: v['pattern'] for k, v in ids.LifeTR.items()}
__doc__ += '\n' + _table_from_id(ids.LifeTR) + '\n'

Expand Down

0 comments on commit 238ef84

Please sign in to comment.