Skip to content
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

Add dataframe conversions to flascdataframe #211

Merged
merged 3 commits into from
Sep 11, 2024

Conversation

paulf81
Copy link
Collaborator

@paulf81 paulf81 commented Sep 5, 2024

Add dataframe conversions to flascdataframe

This pull request adds in the conversions from flasc format to user format, and relavent testing.

Converts from flasc format to supported wide and long user formats and adds additional tests.

Remaining question: Do we want any dedicated documentation of these conversions?

@paulf81 paulf81 self-assigned this Sep 5, 2024
@paulf81
Copy link
Collaborator Author

paulf81 commented Sep 9, 2024

@misi9170 I think I've implemented this all now according to the scheme we laid out and would now like your review. Note that I did switch back to requiring the long_column_names as being the means by which the user format is determined.

@paulf81
Copy link
Collaborator Author

paulf81 commented Sep 10, 2024

@misi9170 , a medium-sized update this afternoon, I realized I wasn't testing the cases where the channel_map doesn't specifically denote how to change each channel, added those tests and fixed the bugs they revealed

@paulf81 paulf81 marked this pull request as ready for review September 11, 2024 16:37
@paulf81 paulf81 merged commit ff8e962 into NREL:flasc-dataframe Sep 11, 2024
3 checks passed
@paulf81 paulf81 deleted the feature/df_conversions branch September 11, 2024 16:37
misi9170 added a commit that referenced this pull request Oct 17, 2024
* 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]>
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.

1 participant