-
Notifications
You must be signed in to change notification settings - Fork 24
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
Feature/add docstrings #197
Conversation
@misi9170 , this all grew a a bit as I got going and what small cheat I did was to add a few files that I wasn't sure we are keeping long term to the excluded list of docstring checks in pyproject.toml, but I think it's basically ready for review |
Ok @misi9170 I made some final corrections think this now ready for review |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@paulf81 here's a laundry list of little things to consider...
@@ -226,7 +220,6 @@ def add_wd_bin( | |||
Returns: | |||
pl.DataFrame: A new Polars DataFrame with an additional ws_bin column |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Indent?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes
Thank you for these comments @misi9170 , I've tried to make all revisions but seems likely things could still be a little messy in places. I did find that the the saying a function returns a Tuple is the preferred google style so tried to update that everywhere. |
@paulf81 Thanks. My feeling here is that we shouldn't necessarily aim for perfection with this PR, so I'm going to approve it. Thanks for looking into the recommended style for the list of As it stands, we have a mix of both of these styles for the |
…199) * Adding at the root level for now; could consider moving to utilities/ * Ruff. * precommit stuff. * Add example notebook * Add wide to long * Add test * Update README.md engagement * Update README.md replacing 'FLORIS' typo * Feature/add docstrings (#197) * Update to 15 (#202) * Update for PyPI installation. (#204) * Update version number; ignore version.py for ruff. * Adhere to FLASC formatting rules. * psuedocode for conversions. Tests for saving dataframe to file. * Print warning when to_feather used. * String formatting. * Add several more tests and n_turbines property. * Adding TODOs for long/wide conversions. * Clean up, a few more tests. * Improved printout. * ruff format. --------- Co-authored-by: Paul <[email protected]> Co-authored-by: christiannvaughn <[email protected]>
* Add new `FlascDataFrame` object to enhance user interface with data (#199) * Adding at the root level for now; could consider moving to utilities/ * Ruff. * precommit stuff. * Add example notebook * Add wide to long * Add test * Update README.md engagement * Update README.md replacing 'FLORIS' typo * Feature/add docstrings (#197) * Update to 15 (#202) * Update for PyPI installation. (#204) * Update version number; ignore version.py for ruff. * Adhere to FLASC formatting rules. * psuedocode for conversions. Tests for saving dataframe to file. * Print warning when to_feather used. * String formatting. * Add several more tests and n_turbines property. * Adding TODOs for long/wide conversions. * Clean up, a few more tests. * Improved printout. * ruff format. --------- Co-authored-by: Paul <[email protected]> Co-authored-by: christiannvaughn <[email protected]> * Add dataframe conversions to flascdataframe (#211) * Add wind up example using `FlascDataFrame` (#210) * loosen wind-up dependency * Finish FlascDataFrame (Paul) (#215) Add type hints * Finish FlascDataFrame (update examples/docs) (#219) * Merge recent changes. * Update functions to use FlascDataFrames; getter and setter for channel_name_map; metadata copying method. * Smarteole examples now using FlascDataFrame * Add brief demonstration of switch to user data format; rename 09 notebook for clarity. * Update artifical data examples. * Had weird behavior in the getter/setter caused by not providing the true underlying attribute in _metadata. * formatting. * Simplify imports of FlascDataFrame throughout. * Add wind-up to pyproject.toml after setup.py was removed. * Update docs for FlascDataFrame (#220) --------- Co-authored-by: misi9170 <[email protected]> Co-authored-by: christiannvaughn <[email protected]> Co-authored-by: Alex Clerc <[email protected]> Co-authored-by: misi9170 <[email protected]>
Add docstrings, and docstring checks to FLASC
FLASC has functions currently missing docstrings, this is a problem given automatic documentation with sphinx relies on those strings.
Following FLORIS, we use the google style guide (https://google.github.io/styleguide/pyguide.html) but this is not uniformly followed so this PR tries to get higher uniformity
This pull request: