Giter Club home page Giter Club logo

Comments (8)

mdmurbach avatar mdmurbach commented on June 12, 2024 1

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.

mdmurbach avatar mdmurbach commented on June 12, 2024

PR for fixing the coverage calculations is #97

from impedance.py.

BGerwe avatar BGerwe commented on June 12, 2024

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.

mdmurbach avatar mdmurbach commented on June 12, 2024

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.

BGerwe avatar BGerwe commented on June 12, 2024

That's fair, but if you used AutoLab for NLEIS, did you never run regular EIS with it?

from impedance.py.

mdmurbach avatar mdmurbach commented on June 12, 2024

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.

BGerwe avatar BGerwe commented on June 12, 2024

@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.

BGerwe avatar BGerwe commented on June 12, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.