Giter VIP home page Giter VIP logo

autobetsi's Introduction

Development of automatic application of betsi1 to a directory of isotherms (.csv). Hopes to make use of betsi more convenient. Works on Linux, (Rocky Linux 9.1 (Blue Onyx) x86_64) no idea on other systems. I hope it is useful to the adsorption community.

Installation

  • Follow instructions to install betsi-gui in a conda virtual environment.
  • Activate venv.
  • clone this repo.
  • cd into the cloned repo, and do pip install .

Basic use

Running autobetsi from the command line in a directory . runs betsi on the contents of ./csv/. Initial parameters;

Parameter Value
'max_perc_error' 20.0
'min_num_pts' 10
'min_r2' 0.995
'use_rouq1' True
'use_rouq2' True
'use_rouq3' True
'use_rouq4' True
'use_rouq5' False

If an isotherm throws an exception, this typically means that a BET area cannot be found with the current conditions. Any such files are added to a list of exceptions, then reattempted with iteratively reduced 'min_num_points' until a result is achieved.

Finally, for convenience results are tabulated for each analysis present in ./betsi/

You can test it on isotherms in ./autobetsi/csv/. These are copied from betsi-gui.

Advanced

The functions in autobetsi.py can be imported and used in further scripts.

TODO

  • betsi is picky about isotherms. Make cleaning/conversion function. Expand cleaning function!
  • Allow use of tags from commandline.
  • Silence betsi's warnings from seaborn, matplotlib etc.
  • Give up less hard; standard autobetsi to try combinations of iteratively looser parameters instead of just reducing 'min_num_points'. Requires logical progression, and minimum strictness.
  • Threading ???

Footnotes

  1. Osterrieth, Johannes WM, James Rampersad, David Madden, Nakul Rampal, Luka Skoric, Bethany Connolly, Mark D. Allendorf et al. "How reproducible are surface areas calculated from the BET equation?." Advanced Materials (2022): 2201502. โ†ฉ

autobetsi's People

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.