Giter VIP home page Giter VIP logo

Comments (3)

pauliacomi avatar pauliacomi commented on June 24, 2024

Dear Libin,

I realised that this was an example which relied on an older version of the code.
To make it work you can do the following, the difference is subtle:

model = pgm.get_isotherm_model(
    'Langmuir',
    parameters={
        "K": 20,
        "n_m": 2
    },
    pressure_range=(0.01, 2),
)
model_iso = pg.ModelIsotherm(
    material='carbon',
    adsorbate='N2',
    temperature=77,
    model=model,
)
model_iso.plot()

Also I believe very recently jupyter changed its default matplotlib behaviour. You can add

%matplotlib inline

at the top to make python clear graphs after every cell.
Let me know if it works for you.

I will correct the example in the next few days. Thank you for bringing it to my attention.

Best,
Paul

from pygaps.

libinnever avatar libinnever commented on June 24, 2024

Hi Paul,
It works fine following your instructions.

Many thanks,
Libin

from pygaps.

pauliacomi avatar pauliacomi commented on June 24, 2024

Fixed in d2e6275

Closing this now, let me know if there's anything else I can help with.

Best,
Paul

from pygaps.

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.