Comments (5)
Issue #26 is essential the same as this one.
from iodata.
Another use case is Reaction Trajectory & IRC (Intrinsic Reaction Coordinate) See https://github.com/stvogt/kudi and http://gaussian.com/irc/
from iodata.
Covering trajectory stored in:
xyz
filesdf
file- Gaussian
log
file (IRC, geometry optimization, ...) (load only)
API in iodata/iodata.py
load_many(filename)
function returning a list ofIOData
.load_one(filename)
function instead ofIOData.from_file
.dump_many(filename)
function.dump_one(filename)
function instead ofIOData.to_file
.
API in file format modules:
load
anddump
functions take afile
object and load or dump one IOData object at a time.- Not all formats can be turned into trajectories because the end of the file is not easily recognized. We should raise an Error when using
load_trajectory
ordump_trajectory
on an inappropriate file format. - There should be a possibility for specialized load_trajectory functions, e.g. fchk and Gaussian log have special formats that are not simply a concatenation of geometries.
from iodata.
Here is a list of steps we need to take to support trajectories:
- Change
IOData.from_file
toload_one
. ChangeIOData.to_file
todump_one
. - Change all load functions to take a file object as argument, instead of a file. They should also only load data until they have found enough to make one IOData object. When hitting the end of a file, it should raise a
StopIteration
. See https://docs.python.org/3.7/library/exceptions.html#StopIteration. This also meansload_one
should open the file object. - Similar to previous but for
dump_one
- Write
load_many
anddump_many
functions.
from iodata.
@evohringer @fwmeng88 I'm working on this, so it does not hold you back. It will be a rather big change, but I'll stick to the essentials.
from iodata.
Related Issues (20)
- Support different types of normalization of the primitives in `iodata.basis` HOT 1
- Fix `dump_one` and `dump_many` for SDF file format HOT 6
- Support *.mol files HOT 3
- CFOUR molden files HOT 4
- Extract some information from results of `opt` and `scrf` Gaussian jobs HOT 4
- 2-electron reduced density matrices HOT 14
- PDB load_one issue with atom type CL HOT 5
- Compute electronic energy/gradient(force) in IOData
- Input writers for other quantum chemistry software HOT 2
- Install issue on Windows HOT 2
- Can I trust IOData for handling molden files generated from PySCF HOT 2
- Rename some fields read from PDB, to be more in line with PDB conventions HOT 3
- AttributeError: module 'numpy' has no attribute 'int'
- Scipy Factorial2 change HOT 4
- Issues related to factorial2 function HOT 2
- Can't install on macos with M1 HOT 3
- Computing Center of Mass HOT 3
- Support GPAW HOT 2
- Python 3.9 Numpy 1.20 Depreciation: np.int, np.float HOT 7
- Fix Factorial2 HOT 4
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 iodata.