Comments (4)
The AttributeError: '_io.TextIOWrapper' object has no attribute 'reconfigure'
could be from an older Python version. I think if you upgrade to a more recent Python version there will be no error message. However, this is only important for Windows, so you can leave that line commented (in case you're using Linux or MacOS).
Regarding your second problem. I don't know how the atom coordinates are arranged in h2o.com
(Is this an input file for a program?). The script accepts only standard xyz files. Please check https://en.wikipedia.org/wiki/XYZ_file_format and if the atom coordinates are arranged in a similar way in h2o.com
. You can also post your file her, so that I can check it.
from xyz2tab.
Hey, thanks.
I tried python2.7, python3, python3.10, python3.11, python3.6 and python3.9 versions and I always get the same errors.
Commenting the line above is the only way to avoid the direct error at macOS Ventura. Then the second error appears.
Sorry for the extension. It is in standard xyz format for the testing only:
cat h2o.xyz
3
0 1
O 2.00277523 1.06845512 0.00000000
H 2.96277523 1.06845512 0.00000000
H 1.68232065 1.97339095 0.00000000
Could be the problem anaconda?
python -V
Python 3.6.9 :: Anaconda, Inc.
from xyz2tab.
The coordinates are fine. Tried them with the script on Ventura as well. But I don't use the Anaconda package to run Python programs. I'm also not very familiar with the Anaconda environment. What happens if you remove the line breaks starting from line 443 (or 442):
dist_df['distance_radii'] = (dist_df['cov_radius1'] + dist_df['cov_radius2'])+(dist_df['cov_radius1'] + dist_df['cov_radius2'])*radii_ext
from xyz2tab.
I got the following output from your coordinates after executing the script:
python3 xyz2tab.py h2o.xyz
Filename : h2o.xyz
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 |
Atoms | Bond length /Å |
---|---|
O0–H1 | 0.9600 |
O0–H2 | 0.9600 |
Atoms | Bond lengths /Å |
---|---|
O–H | 0.9600 / 0.9600 |
Atoms | Count | Mean /Å | Median /Å | Sam. std. dev. | Pop. std. dev. | Std. error | Skewness |
---|---|---|---|---|---|---|---|
O–H | 2 | 0.96 | 0.96 | 0 | 0 | 0 | nan |
Atoms | Angle /° |
---|---|
H1–O0–H2 | 109.50 |
Atoms | Angle /° |
---|---|
H–O–H | 109.50 |
Atoms | Count | Mean /° | Median /° | Sam. std. dev. | Pop. std. dev. | Std. error | Skewness |
---|---|---|---|---|---|---|---|
H–O–H | 1 | 109.5 | 109.5 | nan | 0 | nan | nan |
from xyz2tab.
Related Issues (5)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from xyz2tab.