Giter Club home page Giter Club logo

xyz2tab's People

Contributors

radi0sus 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

Watchers

 avatar  avatar  avatar  avatar

xyz2tab's Issues

Not showing labels when plotting plane

Hi, thank you very much for your code! It has been really useful for me and my research!

Just one small question: is there anyway of getting rid of the atomic labels when the visualization option is enabled for showing a molecular plane?

NumPy ValueError

image

Hello, I'm trying to use your code but i cannot solve this problem, can you check it out ?
tysm

Specific distance

Is there any option to calculate the distance between specific atoms? I have considered changing my .xyz files such that the atoms are consecutive but maybe there is something already implemented and capable of doing so.

Does not print all information as in the examples

python3 xyz2tab.py h2o.com
Traceback (most recent call last):
File "xyz2tab.py", line 19, in
sys.stdout.reconfigure(encoding='utf-8')
AttributeError: '_io.TextIOWrapper' object has no attribute 'reconfigure'

After commenting line 19 I get:

python3 xyz2tab.py h2o.com


Filename : h2o.com
Number of atoms : 3
Sum formula : H₂O
Formula weight : 18.02 g/mol
Excluded atoms : None
Excluded elements : None
Included contacts : None
Covalent radius + : 8.00 %


Element Atom count Mass fraction /% Cov. radius /Å Cov. radius + /Å
H 2 11.19 0.31 0.33
O 1 88.81 0.66 0.71
Traceback (most recent call last):
File "xyz2tab.py", line 442, in
dist_df['cov_radius2'])+(dist_df['cov_radius1'] +

File "/Users/derwiszck/anaconda3/lib/python3.6/site-packages/pandas/core/ops/init.py", line 1048, in wrapper
result = na_op(lvalues, rvalues)
File "/Users/derwiszck/anaconda3/lib/python3.6/site-packages/pandas/core/ops/init.py", line 965, in na_op
import pandas.core.computation.expressions as expressions
File "/Users/derwiszck/anaconda3/lib/python3.6/site-packages/pandas/core/computation/expressions.py", line 19, in
from pandas.core.computation.check import _NUMEXPR_INSTALLED
File "/Users/derwiszck/anaconda3/lib/python3.6/site-packages/pandas/core/computation/check.py", line 3, in
ne = import_optional_dependency("numexpr", raise_on_missing=False, on_version="warn")
File "/Users/derwiszck/anaconda3/lib/python3.6/site-packages/pandas/compat/_optional.py", line 90, in import_optional_dependency
module = importlib.import_module(name)
File "/Users/derwiszck/anaconda3/lib/python3.6/importlib/init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "/Users/derwiszck/anaconda3/lib/python3.6/site-packages/numexpr/init.py", line 48, in
nthreads = _init_num_threads()
File "/Users/derwiszck/anaconda3/lib/python3.6/site-packages/numexpr/utils.py", line 137, in _init_num_threads
requested_threads = int(os.environ['OMP_NUM_THREADS'])
ValueError: invalid literal for int() with base 10: '2,1'

Please let me know if there is a need of any information.
Cheers,

derwiszck

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.