Skip to content

Conversation

@ondras12345
Copy link
Contributor

This PR tries to improve the docstrings of some of ModelicaSystem's methods.
The new docstrings follow the Google Style Docstring format (I hope).

Currently I don't have time to do this for all methods.
Also, I have encountered some questions that should be answered before docstrings for the other methods are written: #260.

It does not work, and its name is inconsistent with the rest of the API
(note the lowercase l).
I can't even tell what it was supposed to do.

This closes OpenModelica#248
Copy link
Member

@adeas31 adeas31 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Currently I don't have time to do this for all methods.
Also, I have encountered some questions that should be answered before docstrings for the other methods are written: #260.

Lets just push this in for now. We can improve the docstrings of other methods later on.

@adeas31 adeas31 merged commit e858549 into OpenModelica:master Apr 28, 2025
5 checks passed
@syntron
Copy link
Contributor

syntron commented Apr 28, 2025

@adeas31 any prefered docstyle to use?

@ondras12345 which docstring style did you use - it is not my default one (Numpy) ;-)

@ondras12345
Copy link
Contributor Author

Google-style docstrings, as stated in the description of this PR. However, I don't feel strongly about it. You can change it to numpy-style if you think it's better.

@syntron
Copy link
Contributor

syntron commented Apr 29, 2025

@ondras12345 sorry, this was so clear at the top that I missed it; I will have to check this style as I'm not familiar with it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants