Comments (8)
Yeah, I definitely think it's doable and a good goal! @dacb would be proud :)
I'll start by setting up pytest so that we aren't including the tests/ directory (should be an easy fix that I've been meaning to do for a while now) and then I can start with the circuits module
from impedance.py.
PR for fixing the coverage calculations is #97
from impedance.py.
Latest coverage report shows:
Name Stmts Miss Cover
-----------------------------------------------------------
impedance/__init__.py 0 0 100%
impedance/models/__init__.py 0 0 100%
impedance/models/circuits/__init__.py 1 0 100%
impedance/models/circuits/circuits.py 193 0 100%
impedance/models/circuits/elements.py 86 0 100%
impedance/models/circuits/fitting.py 126 0 100%
impedance/preprocessing.py 160 10 94%
impedance/validation.py 94 0 100%
impedance/visualization.py 89 0 100%
-----------------------------------------------------------
TOTAL 749 10 99%
Those missing 10 lines are from readAutolab
. When we get our hands on an example data file we can get to 100% coverage!!
from impedance.py.
Awesome! π π
To be fair, I donβt think that readAutolab function is from an actual autolab file. I think itβs from a custom file type that I created for the NLEIS experiments which is basically just a .csv β at first glance readAutolab and readCSV do the exact same thing. So while I think itβd be great to have a readAutolab function built off of a real autolab file, I think it makes sense to just get rid of the function...
from impedance.py.
That's fair, but if you used AutoLab for NLEIS, did you never run regular EIS with it?
from impedance.py.
We always collected the time domain data (which is why there's a custom file type that was generated by the experimental protocol), so I don't know what the "normal" EIS file from Autolab would look like. Seems a little crazy, but I don't think I ever just ran EIS using their default settings (and saved the file)...
from impedance.py.
@vwhu said he'll check for any files later today, but if he can't find anything I'm fine with removing the function and scrubbing it from our docs and JOSS paper draft.
from impedance.py.
@vwhu is a hero and came through with the data file! This coverage report is a beautiful sight!
Name Stmts Miss Cover
-----------------------------------------------------------
impedance/__init__.py 0 0 100%
impedance/models/__init__.py 0 0 100%
impedance/models/circuits/__init__.py 1 0 100%
impedance/models/circuits/circuits.py 193 0 100%
impedance/models/circuits/elements.py 86 0 100%
impedance/models/circuits/fitting.py 126 0 100%
impedance/preprocessing.py 163 0 100%
impedance/validation.py 94 0 100%
impedance/visualization.py 89 0 100%
-----------------------------------------------------------
TOTAL 752 0 100%
from impedance.py.
Related Issues (20)
- [BUG] .append no longer available in pandas > 2.0
- [Element]
- Error in visualization with looping through and fitting multiple data sets HOT 2
- [BUG] Deprecation warnings with Altair v5
- [BUG] Matplotlib warnings when plotting Bode or Nyquist plot HOT 1
- Very confused about fitting HOT 3
- BaseCircuit.predict() won't take float as input
- Confusion with the word "initial_guess" used in CustomCircuit(circuit_string,initial_guess) HOT 1
- Initial_guess HOT 2
- Replace print with proper logging HOT 1
- RC components
- A worked example of .nox Metrohm file reading and pre-processing HOT 3
- high frequency fitting problem HOT 12
- Accuracy of data in .par file about VersaStudio HOT 3
- Ask for help extracting parameter values from fitted circuits HOT 1
- [BUG] error in impedance definition of La-element
- reading data from Excel files
- Circuit Element Unit scalable feature
- Adding Distribution of relaxation times feature HOT 2
- Recommendation for dealing with noisy data?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from impedance.py.