Skip to content

Commit

Permalink
add changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
loriab committed Jul 19, 2024
1 parent 1c85382 commit d72925c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
6 changes: 6 additions & 0 deletions docs/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,12 @@
* [\#34](https://github.com/MolSSI/QCManyBody/pull/34) Util -- add `labeler(..., opaque=False)` option to produce
eye-friendly `(1)@(1, 2)` style lablels as well as the semi-opaque internal style. Also always convent single ints
to tuples now. Function `delabeler` can decode the new style. @loriab
* [\#34](https://github.com/MolSSI/QCManyBody/pull/34) Intf -- sort "core" `nbodies_per_mc_level` dictionary so model
chemistries are in a predictable 1b, 2b, ..., supersystem order. Check that high-level (different data structure) agrees.
* [\#34](https://github.com/MolSSI/QCManyBody/pull/34) Util -- add short ordinal model chemistry level (e.g., §A) to the
`format_calc_plan` and `print_nbody_energy` summaries. @loriab
* [\#34](https://github.com/MolSSI/QCManyBody/pull/34) Util -- add function `modelchem_labels` to associate n-body
level, model chemistry level, one-char ordinal modelchem label, and n-bodies-covered modelchem label. @loriab

#### Bug Fixes

Expand Down
2 changes: 1 addition & 1 deletion qcmanybody/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -567,7 +567,7 @@ def analyze(
all_results["energy_body_dict"][bt],
f"{bt.formal()} ({bt.abbr()})",
self.nfragments,
modelchem_labels(self.nbodies_per_mc_level),
modelchem_labels(self.nbodies_per_mc_level, presorted=True),
is_embedded,
self.supersystem_ie_only,
self.max_nbody if self.has_supersystem else None,
Expand Down
3 changes: 1 addition & 2 deletions qcmanybody/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
import json
import re
import string
from types import NoneType
from typing import Any, Dict, Iterable, List, Literal, Mapping, Optional, Set, Tuple, Union

import numpy as np
Expand Down Expand Up @@ -235,7 +234,7 @@ def sum_cluster_data(


def labeler(
mc_level_lbl: Union[str, int, NoneType], frag: Tuple[int, ...], bas: Tuple[int, ...], *, opaque: bool = True
mc_level_lbl: Optional[Union[str, int]], frag: Tuple[int, ...], bas: Tuple[int, ...], *, opaque: bool = True
) -> str:
"""Form label from model chemistry id and fragment and basis indices.
Expand Down

0 comments on commit d72925c

Please sign in to comment.