Comments (2)
I usually just use list comprehensions, and it's fine. Like [a.index for a in top.atoms() if a.name == 'ALA']
. Do you have an idea for what the numpy API would look like?
from mdtraj.
I'll try using list comprehensions. I was probably over-using numpy in MSMB, so I'll play around a bit.
from mdtraj.
Related Issues (20)
- Numpy 2.0 Release is imminent HOT 5
- python version anaconda install HOT 1
- Gyration tensor, principal moments, and asphericity over PBCs HOT 1
- Update `import_` utility? HOT 5
- Upstream macOS compiler fix HOT 2
- How to micromamba (mistyped as minimamba, sorry) install release candidate? HOT 3
- Update/Audit docs HOT 5
- NETCDF4 Error HOT 10
- Set up better versioning scheme HOT 1
- Add netCDF4 as an upstream dependency
- Deleting an atom does not update bond list in topology HOT 1
- Getting code coverage up and running HOT 1
- MDTraj can write some PDB files that it cannot read HOT 5
- Python 3.8 Backward Compatibility due to `ast.unparse` HOT 3
- Updating unit cell information in dcd file HOT 1
- six module removed but still referenced, breaking mdinspect HOT 2
- How to Adjust the Energy Threshold in kabsch_sander Function? HOT 1
- mdtraj fails to load pdb correctly, the number of atoms is wrong HOT 8
- Error converting amber .nc to gromacs .xtc HOT 3
- Issue with mdtraj.kabsch_sander Returning Zero Energies for DNA Hydrogen Bonds
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 mdtraj.