mergeron_extra 2024.739148.0__tar.gz → 2024.739148.3__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {mergeron_extra-2024.739148.0 → mergeron_extra-2024.739148.3}/PKG-INFO +2 -2
- {mergeron_extra-2024.739148.0 → mergeron_extra-2024.739148.3}/pyproject.toml +3 -2
- {mergeron_extra-2024.739148.0 → mergeron_extra-2024.739148.3}/src/mergeron_extra/__init__.py +1 -14
- {mergeron_extra-2024.739148.0 → mergeron_extra-2024.739148.3}/src/mergeron_extra/tol_colors.py +15 -10
- {mergeron_extra-2024.739148.0 → mergeron_extra-2024.739148.3}/README.rst +0 -0
- {mergeron_extra-2024.739148.0 → mergeron_extra-2024.739148.3}/src/mergeron_extra/proportions_tests.py +0 -0
- {mergeron_extra-2024.739148.0 → mergeron_extra-2024.739148.3}/src/mergeron_extra/xlsxw_helper.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: mergeron_extra
|
|
3
|
-
Version: 2024.739148.
|
|
3
|
+
Version: 2024.739148.3
|
|
4
4
|
Summary: Tools for users of the mergeron package.
|
|
5
5
|
License: MIT
|
|
6
6
|
Author: Murthy Kambhampaty
|
|
@@ -20,7 +20,7 @@ Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
|
20
20
|
Requires-Dist: aenum (>=3.1.15,<4.0.0)
|
|
21
21
|
Requires-Dist: certifi (>=2023.11.17)
|
|
22
22
|
Requires-Dist: matplotlib (>=3.8)
|
|
23
|
-
Requires-Dist: numpy (>=
|
|
23
|
+
Requires-Dist: numpy (>=2.0)
|
|
24
24
|
Requires-Dist: scipy (>=1.12)
|
|
25
25
|
Requires-Dist: xlsxwriter (>=3.1)
|
|
26
26
|
Description-Content-Type: text/x-rst
|
|
@@ -4,7 +4,7 @@ description = "Tools for users of the mergeron package."
|
|
|
4
4
|
authors = ["Murthy Kambhampaty <smk@capeconomics.com>"]
|
|
5
5
|
license = "MIT"
|
|
6
6
|
readme = "README.rst"
|
|
7
|
-
version = "2024.739148.
|
|
7
|
+
version = "2024.739148.3"
|
|
8
8
|
|
|
9
9
|
classifiers = [
|
|
10
10
|
"Development Status :: 4 - Beta",
|
|
@@ -30,7 +30,7 @@ build-backend = "poetry.core.masonry.api"
|
|
|
30
30
|
# if poetry dependency resolution appears to hang (read the page at link to the end)
|
|
31
31
|
aenum = "^3.1.15"
|
|
32
32
|
matplotlib = ">=3.8"
|
|
33
|
-
numpy = ">=
|
|
33
|
+
numpy = ">=2.0"
|
|
34
34
|
python = "^3.12"
|
|
35
35
|
scipy = ">=1.12"
|
|
36
36
|
xlsxwriter = ">=3.1"
|
|
@@ -147,6 +147,7 @@ preview = true
|
|
|
147
147
|
python_version = "3.12"
|
|
148
148
|
ignore_missing_imports = false
|
|
149
149
|
strict = true
|
|
150
|
+
enable_incomplete_feature = ["NewGenericSyntax", "PreciseTupleTypes"]
|
|
150
151
|
|
|
151
152
|
show_column_numbers = true
|
|
152
153
|
show_error_codes = true
|
{mergeron_extra-2024.739148.0 → mergeron_extra-2024.739148.3}/src/mergeron_extra/__init__.py
RENAMED
|
@@ -1,25 +1,12 @@
|
|
|
1
1
|
from __future__ import annotations
|
|
2
2
|
|
|
3
|
-
from pathlib import Path
|
|
4
|
-
|
|
5
3
|
import numpy as np
|
|
6
4
|
from numpy.typing import NDArray
|
|
7
5
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
VERSION = "2024.739097.4"
|
|
6
|
+
VERSION = "2024.739148.3"
|
|
11
7
|
|
|
12
8
|
__version__ = VERSION
|
|
13
9
|
|
|
14
|
-
DATA_DIR: Path = Path.home() / _PKG_NAME
|
|
15
|
-
"""
|
|
16
|
-
Defines a subdirectory named for this package in the user's home path.
|
|
17
|
-
|
|
18
|
-
If the subdirectory doesn't exist, it is created on package invocation.
|
|
19
|
-
"""
|
|
20
|
-
if not DATA_DIR.is_dir():
|
|
21
|
-
DATA_DIR.mkdir(parents=False)
|
|
22
|
-
|
|
23
10
|
np.set_printoptions(precision=24, floatmode="fixed")
|
|
24
11
|
|
|
25
12
|
type ArrayBoolean = NDArray[np.bool_]
|
{mergeron_extra-2024.739148.0 → mergeron_extra-2024.739148.3}/src/mergeron_extra/tol_colors.py
RENAMED
|
@@ -685,8 +685,11 @@ Lcset = namedtuple(
|
|
|
685
685
|
)
|
|
686
686
|
|
|
687
687
|
|
|
688
|
-
def tol_cset(
|
|
689
|
-
colorset:
|
|
688
|
+
def tol_cset(
|
|
689
|
+
colorset: Literal[
|
|
690
|
+
"bright", "high-contrast", "vibrant", "muted", "medium-contrast", "light"
|
|
691
|
+
]
|
|
692
|
+
| None = None,
|
|
690
693
|
) -> Sequence[str] | Bcset | Hcset | Vcset | Muset | Mcset | Lcset:
|
|
691
694
|
"""
|
|
692
695
|
Discrete color sets for qualitative data.
|
|
@@ -719,16 +722,16 @@ def tol_cset( # noqa: PLR0911
|
|
|
719
722
|
)
|
|
720
723
|
|
|
721
724
|
if colorset is None:
|
|
722
|
-
|
|
725
|
+
_retval = namelist
|
|
723
726
|
|
|
724
727
|
elif colorset == "bright":
|
|
725
|
-
|
|
728
|
+
_retval = Bcinst
|
|
726
729
|
|
|
727
730
|
elif colorset == "high-contrast":
|
|
728
|
-
|
|
731
|
+
_retval = Hcset("#004488", "#DDAA33", "#BB5566", "#000000")
|
|
729
732
|
|
|
730
733
|
elif colorset == "vibrant":
|
|
731
|
-
|
|
734
|
+
_retval = Vcset(
|
|
732
735
|
"#EE7733",
|
|
733
736
|
"#0077BB",
|
|
734
737
|
"#33BBEE",
|
|
@@ -740,7 +743,7 @@ def tol_cset( # noqa: PLR0911
|
|
|
740
743
|
)
|
|
741
744
|
|
|
742
745
|
elif colorset == "muted":
|
|
743
|
-
|
|
746
|
+
_retval = Muset(
|
|
744
747
|
"#CC6677",
|
|
745
748
|
"#332288",
|
|
746
749
|
"#DDCC77",
|
|
@@ -755,12 +758,12 @@ def tol_cset( # noqa: PLR0911
|
|
|
755
758
|
)
|
|
756
759
|
|
|
757
760
|
elif colorset == "medium-contrast":
|
|
758
|
-
|
|
761
|
+
_retval = Mcset(
|
|
759
762
|
"#6699CC", "#004488", "#EECC66", "#994455", "#997700", "#EE99AA", "#000000"
|
|
760
763
|
)
|
|
761
764
|
|
|
762
765
|
elif colorset == "light":
|
|
763
|
-
|
|
766
|
+
_retval = Lcset(
|
|
764
767
|
"#77AADD",
|
|
765
768
|
"#EE8866",
|
|
766
769
|
"#EEDD88",
|
|
@@ -779,7 +782,9 @@ def tol_cset( # noqa: PLR0911
|
|
|
779
782
|
"known colorsets are {}.".format(namelist), # noqa: UP032
|
|
780
783
|
"Using {}.".format(colorset), # noqa: UP032
|
|
781
784
|
)
|
|
782
|
-
|
|
785
|
+
_retval = Bcinst
|
|
786
|
+
|
|
787
|
+
return _retval
|
|
783
788
|
|
|
784
789
|
|
|
785
790
|
def main() -> None:
|
|
File without changes
|
|
File without changes
|
{mergeron_extra-2024.739148.0 → mergeron_extra-2024.739148.3}/src/mergeron_extra/xlsxw_helper.py
RENAMED
|
File without changes
|