pyqmmm.qm.charge_spin_extractor
¶
Extract charge and spin data for a given subset of atoms for graphing.
Module Contents¶
Functions¶
|
Find all examples of a file type in the current directory. |
|
Get the user's atom set. |
|
Gets the charges for the atoms specified by the user and sums them. |
|
Gets the charge for the atoms specified by the user and sums them. |
|
Writes out the data for either the charge or spin. |
- pyqmmm.qm.charge_spin_extractor.get_files(file_pattern)[source]¶
Find all examples of a file type in the current directory.
- Parameters:
file_pattern (str) – The type of file the for which the user would like to search the current directory.
- Returns:
xyz_filename_list – A list of files found matching the user’s pattern.
- Return type:
list
- pyqmmm.qm.charge_spin_extractor.get_selection(file)[source]¶
Get the user’s atom set. :returns: atoms – The index of the atom for which the user would like the spin and charge. :rtype: selection
- pyqmmm.qm.charge_spin_extractor.get_spins(atoms, file, selection)[source]¶
Gets the charges for the atoms specified by the user and sums them.
- Parameters:
atoms (list) – List of atoms indices.
file (str) – The name of the file that you would like to analyze.
selection (list) – The indices of the atoms for which the user would like the charge and spin.
- Returns:
net_spins – List fo spins corresponding to each image in the scan.
- Return type:
list
- pyqmmm.qm.charge_spin_extractor.get_charges(atoms, file, selection)[source]¶
Gets the charge for the atoms specified by the user and sums them.
- Parameters:
atoms (list) – List of atoms indices.
file (str) – The name of the file that you would like to analyze.
selection (list) – The atom indices for which the user would like the charge and spin.
- Returns:
net_spins – List fo spins corresponding to each image in the scan.
- Return type:
list