Skip to content

Navigation Menu

Sign in
Sign up

Add tables to docstrings of plots and test plot functions - #88

Draft
jnnr wants to merge 1 commit into
dev from
feature/document-and-test-plotting
Draft

Add tables to docstrings of plots and test plot functions #88
jnnr wants to merge 1 commit into
dev from
feature/document-and-test-plotting

Conversation

@jnnr

@jnnr jnnr commented Dec 1, 2022
edited
Loading

Copy link
Copy Markdown
Collaborator

This adds tables to the docstrings of plot functions which show what data format the plot expects.
The tables are created from csv files that lie in tests/_files/plot_data. This allows us to use the same data to write tests (can happen later or in this PR).

This will help to better understand and maintain the plotting functions collected here. More of oemof-B3s plotting can relocate here and be re-used (and ultimately send to oemof.tabular).

jnnr commented Dec 1, 2022

Copy link
Copy Markdown
Collaborator Author

@monika-o or @Stefanie08, can one of you take over this PR and do the following for each of the function which has been given a table:

  • Find out how the DataFrame which the function expects looks like.
  • Create a small example in tests/_files/plot_data and name it input_<name-of-the-function>
  • Update the link in the docstring of the function to point to the file you created.

It may be that most of the functions expect data of the same form. In that case, do not create a csv for each function, but only one. You can choose a more general name for the csv in that case.

@jnnr jnnr added this to the v0.0.2 milestone Dec 1, 2022
@jnnr jnnr added the documentation Improvements or additions to documentation label Dec 1, 2022
jnnr marked this pull request as draft February 16, 2023 15:41
@jnnr jnnr removed this from the v0.0.2 milestone Feb 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

documentation Improvements or additions to documentation

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

AltStyle によって変換されたページ (->オリジナル) /