-
Notifications
You must be signed in to change notification settings - Fork 4
Thermal Expansion: Store changes in cell dimensions #583
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
WalkthroughCell data tracking has been integrated into the thermal expansion calculation pipeline. Calculators collect cell matrices during molecular dynamics runs, pass them through the thermal expansion output system via updated function signatures, and expose the data through new public methods. Changes
Sequence DiagramsequenceDiagram
participant Calc as Calculator<br/>(ASE/LAMMPS)
participant TEOut as get_thermal_expansion_output()
participant TEProp as ThermalExpansionProperties
participant OutObj as OutputThermalExpansion
loop For each temperature
Calc->>Calc: Collect cell from MD result
Calc->>Calc: Append to cell_md_lst
end
Calc->>TEOut: Pass cell_lst, temperatures_lst,<br/>volumes_lst
TEOut->>TEProp: Create with cell_lst,<br/>temperatures_lst, volumes_lst
TEProp->>TEProp: Store as _cell_lst
TEOut->>OutObj: Map properties to output<br/>(including cells() method)
OutObj-->>Calc: Return with cell access
Note over OutObj: OutputThermalExpansion now<br/>provides cells() callable
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes
Poem
Pre-merge checks and finishing touches✅ Passed checks (2 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
🧹 Nitpick comments (2)
atomistics/shared/thermal_expansion.py (2)
16-20: Docstring missingcell_lstparameterPlease update the constructor docstring so it documents the newly added
cell_lstargument; it keeps the API description aligned with the signature.""" Initialize the ThermalExpansionProperties class. Parameters: - temperatures_lst (np.ndarray): Array of temperatures. - volumes_lst (np.ndarray): Array of volumes. + cell_lst (np.ndarray): Array of cell matrices. + temperatures_lst (np.ndarray): Array of temperatures. + volumes_lst (np.ndarray): Array of volumes.
62-64: Fix docstring typo forcell_lstThe parameter name in the docstring should match the function signature (
cell_lstinstead ofcells_lst).- cells_lst (np.ndarray): Array of cells. + cell_lst (np.ndarray): Array of cells.
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (5)
atomistics/calculators/ase.py(2 hunks)atomistics/calculators/lammps/helpers.py(2 hunks)atomistics/shared/output.py(1 hunks)atomistics/shared/thermal_expansion.py(2 hunks)atomistics/workflows/phonons/helper.py(1 hunks)
🧰 Additional context used
🧬 Code graph analysis (5)
atomistics/shared/output.py (2)
atomistics/shared/thermal_expansion.py (1)
cells(24-31)atomistics/workflows/phonons/helper.py (1)
cells(227-237)
atomistics/calculators/ase.py (1)
atomistics/shared/thermal_expansion.py (1)
get_thermal_expansion_output(52-75)
atomistics/calculators/lammps/helpers.py (1)
atomistics/shared/thermal_expansion.py (1)
get_thermal_expansion_output(52-75)
atomistics/workflows/phonons/helper.py (2)
atomistics/shared/thermal_expansion.py (1)
cells(24-31)atomistics/calculators/ase.py (1)
cell(100-107)
atomistics/shared/thermal_expansion.py (1)
atomistics/workflows/phonons/helper.py (1)
cells(227-237)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (12)
- GitHub Check: unittest_old
- GitHub Check: unittest_siesta
- GitHub Check: notebooks
- GitHub Check: unittest_qe
- GitHub Check: unittest_matrix (ubuntu-latest, 3.13)
- GitHub Check: unittest_matrix (macos-latest, 3.14)
- GitHub Check: unittest_matrix (ubuntu-latest, 3.12)
- GitHub Check: unittest_matrix (ubuntu-latest, 3.11)
- GitHub Check: unittest_matrix (windows-latest, 3.14)
- GitHub Check: unittest_matrix (ubuntu-latest, 3.14)
- GitHub Check: unittest_sphinxdft
- GitHub Check: coverage
Summary by CodeRabbit