Changeset 5061d9 for src/Python


Ignore:
Timestamp:
Apr 23, 2021, 9:01:20 PM (5 years ago)
Author:
Frederik Heber <frederik.heber@…>
Branches:
Candidate_v1.7.0, stable
Children:
0ec9f5
Parents:
cd79d0
git-author:
Frederik Heber <frederik.heber@…> (04/02/21 09:09:37)
git-committer:
Frederik Heber <frederik.heber@…> (04/23/21 21:01:20)
Message:

Added action to print selected atoms as graph6 string.

Location:
src/Python
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • src/Python/Makefile.am

    rcd79d0 r5061d9  
    66        Python/getBoundingBox.cpp \
    77        Python/getDomainVolume.cpp \
     8        Python/getGraph6String.cpp \
    89        Python/getSelectedAtomElements.cpp \
    910        Python/getSelectedAtomIds.cpp \
  • src/Python/PythonScripting_impl.hpp

    rcd79d0 r5061d9  
    9090      "Waits until all currently queued actions have been processed."
    9191  );
     92  boost::python::def< std::string() >(
     93      "getGraph6String",
     94      MoleCuilder::detail::module_getGraph6String,
     95      "returns chemical graph of the current selected set of atoms as graph6 representation."
     96  );
     97  boost::python::def< std::string() >(
     98      "getElementListAsString",
     99      MoleCuilder::detail::module_getElementListAsString,
     100      "returns list of elements over the nodes of the graph of the current selected set of atoms."
     101  );
    92102  boost::python::def< MoleCuilder::detail::doubleVec() >(
    93103      "getBoundingBox",
  • src/Python/modules.hpp

    rcd79d0 r5061d9  
    1414#endif
    1515
     16#include <string>
    1617#include <vector>
    1718
     
    3839double module_getSelectedMolarMass();
    3940
     41std::string module_getGraph6String();
     42std::string module_getElementListAsString();
     43
    4044} /* namespace detail */
    4145
Note: See TracChangeset for help on using the changeset viewer.