Git Product home page Git Product logo

extrempy's Introduction

extrempy

post-processing code for atomistic modeling (at extreme conditions)

Installation


from pip

pip install extrempy

from repository

to install the extrempy package directly from the repository, clone it from GitHub and use pip to install it:

git clone https://github.com/mingzhong15/extrempy.git
cd extrempy
pip install .

Simple Guide


visuallization of dataset

from extrempy.dataset import SetSys

fig, ax1 = plt.subplots(figsize=(3,2),dpi=200)

ss = SetSys( SET_DIR, is_printf=False )
ss._read_thermo()

ax.plot( ss.pres, ss.temp, 'o', ms=3, mew=0.2, color='#1f77b4',alpha=0.6, mfc='none')

visuallization of data sampling

we can use sys._plot_model_devi to visuallize model deviation for different iterations

from extrempy.dpsample import SampleSys

for case_idx in case_list:

  fig, ax = plt.subplots(figsize=(3,1),dpi=200)

  for iter_idx in [0]:
      
      print("Iter.%.3d Case.%.3d"%(iter_idx, case_idx))

      for sys_idx in [0]:
          sys._plot_model_devi(ax, iter_idx = iter_idx, sys_idx = sys_idx, case_idx = case_idx)

we can use sys._plot_all_sampling to visuallize data sampling in (p,T) space

sys = SampleSys(DIR, printf=False)  

fig, ax = plt.subplots(figsize=(5,3),dpi=200)

color_list = ['coral','crimson','firebrick']

sys._plot_all_sampling(ax, color = color_list)

we can collect the sampled data from each iterations (containing fparam.npy, aparam.npy)

sys = SampleSys(DIR)
sys._collect_data(OUT_DIR, exe_path='/personal/raw_to_set.sh')

extrempy's People

Contributors

mingzhong15 avatar

Watchers

 avatar

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.