Skip to content

Scale factor smd#834

Open
Lilachn91 wants to merge 6 commits intomainfrom
scale_factor_SMD
Open

Scale factor smd#834
Lilachn91 wants to merge 6 commits intomainfrom
scale_factor_SMD

Conversation

@Lilachn91
Copy link
Contributor

Added calculated frequency scale factors for several levels of theory in solvent, using SMD.
Also, since for some LoTs the database includes calculated scale factors with and without solvation, arc will report in the log file where the scaling factor was taken from, and what is its value.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR extends ARC’s harmonic frequency scaling-factor database with additional solvent-phase (SMD/DMSO) entries and enhances runtime logging to report where the chosen scaling factor came from.

Changes:

  • Added new frequency scaling factors to data/freq_scale_factors.yml for several levels of theory, including SMD/DMSO cases and additional basis variants.
  • Updated ARC.check_freq_scaling_factor() to log the scaling factor along with its source (user input, database, Truhlar’s method, or fallback).

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
data/freq_scale_factors.yml Adds new scaling-factor entries (including solvent-phase variants) to the lookup database.
arc/main.py Improves observability by logging the scaling factor value and its provenance.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

'wb97xd/def2tzvp, software: gaussian': 0.988 # [4]
'wb97xd/def2tzvp, solvation_method: smd, solvent: dimethylsulfoxide, software: gaussian': 0.991 # [4] gaussian 16, calculated w/o NH3 since it doesn't converge in solvent
'wb97xd3/def2-tzvp, software: qchem': 0.984 # [4]
'wb97xd3/def2-tzvpd, solvation_method: smd, solvent: dimethylsulfoxide,software: orca': 0.993 # [4] orca 6
Copy link

Copilot AI Mar 11, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The key string is missing a space after the comma before software: orca (...dimethylsulfoxide,software: orca). Since Level.__str__() formats this section as ..., solvent: <x>, software: <y> (comma + space), this entry will not be matched by assign_frequency_scale_factor() lookups. Add the missing space so the key exactly matches the Level string representation.

Suggested change
'wb97xd3/def2-tzvpd, solvation_method: smd, solvent: dimethylsulfoxide,software: orca': 0.993 # [4] orca 6
'wb97xd3/def2-tzvpd, solvation_method: smd, solvent: dimethylsulfoxide, software: orca': 0.993 # [4] orca 6

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants