Skip to content

Make a usage example in the docstring #73

@cmp0xff

Description

@cmp0xff

I think it is a bit easier for our future selves if we have have a usage example in the docstring.
Something like

To use this generator,
```python
params = {"omega": omega}
ho = SimpleHarmonicOscillator(params=params)
df = ho(n_periods=1, n_samples_per_period=10)
```
`df` will be a pandas dataframe with two columns: `t` and `x`.

Ursprünglich gepostet von @emptymalei in #58 (comment)

Metadata

Metadata

Assignees

Labels

documentationImprovements or additions to documentation

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions