-
Notifications
You must be signed in to change notification settings - Fork 19
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 FlascDataFrame
for better handling of user data in FLASC
#212
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…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]>
Closed
Add type hints
* 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.
misi9170
approved these changes
Oct 17, 2024
misi9170
changed the title
Flasc dataframe
Add Oct 17, 2024
FlascDataFrame
for better handling of user data in FLASC
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Add FlascDataFrame
This pull request is taking over from #199 to add a new object called a
FlascDataFrame
inherits frompandas.DataFrame
, but will provide some extra utilities for mapping between different naming conventions and dataframe formats ("long" data, "wide" data, etc). Still a work in progress but nearing readiness so opening draft pull request.Feature or improvement description
FlascDataFrame
object that inherits frompandas.DataFrame
but provides extra utilityuser
formats such as long or wide with alternative channel nameswind-up
(https://github.com/resgroup/wind-up) style frame and use importwind-up
modules to conduct uplift analysis using those methodsLeft to do:
FlascDataframe
memberspd.Dataframe
to and/orFlascDataframe
Add test of df_reduce_precision with FlascDataFrame(updateddf_reduce_precision
for use withFlascDataFrame
and it's used in the examples)FlascDataframe
driving energy ratio with polars conversionFlascDataframe
FlascDataframe
to top-level init and chain through codeFlascDataframe
FlascDataframe
andwind-up
Additional notes