Comments (4)
Check numpy documentation and pep 257.
from oemof-solph.
There was an open question at the meeting, where to write the docstring of a class. In pep257 I found:
"The docstring for a class should summarize its behavior and list the public methods and instance variables. If the class is intended to be subclassed, and has an additional interface for subclasses, this interface should be listed separately (in the docstring). The class constructor should be documented in the docstring for its init method. Individual methods should be documented by their own docstring."
from oemof-solph.
Searching for numpydoc examples I found examples writing the docstring in the class level instead of in the init method.
Let us use this for future docstrings and change the old ones (if necessary) step by step.
from oemof-solph.
Completed with commit d3375f0.
from oemof-solph.
Related Issues (20)
- Implausible diverging results comparing 1-year-multi-period & multi-period optimization HOT 6
- v0.4.x TypeError on Transformer init with basic example HOT 2
- GenericCHP component example is broken HOT 2
- Allow multiple outputs at OffsetConverter HOT 4
- Results processing should check if optimisation succeeded
- Using `custom_attributes` of `Source` and `Sink` classes fails HOT 1
- Add periodic values to invest relation of generic storage
- Implement alternative back-end to Pyomo (e.g. linopy) HOT 9
- How to define a switching Converter ? HOT 7
- The `OffsetConverter` is broken in the new implementation HOT 4
- The basic_example.py is broken HOT 1
- Aggregate all sorts of tools configurations in `pyproject.toml` HOT 1
- The online documentation could have a more appealing/modern look
- Investment limit AttributeError if storage investment only HOT 1
- Remove cellular model stub HOT 2
- Replace constraint tests HOT 5
- Refine timeindex
- running oemof_installation_test on venv HOT 6
- Formulation of "gradient limit" needs rework
- Compare `master` with `dev` in the bagde "commits since ..." HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from oemof-solph.