Skip to content

Commit

Permalink
add integration_thresh and weight_cutoff to NumericalIntegration
Browse files Browse the repository at this point in the history
  • Loading branch information
EBB2675 committed Nov 20, 2024
1 parent cca109f commit 42f4f38
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion src/nomad_simulations/schema_packages/numerical_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,16 @@ class NumericalIntegration(NumericalSettings):
""",
)

weight_approximtion = Quantity(
integration_thresh = Quantity(
type=np.float64,
description="""
Accuracy threshold for integration grid.
GRIDTHR in Molpro.
BFCut in ORCA.
""",
)

weight_approximation = Quantity(
type=str,
description="""
Approximation applied to the weight when doing the numerical integration.
Expand All @@ -178,6 +187,17 @@ class NumericalIntegration(NumericalSettings):
""",
)

weight_cutoff = Quantity(
type=np.float64,
description="""
Grid points very close to the nucleus can have very small grid weights.
These can be discarded with the option WEIGHT_CUT=thr, i.e., grid points with weights
smaller than thr will then not be used in the numerical integration anymore.
WEIGHT_CUT in Molpro.
Wcut in ORCA.
""",
)

mesh = SubSection(sub_section=Mesh.m_def)

def normalize(self, archive: 'EntryArchive', logger: 'BoundLogger') -> None:
Expand Down

1 comment on commit 42f4f38

@github-actions
Copy link

Choose a reason for hiding this comment

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

Coverage

Coverage Report
FileStmtsMissCoverMissing
src/nomad_simulations
   __init__.py4250%3–4
   _version.py11282%5–6
src/nomad_simulations/schema_packages
   __init__.py15287%39–41
   atoms_state.py1902189%13–15, 201–204, 228, 283–284, 352–353, 355, 537, 549–550, 611–615, 630–634, 641
   basis_set.py2502988%8–9, 122–133, 172–185, 244, 290, 471–475, 497–498, 542–545, 664, 695, 697
   general.py89891%4–7, 121, 185, 295–296, 306
   model_method.py2737971%10–12, 171–174, 177–184, 276–277, 297, 318–339, 355–381, 384–401, 587, 780, 791, 833–840, 878, 897, 977, 1034, 1109, 1223, 1236
   model_system.py3483789%45–51, 235, 254, 258, 261, 264, 290, 376–377, 454–455, 472–473, 686–689, 736–743, 917–918, 1140–1144, 1150–1151, 1159–1160, 1165, 1188
   numerical_settings.py2746477%12–14, 133, 204, 274, 276–277, 280–283, 287–288, 295–298, 307–310, 314–317, 319–322, 327–330, 336–339, 526–553, 628, 663–666, 690, 693, 738, 740–743, 747, 751, 798, 802–823, 878–879, 946, 968
   outputs.py1201092%9–10, 252–255, 295–298, 323, 325, 362, 381
   physical_property.py102793%20–22, 202, 331–333
   variables.py861286%8–10, 98, 121, 145, 167, 189, 211, 233, 256, 276
src/nomad_simulations/schema_packages/properties
   band_gap.py51590%8–10, 135–136
   band_structure.py1232580%9–11, 232–265, 278, 285, 321–322, 325, 372–373, 378
   energies.py42979%7–9, 36, 57, 82, 103, 119, 134
   fermi_surface.py17476%7–9, 40
   forces.py22673%7–9, 36, 56, 79
   greens_function.py991387%7–9, 210–211, 214, 235–236, 239, 260–261, 264, 400
   hopping_matrix.py29583%7–9, 58, 94
   permittivity.py48883%7–9, 97–105
   spectral_profile.py26012851%9–11, 57–60, 95–98, 199–300, 356–368, 393–396, 416, 421–424, 466–502, 526, 573–576, 592–593, 598–604
   thermodynamics.py752764%7–9, 35, 56, 72, 81, 90, 101, 110, 137, 147, 157, 172–174, 177, 193, 213–215, 218, 234, 254–256, 259
src/nomad_simulations/schema_packages/utils
   utils.py791680%8–11, 65–74, 83–84, 89, 92, 169–170
TOTAL261851980% 

Tests Skipped Failures Errors Time
402 0 💤 0 ❌ 0 🔥 6.080s ⏱️

Please sign in to comment.