Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make a usage example in the docstring #73

Open
cmp0xff opened this issue Jul 31, 2024 · 1 comment
Open

Make a usage example in the docstring #73

cmp0xff opened this issue Jul 31, 2024 · 1 comment
Assignees
Labels
documentation Improvements or additions to documentation

Comments

@cmp0xff
Copy link
Collaborator

cmp0xff commented Jul 31, 2024

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)

@cmp0xff cmp0xff self-assigned this Jul 31, 2024
@cmp0xff cmp0xff added the documentation Improvements or additions to documentation label Sep 3, 2024
@cmp0xff
Copy link
Collaborator Author

cmp0xff commented Sep 16, 2024

I think the docstrings of the classes are too long.

Unfortunately I did not find a documentation for how the syntaxes are rendered in matplotlib. However we do not need to make things too complicated for us, either.

What do you think @emptymalei ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

1 participant