Skip to content

Commit

Permalink
Doc improvements (#335)
Browse files Browse the repository at this point in the history
  • Loading branch information
d-chambers authored Jan 4, 2024
1 parent f04289f commit a11438c
Show file tree
Hide file tree
Showing 22 changed files with 344 additions and 146 deletions.
19 changes: 18 additions & 1 deletion dascore/core/attrs.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,24 @@ def _get_dims(data_dict):


class PatchAttrs(DascoreBaseModel):
"""The expected attributes for a Patch."""
"""
The expected attributes for a Patch.
The default attributes are:
```{python}
#| echo: false
import dascore as dc
from IPython.display import Markdown
df_str = (
dc.PatchAttrs.get_summary_df()
.reset_index()
.to_markdown(index=False, stralign="center")
)
Markdown(df_str)
```
"""

model_config = ConfigDict(
title="Patch Summary",
Expand Down
2 changes: 2 additions & 0 deletions dascore/core/patch.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ class Patch:
"""
A Class for managing data and metadata.
See the [patch tutorial](/tutorial/patch.qmd) for examples.
Parameters
----------
data
Expand Down
4 changes: 2 additions & 2 deletions dascore/core/spool.py
Original file line number Diff line number Diff line change
Expand Up @@ -587,9 +587,9 @@ def _load_patch(self, kwargs) -> Self:
@singledispatch
def spool(obj: Path | str | BaseSpool | Sequence[PatchType], **kwargs) -> BaseSpool:
"""
Create a spool from some data source.
Create a spool from a data source.
This function is used to load data from many different sources.
This is the main function for loading in DASCore.
Parameters
----------
Expand Down
Loading

0 comments on commit a11438c

Please sign in to comment.