Git Product home page Git Product logo

elcorto / pwtools Goto Github PK

View Code? Open in Web Editor NEW
60.0 9.0 11.0 22.11 MB

pwtools is a Python package for pre- and postprocessing of atomistic calculations, mostly targeted to Quantum Espresso, CPMD, CP2K and LAMMPS. It is almost, but not quite, entirely unlike ASE, with some tools extending numpy/scipy. It has a set of powerful parsers and data types for storing calculation data.

Home Page: https://elcorto.github.io/pwtools

License: BSD 3-Clause "New" or "Revised" License

Makefile 0.33% Python 94.96% Shell 1.33% Fortran 3.38%
python sqlite quantum-espresso lammps ase cp2k cpmd postprocessing preprocessing quasi-harmonic-approximation

pwtools's People

Contributors

elcorto avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

pwtools's Issues

Question about reusing dcd code

Hey,

since I could not find any other contact I'll try like this:

I've been using your pwtools a lot for reading the dcd files produced by CP2K. Since it seems you're one of the few to have knowledge about the exact file format used by CP2K I am asking you:

Would you allow me to use your file format information from pwtools/dcd.py to implement a direct reader in ASE and PLAMS?

Your tool has been working fine for me now for a long time, but always skipping between modules creates some problems over time (not taking into account the inefficiency every time I read a dcd file). Since ASE is now a pretty well developed piece that a lot of people use, I would like it to be able to read CP2Ks dcd files natively there. If you're not happy with the licencing of PLAMS I can stick with ASE, that would already be a big help.

Thanks for considering!
Cheers,
Patrick

pip dev install doesn't build extensions

It seems that pip install -e used to build extensions, as discussed in #2. While investigating #4 we find that this is (no longer) the case. Only pip install calls python setup.py build_py which triggers make.

`test/utils/rpdf_ref.py` uses old `rpdf` API

The line

crys.rpdf(coords, rmax=5.0, cell=cell, ...)

uses and older API that is no longer supported. It needs to be converted to using a Structure as input, where we build the latter using coords, cell and symbols.

This is not critical since the generated data is part of the repo in test/files/rpdf/, just has to be fixed if new data is to be generated.

unnormalized power densities

Dear developers,
thanks for the very interesting code. I have some questions:
As far as I understood,pwtools yields the normalized power densities, while sometimes we would need unnormalized one. would you provide some details how the code can be modified to yield such unnormalized power density?

As the second request, I am wondering, are there some strightforward way/examples for pwtools users who are not experts in python (like myself) to get spectral power density (unnormalized) from CP2K generated velocity xyz file which has a structure like the one bellow? (first column is the atomic labels and the next columns are xyz components of velocities).
Thanks in advance and best regards,
Amin
####################
the sample CP2K velocity output
192
i = 0, time = 0.000, E = -368.9974887553
O 0.0000886641 -0.0000911669 -0.0001021906
H -0.0002956863 -0.0004934272 -0.0007190413
H 0.0014825795 -0.0010745990 0.0005481207
O 0.0003332422 -0.0001536368 0.0000391431
H 0.0004673263 -0.0005194924 0.0010338811
H 0.0000057824 -0.0005089213 0.0006525857
O -0.0002933685 -0.0002304744 -0.0001533996
H -0.0008513052 0.0007130663 -0.0006748945

one go installation does not make extensions

hi

i tried installing the one go installation, but it did not make the fortran extension automatically.

after reading through the rest of the installation page i was able to make the extensions and load the package

i wonder if this is a bug in the installation script worth reporting

details below:

i installed via git clone and pip install .

then i was getting the error

from pwtools import pydos                                                                                                                                       
---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
<ipython-input-1-79e08d090104> in <module>
----> 1 from pwtools import pydos

~/pwtools/pwtools/pydos.py in <module>
     17 from scipy.fftpack import fft
     18 from scipy.signal import convolve, gaussian
---> 19 from pwtools import constants, _flib, num
     20 from pwtools.verbose import verbose
     21 from pwtools.signal import pad_zeros, welch, mirror

~/pwtools/pwtools/num.py in <module>
      8     bisplev, splev, splrep
      9 from scipy.integrate import simps, trapz
---> 10 from pwtools import _flib
     11 import warnings
     12 ##warnings.simplefilter('always')

ImportError: cannot import name '_flib'

the dependency test seemed fine

$ python pwtools/test/check_dependencies.py 
required packages:
    numpy ... ok
    scipy ... ok
    ase ... ok
    pyspglib ... ok
    CifFile ... ok
    h5py ... ok
    nose ... ok
    matplotlib ... ok
    sphinx ... ok
    numpydoc ... ok
optional executables:
    eos.x ... NOT FOUND

then i went into src and ran make following hints from
( http://elcorto.github.io/pwtools/written/install.html )

now it seems to work :)

Problem with installation on Windows

I'm trying to install Pwtools on Windows and I'm having a hard time

I've installed Pwtool using

git clone https://github.com/elcorto/pwtools.git
pip install -e pwtools

Everything went well, at least no errors. But when I try to run

from pwtools import io
from ase.visualize import view

traj = io.read_cp2k_md('zeo_opti.log')
view(traj)`

I get the following error

cannot import name '_flib' from 'pwtools' (c:\users\cb\pwtools\pwtools\__init__.py)

Is there a way to troubleshoot this?

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.