mergeron 2025.739439.7__py3-none-any.whl → 2025.739439.10__py3-none-any.whl
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.
Potentially problematic release.
This version of mergeron might be problematic. Click here for more details.
- mergeron/__init__.py +1 -1
- mergeron/core/__init__.py +1 -10
- mergeron/core/guidelines_boundary_functions.py +1 -0
- mergeron/perks/__init__.py +20 -0
- mergeron/{core → perks}/guidelines_boundary_functions_extra.py +7 -5
- {mergeron-2025.739439.7.dist-info → mergeron-2025.739439.10.dist-info}/METADATA +1 -1
- {mergeron-2025.739439.7.dist-info → mergeron-2025.739439.10.dist-info}/RECORD +8 -7
- {mergeron-2025.739439.7.dist-info → mergeron-2025.739439.10.dist-info}/WHEEL +0 -0
mergeron/__init__.py
CHANGED
mergeron/core/__init__.py
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
|
|
5
|
-
from collections.abc import
|
|
5
|
+
from collections.abc import Mapping
|
|
6
6
|
from decimal import Decimal
|
|
7
7
|
from types import MappingProxyType
|
|
8
8
|
from typing import Any
|
|
@@ -40,15 +40,6 @@ class GuidelinesBoundary:
|
|
|
40
40
|
"""Area under the boundary."""
|
|
41
41
|
|
|
42
42
|
|
|
43
|
-
@frozen
|
|
44
|
-
class GuidelinesBoundaryCallable:
|
|
45
|
-
"""A function to generate Guidelines boundary points, along with area and knot."""
|
|
46
|
-
|
|
47
|
-
boundary_function: Callable[[ArrayDouble], ArrayDouble]
|
|
48
|
-
area: float
|
|
49
|
-
s_naught: float = 0
|
|
50
|
-
|
|
51
|
-
|
|
52
43
|
@frozen
|
|
53
44
|
class INVTableData:
|
|
54
45
|
"""Represents individual table of FTC merger investigations data."""
|
|
@@ -839,6 +839,7 @@ def boundary_plot(
|
|
|
839
839
|
R"\newfontfamily\dvsfamily{DejaVu Sans}",
|
|
840
840
|
R"\usepackage{mathtools}",
|
|
841
841
|
R"\usepackage{unicode-math}",
|
|
842
|
+
R"\setmathfont{STIX Two Math}[math-style=ISO,bold-style=ISO]",
|
|
842
843
|
R"\setmathfont{STIX Two Math}[math-style=ISO,range={scr,bfscr},StylisticSet=01]",
|
|
843
844
|
R"\usepackage[",
|
|
844
845
|
R" activate={true, nocompatibility},",
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"""Constants, types, objects and functions used within this sub-package."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from collections.abc import Callable
|
|
6
|
+
|
|
7
|
+
from attrs import frozen
|
|
8
|
+
|
|
9
|
+
from .. import VERSION, ArrayDouble # noqa: TID252
|
|
10
|
+
|
|
11
|
+
__version__ = VERSION
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
@frozen
|
|
15
|
+
class GuidelinesBoundaryCallable:
|
|
16
|
+
"""A function to generate Guidelines boundary points, along with area and knot."""
|
|
17
|
+
|
|
18
|
+
boundary_function: Callable[[ArrayDouble], ArrayDouble]
|
|
19
|
+
area: float
|
|
20
|
+
s_naught: float = 0
|
|
@@ -6,17 +6,19 @@ and may provide improved precision than core functions, but tend to have
|
|
|
6
6
|
poor performance
|
|
7
7
|
|
|
8
8
|
"""
|
|
9
|
+
from __future__ import annotations
|
|
9
10
|
|
|
10
11
|
from typing import Literal
|
|
11
12
|
|
|
12
13
|
import numpy as np
|
|
13
14
|
from mpmath import mp, mpf # type: ignore
|
|
14
|
-
from scipy.spatial.distance import minkowski
|
|
15
|
+
from scipy.spatial.distance import minkowski # type: ignore
|
|
15
16
|
from sympy import lambdify, simplify, solve, symbols # type: ignore
|
|
16
17
|
|
|
17
18
|
from .. import DEFAULT_REC_RATIO, VERSION # noqa: TID252
|
|
18
|
-
from
|
|
19
|
-
from
|
|
19
|
+
from ..core import GuidelinesBoundary, MPFloat # noqa: TID252
|
|
20
|
+
from ..core import guidelines_boundary_functions as gbf # noqa: TID252
|
|
21
|
+
from . import GuidelinesBoundaryCallable
|
|
20
22
|
|
|
21
23
|
__version__ = VERSION
|
|
22
24
|
|
|
@@ -290,11 +292,11 @@ def diversion_share_boundary_distance(
|
|
|
290
292
|
|
|
291
293
|
match agg_method:
|
|
292
294
|
case "arithmetic mean":
|
|
293
|
-
delta_test =
|
|
295
|
+
delta_test = minkowski(
|
|
294
296
|
(de_1, de_2), (0.0, 0.0), p=1, w=weights_i
|
|
295
297
|
)
|
|
296
298
|
case "distance":
|
|
297
|
-
delta_test =
|
|
299
|
+
delta_test = minkowski(
|
|
298
300
|
(de_1, de_2), (0.0, 0.0), p=2, w=weights_i
|
|
299
301
|
)
|
|
300
302
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: mergeron
|
|
3
|
-
Version: 2025.739439.
|
|
3
|
+
Version: 2025.739439.10
|
|
4
4
|
Summary: Python for analyzing merger enforcement policy
|
|
5
5
|
License: MIT
|
|
6
6
|
Keywords: merger enforcement policy,merger guidelines,merger screening,enforcement presumptions,concentration standards,diversion ratio,upward pricing pressure,GUPPI
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
mergeron/__init__.py,sha256=
|
|
2
|
-
mergeron/core/__init__.py,sha256=
|
|
1
|
+
mergeron/__init__.py,sha256=jahrWTN0aWOMRUBEyN_oKVK7d4LQeYWnK40rglYErN4,6752
|
|
2
|
+
mergeron/core/__init__.py,sha256=zJcc50CAwm0oNKwk4p-P7oRwVfB_Fp4u0Do5dUeUXfI,3027
|
|
3
3
|
mergeron/core/empirical_margin_distribution.py,sha256=61U-KLB563BPWM5zWyWp82c4PhcsAG-IKI0WWYGjBKg,11740
|
|
4
4
|
mergeron/core/ftc_merger_investigations_data.py,sha256=oM4cs2PnyeSwyV1LOE_EYCUEzCKPm7lnCGxLIc6JQY8,28820
|
|
5
5
|
mergeron/core/guidelines_boundaries.py,sha256=PvSOLB6KlXu9KX6NdpStuRluP6nrZqUzSHT6usa5600,15630
|
|
6
|
-
mergeron/core/guidelines_boundary_functions.py,sha256=
|
|
7
|
-
mergeron/core/guidelines_boundary_functions_extra.py,sha256=DqwAsZ-ynbRAJE3rzAELCJEWyOtor3rvYUUUDTQpD7M,22243
|
|
6
|
+
mergeron/core/guidelines_boundary_functions.py,sha256=mW5jW7qgn1Z4wMY3P_l86jtJoSke_Wcnd-JKxoWmYKI,30838
|
|
8
7
|
mergeron/core/pseudorandom_numbers.py,sha256=-mPveXjJJ446NrBMAmWIa2jI6j0Px0xcCJTGEEsn3bo,10149
|
|
9
8
|
mergeron/data/__init__.py,sha256=SAFkR23RBM0zwGam2TeWmw08oHAKmU2YF-Nygj73ies,1845
|
|
10
9
|
mergeron/data/damodaran_margin_data_serialized.zip,sha256=Wc1v9buSrYTWWAravG8W9nPbgsU07zMtSAR2RvMQU5s,623482
|
|
@@ -14,7 +13,9 @@ mergeron/gen/data_generation.py,sha256=pdQl_uBENCjVt2aPtAcus2md4Qx-j5rOWGJJAzdnl
|
|
|
14
13
|
mergeron/gen/data_generation_functions.py,sha256=hXUq5D2CIUkM4_NdGXiOb4XATYwIUeUcCGadzQGDqLw,26126
|
|
15
14
|
mergeron/gen/enforcement_stats.py,sha256=etTax-sBSn8DveF-IxuBJDdX0XSBD6oFU9vaZe6cYks,14387
|
|
16
15
|
mergeron/gen/upp_tests.py,sha256=gRJISQ2jGmIDmFOvaTIkvYooI4mK-QbgkfgL46RrRio,7445
|
|
16
|
+
mergeron/perks/__init__.py,sha256=gGRIuRc7I6OuWLzwSiSZSIE0PEoxAy2DRFWg0VVLlbE,484
|
|
17
|
+
mergeron/perks/guidelines_boundary_functions_extra.py,sha256=lbqjmeLjrqXBm7dEmhiMcqzlv89cDlmyrG3TDzUFSEY,22296
|
|
17
18
|
mergeron/py.typed,sha256=frcCV1k9oG9oKj3dpUqdJg1PxRT2RSN_XKdLCPjaYaY,2
|
|
18
|
-
mergeron-2025.739439.
|
|
19
|
-
mergeron-2025.739439.
|
|
20
|
-
mergeron-2025.739439.
|
|
19
|
+
mergeron-2025.739439.10.dist-info/METADATA,sha256=0n-5o-IYKF3E8dgB7h-hZwvlpq0iK-WY9Oh2YoTRTQI,4220
|
|
20
|
+
mergeron-2025.739439.10.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
|
|
21
|
+
mergeron-2025.739439.10.dist-info/RECORD,,
|
|
File without changes
|