Skip to content

Commit

Permalink
v0.0.14
Browse files Browse the repository at this point in the history
  • Loading branch information
fraterenz committed Aug 8, 2024
1 parent 5e16262 commit d8e9ae7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "hatchling.build"

[project]
name = "futils"
version = "0.0.13"
version = "0.0.14"
authors = [
{ name="Francesco Terenzi", email="fra.terenz1993@gmail.com" },
]
Expand Down
2 changes: 1 addition & 1 deletion src/futils/snapshot.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def array_from_hist(my_hist: Histogram) -> np.ndarray:


def histogram_from_dict(my_dict: Dict[int, int]) -> Histogram:
return Histogram({int(x): int(y) for x, y in sorted(my_dict.items())})
return Histogram(dict(sorted({int(k): int(v) for k, v in my_dict.items()}.items())))


def histogram_from_file(file: Path) -> Histogram:
Expand Down

0 comments on commit d8e9ae7

Please sign in to comment.