-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change how we compute cell capacity and energy (#50)
* Add a very simple example file * Add a cycle starting from charge and starting from discharged * Re-implement integrals and tests No more steps * Add schema, fix sign convention * Caught another sign error * Add notebook which explains the feature * Fix capacity and energy integrators (#55) * Switching energy units to W-hr in schema to be consistent with calculations performed by CapacityPerCycle summarizer (#52) Co-authored-by: Victor Venturi <vventuri@Victors-MBP.hsd1.il.comcast.net> * Changing to_batdata_hdf method Previously, it seemed that the cycle_stats attributed received the raw_data when being saved. This hopefully fixes that. * Add a very simple example file * Add a cycle starting from charge and starting from discharged * Re-implement integrals and tests No more steps * Add schema, fix sign convention * Add notebook which explains the feature * Caught another sign error * Removing trailing white spaces from commented out lines * Removing previous way of saving data from comments * Removing trailing white space from new way of saving data * Fixes on how capacity integrator works 1. Switched from cumulative_simpson to cumtrapz, which is more stable for the "erratic" battery data we usually deal with 2. Implemented correct convention for figuring out if the cycle starts in a charged or discharged state --------- Co-authored-by: Victor Venturi <vventuri@Victors-MBP.hsd1.il.comcast.net> Co-authored-by: Logan Ward <ward.logan.t@gmail.com> Co-authored-by: Logan Ward <WardLT@users.noreply.github.com> * Flake8 fixes * Flip sign convention in extractors, test data * Fix the charge capacity unit test * Add test case with complex cycling * Save capacity in W-hr * Add a complex cycle example * Test against XCEL dataset Works when I assume XCEL has mis-label time as seconds instead of minutes * Reflect that we added another cycle * Correct time column in test data * Swap order in names so sorting is better * Reuse integrals if available * Clarify a point reviewer thought was confusing --------- Co-authored-by: Victor Venturi <50371281+victorventuri@users.noreply.github.com> Co-authored-by: Victor Venturi <vventuri@Victors-MBP.hsd1.il.comcast.net>
- Loading branch information
1 parent
83aeb00
commit c7f9f99
Showing
17 changed files
with
3,498 additions
and
2,230 deletions.
There are no files selected for viewing
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
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
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
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
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
Large diffs are not rendered by default.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Oops, something went wrong.