Constants Generator#
CCD Bond Constants Generator
This module provides functionality to generate Python constants files from Chemical Component Dictionary (CCD) data using the CCDDataManager.
- class hbat.ccd.constants_generator.CCDConstantsGenerator(ccd_manager: CCDDataManager)[source]#
Bases:
objectGenerates Python constants files from CCD bond data.
This class uses the CCDDataManager to extract bond information and generate properly formatted Python constants files for use in HBAT.
- __init__(ccd_manager: CCDDataManager)[source]#
Initialize the constants generator.
- Parameters:
ccd_manager – Initialized CCDDataManager instance
- write_residue_bonds_constants(residue_list: List[str], output_path: str = None) bool[source]#
Generate a Python constants file with residue bond information.
- Parameters:
residue_list – List of residue codes to include in constants
output_path – Output file path (defaults to constants/residue_bonds.py)
- Returns:
True if successful, False otherwise