Skip to content

Conversation

@uvchik
Copy link
Member

@uvchik uvchik commented Feb 13, 2020

Fixes #88

@uvchik uvchik force-pushed the features/revise-python-script-examples branch from 836f8a8 to ca2f427 Compare February 13, 2020 16:48
@uvchik uvchik requested review from a team and SabineHaas and removed request for SabineHaas February 13, 2020 16:56
@uvchik uvchik self-assigned this Feb 13, 2020
@uvchik uvchik added this to the v0.2.1 milestone Feb 13, 2020
@lgtm-com
Copy link

lgtm-com bot commented Feb 13, 2020

This pull request introduces 3 alerts and fixes 2 when merging c058db5 into 4b7a082 - view on LGTM.com

new alerts:

  • 2 for Wrong number of arguments in a call
  • 1 for Mismatch in multiple assignment

fixed alerts:

  • 1 for Comparison using is when operands support __eq__
  • 1 for Unused import

@lgtm-com
Copy link

lgtm-com bot commented Feb 13, 2020

This pull request fixes 2 alerts when merging d5614d5 into 4b7a082 - view on LGTM.com

fixed alerts:

  • 1 for Comparison using is when operands support __eq__
  • 1 for Unused import

@uvchik uvchik linked an issue Feb 14, 2020 that may be closed by this pull request
@birgits
Copy link
Member

birgits commented Feb 17, 2020

Thanks for this PR @uvchik. I like that the weather data is automatically downloaded now! If I understood it correctly though, the dummy csv files containing power and power coefficient curves still need to be downloaded manually, right? I think it's fine for now as it is my task to get rid of them altogether (see #73). But I would wait with moving the examples to the oemof examples repository until I did this. Besides that I don't have any other comments.

@uvchik
Copy link
Member Author

uvchik commented Feb 21, 2020

I removed the dummy turbine in the example at oemof-examples, so in that example only the weather data is needed.

I could the remove the dummy turbine in the internal example as well but I was not sure whether or not people might be interested in this use case.

@birgits
Copy link
Member

birgits commented Feb 21, 2020

Mmh, I'm undecided... It might be useful to show people how they can provide their own turbine library file. So I guess I'm leaning more towards leaving the dummy turbine file.

@SabineHaas
Copy link
Member

Oh the other hand, the oedb file already shows the structure such a file must have.
What about adding a line in the example saying something like

"You can load your own power (coefficient) curve data from a file structured like link_to_oedb_files".

I'd be fine with both removing and keeping the files.

@uvchik
Copy link
Member Author

uvchik commented Feb 24, 2020

I tend to remove the dummy turbine.

If people convert their data to the windpowerlib format they should send it to us, so that we can add it to the oedb and the windpowerlib. In that case the data will be available for everyone.

If people have their data in a different format they can use the way we show with the my_turbine example.

@lgtm-com
Copy link

lgtm-com bot commented Feb 24, 2020

This pull request fixes 3 alerts when merging a8b43f4 into 89ca403 - view on LGTM.com

fixed alerts:

  • 1 for Module imports itself
  • 1 for Comparison using is when operands support __eq__
  • 1 for Unused import

@lgtm-com
Copy link

lgtm-com bot commented Feb 24, 2020

This pull request fixes 3 alerts when merging 31ef550 into 89ca403 - view on LGTM.com

fixed alerts:

  • 1 for Module imports itself
  • 1 for Comparison using is when operands support __eq__
  • 1 for Unused import

…ind-python/windpowerlib into features/revise-python-script-examples
@uvchik
Copy link
Member Author

uvchik commented Feb 24, 2020

I added another variant to create a my_turbine. I think it is much better to show users how to add their own data in the windpowerlib structure than to make them creating special csv-files.

So, I would remove the dummy data and improve the examples on how to use your own data. Have a look at the new example script to see what I mean. I could remove all csv files but the notebooks would not work anymore.

@lgtm-com
Copy link

lgtm-com bot commented Feb 24, 2020

This pull request fixes 3 alerts when merging 025dc89 into 89ca403 - view on LGTM.com

fixed alerts:

  • 1 for Module imports itself
  • 1 for Comparison using is when operands support __eq__
  • 1 for Unused import

@lgtm-com
Copy link

lgtm-com bot commented Feb 26, 2020

This pull request fixes 3 alerts when merging 8147e5c into 89ca403 - view on LGTM.com

fixed alerts:

  • 1 for Module imports itself
  • 1 for Comparison using is when operands support __eq__
  • 1 for Unused import

@uvchik
Copy link
Member Author

uvchik commented Feb 27, 2020

I added information about how to integrate your own data to getting started/README.

I think this is enough and easier to handle constructing a special csv-file as suggested in the dummy_turbine example. Therefore, I vote for removing it from the examples.

https://github.com/wind-python/windpowerlib/tree/features/revise-python-script-examples#wind-turbine-data

@uvchik
Copy link
Member Author

uvchik commented Mar 6, 2020

Any comments?

If you like the idea we could remove the "dummy_turbine" from the notebooks as well and remove the csv-files.

There are some typos in the README. We should fix them in case we do agree in the basic idea.

@Ludee
Copy link
Collaborator

Ludee commented Mar 9, 2020

I'm not sure if I understand it right, but from the data management perspective, I would recommend to keep the data template files.

@uvchik
Copy link
Member Author

uvchik commented Mar 9, 2020

In my opinion these files are not meant as templates but as example files. Otherwise I would not hide them in windpowerlib/example/data/power_coefficient_curves.csv.

I do not see the sense of template files there, except in the context of "How to send your own turbine data to the oedb". But this should be placed elsewhere not in the examples.

@lgtm-com
Copy link

lgtm-com bot commented Mar 10, 2020

This pull request fixes 3 alerts when merging 103880f into 89ca403 - view on LGTM.com

fixed alerts:

  • 1 for Module imports itself
  • 1 for Comparison using is when operands support __eq__
  • 1 for Unused import

@lgtm-com
Copy link

lgtm-com bot commented Mar 10, 2020

This pull request introduces 1 alert and fixes 2 when merging 3628279 into 89ca403 - view on LGTM.com

new alerts:

  • 1 for Module imports itself

fixed alerts:

  • 1 for Comparison using is when operands support __eq__
  • 1 for Unused import

@uvchik
Copy link
Member Author

uvchik commented Apr 6, 2020

Okay, it seems that there are no objections.

@birgits Will you integrate the changes in the Notebooks?

@uvchik uvchik merged commit 3ef8b2b into dev Apr 6, 2020
@uvchik uvchik deleted the features/revise-python-script-examples branch April 28, 2020 11:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Revise py-script examples and copy to oemof-examples Move examples to the oemof_examples repo

6 participants