Ignore:
Timestamp:
Dec 21, 2025, 9:50:22 PM (7 days ago)
Author:
Frederik Heber <frederik.heber@…>
Branches:
Candidate_v1.7.1, stable
Children:
802a9d
Parents:
bc58f2
git-author:
Frederik Heber <frederik.heber@…> (11/20/25 17:20:49)
git-committer:
Frederik Heber <frederik.heber@…> (12/21/25 21:50:22)
Message:

Adds python command getSelectedAtomCount().

  • this avoids needing to copy all ids first to python and counting them in python instead.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Python/export_numpy.cpp

    rbc58f2 re4b9d5  
    126126    boost::function<void (atom &, const Vector &)> &_set_function)
    127127{
     128#ifndef NDEBUG
    128129  unsigned int num_atoms = get_num_atoms();
    129  
     130#endif
    130131  // check whether shape of array is correct
    131132  ASSERT( _positions.shape(0) == num_atoms,
Note: See TracChangeset for help on using the changeset viewer.