mergeron 2024.738949.6__py3-none-any.whl → 2024.738953.1__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 +0 -1
- mergeron/core/ftc_invdata.msgpack +0 -0
- mergeron/core/ftc_merger_investigations_data.py +6 -0
- mergeron/core/guidelines_boundaries.py +1 -1
- mergeron/gen/investigations_stats.py +5 -6
- {mergeron-2024.738949.6.dist-info → mergeron-2024.738953.1.dist-info}/METADATA +1 -2
- {mergeron-2024.738949.6.dist-info → mergeron-2024.738953.1.dist-info}/RECORD +9 -22
- mergeron/examples/__init__.py +0 -5
- mergeron/examples/concentration_as_diversion.py +0 -625
- mergeron/examples/enforcement_boundaries_for_mergers_with_asymmetric_shares.py +0 -493
- mergeron/examples/enforcement_boundaries_for_symmetric_firm_mergers.py +0 -206
- mergeron/examples/example_parameterizations.py +0 -143
- mergeron/examples/guidelines_enforcement_patterns.py +0 -74
- mergeron/examples/investigations_stats_obs_tables.py +0 -481
- mergeron/examples/investigations_stats_sim_tables.py +0 -425
- mergeron/examples/plotSafeHarbs_symbolically.py +0 -53
- mergeron/examples/sound_guppi_safeharbor.py +0 -181
- mergeron/examples/summarize_ftc_investigations_data.py +0 -44
- mergeron/examples/testIntrinsicClearanceRates.py +0 -135
- mergeron/examples/visualize_empirical_margin_distribution.py +0 -100
- mergeron/examples/visualize_guidelines_tests.py +0 -298
- {mergeron-2024.738949.6.dist-info → mergeron-2024.738953.1.dist-info}/WHEEL +0 -0
mergeron/__init__.py
CHANGED
mergeron/core/__init__.py
CHANGED
|
Binary file
|
|
@@ -8,6 +8,7 @@ We drop reported row and column totals from source data for reducing stored data
|
|
|
8
8
|
|
|
9
9
|
"""
|
|
10
10
|
|
|
11
|
+
import shutil
|
|
11
12
|
from collections.abc import Mapping, Sequence
|
|
12
13
|
from importlib.metadata import version
|
|
13
14
|
from operator import itemgetter
|
|
@@ -36,6 +37,11 @@ if not FTCDATA_DIR.is_dir():
|
|
|
36
37
|
FTCDATA_DIR.mkdir(parents=True)
|
|
37
38
|
|
|
38
39
|
INVDATA_ARCHIVE_PATH = DATA_DIR / "ftc_invdata.msgpack"
|
|
40
|
+
if not INVDATA_ARCHIVE_PATH.is_file():
|
|
41
|
+
if (
|
|
42
|
+
_bundled_copy := Path(__file__).parent.joinpath(INVDATA_ARCHIVE_PATH.name)
|
|
43
|
+
).is_file():
|
|
44
|
+
shutil.copyfile(_bundled_copy, INVDATA_ARCHIVE_PATH)
|
|
39
45
|
|
|
40
46
|
TABLE_NO_RE = re.compile(r"Table \d+\.\d+")
|
|
41
47
|
TABLE_TYPES = ("ByHHIandDelta", "ByFirmCount")
|
|
@@ -841,7 +841,7 @@ def shrratio_boundary_min(
|
|
|
841
841
|
np.float64,
|
|
842
842
|
)
|
|
843
843
|
|
|
844
|
-
_gbd_area =
|
|
844
|
+
_gbd_area = _s_mid + _s1_pts[1] * (1 - 2 * _s_mid)
|
|
845
845
|
else:
|
|
846
846
|
_s1_pts, _gbd_area = np.array((0, _s_mid, _s_intcpt), np.float64), _s_mid
|
|
847
847
|
|
|
@@ -4,6 +4,7 @@ Routines to format and print summary data on merger enforcement patterns.
|
|
|
4
4
|
"""
|
|
5
5
|
|
|
6
6
|
import enum
|
|
7
|
+
import shutil
|
|
7
8
|
import subprocess
|
|
8
9
|
from collections.abc import Mapping, Sequence
|
|
9
10
|
from importlib.metadata import version
|
|
@@ -122,13 +123,11 @@ latex_jinja_env = Environment(
|
|
|
122
123
|
loader=FileSystemLoader(Path(__file__).parents[1] / "jinja_LaTex_templates"),
|
|
123
124
|
)
|
|
124
125
|
|
|
125
|
-
# Place files related to rendering latex in
|
|
126
|
+
# Place files related to rendering latex in output data directory
|
|
126
127
|
if not (_out_path := DATA_DIR.joinpath(f"{_PKG_NAME}.cls")).is_file():
|
|
127
|
-
|
|
128
|
-
Path(__file__)
|
|
129
|
-
|
|
130
|
-
.joinpath("jinja_LaTex_templates", "mergeron.cls")
|
|
131
|
-
.read_text()
|
|
128
|
+
shutil.copyfile(
|
|
129
|
+
Path(__file__).parents[1].joinpath("jinja_LaTex_templates", "mergeron.cls"),
|
|
130
|
+
_out_path,
|
|
132
131
|
)
|
|
133
132
|
|
|
134
133
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: mergeron
|
|
3
|
-
Version: 2024.
|
|
3
|
+
Version: 2024.738953.1
|
|
4
4
|
Summary: Analysis of standards defined in Horizontal Merger Guidelines
|
|
5
5
|
License: MIT
|
|
6
6
|
Keywords: merger policy analysis,merger guidelines,merger screening,policy presumptions,concentration standards,upward pricing pressure,GUPPI
|
|
@@ -32,7 +32,6 @@ Requires-Dist: msgpack (>=1.0)
|
|
|
32
32
|
Requires-Dist: msgpack-numpy (>=0.4)
|
|
33
33
|
Requires-Dist: numpy (>=1.26)
|
|
34
34
|
Requires-Dist: openpyxl (>=3.1.2)
|
|
35
|
-
Requires-Dist: pymupdf (>=1.23)
|
|
36
35
|
Requires-Dist: requests (>=2.31)
|
|
37
36
|
Requires-Dist: requests-toolbelt (>=1.0.0)
|
|
38
37
|
Requires-Dist: scipy (>=1.12)
|
|
@@ -1,34 +1,21 @@
|
|
|
1
1
|
mergeron/License.txt,sha256=csSkn4lgUmJ0VEw1KAFZ3a8q0L4XccUdJ6Jj6xSNNRY,1246
|
|
2
|
-
mergeron/__init__.py,sha256=
|
|
2
|
+
mergeron/__init__.py,sha256=_0Bt2k2P8MPlF_WagQKGspaSODn-pkqib0uvSd4gys4,1019
|
|
3
3
|
mergeron/core/InCommon RSA Server CA cert chain.pem,sha256=W8TqydgY8jphQ4fr6WMdT6jLwqFjHLpx8fFr3LXub4s,4292
|
|
4
|
-
mergeron/core/__init__.py,sha256=
|
|
4
|
+
mergeron/core/__init__.py,sha256=rwZfuO7ZQkvvZ1pHhixtFmVmC5_E-rix0unaTzxz48Y,2110
|
|
5
5
|
mergeron/core/damodaran_margin_data.py,sha256=DHTQdFjuZ5Yl3Dbq0db0QR4FHUqJpZj4yi5zdUncLtg,8166
|
|
6
6
|
mergeron/core/excel_helper.py,sha256=j-dNz6WVIFIDCn3ldK_eenPr0Gn996zxbbm3SEjVpPM,7823
|
|
7
|
-
mergeron/core/
|
|
8
|
-
mergeron/core/
|
|
7
|
+
mergeron/core/ftc_invdata.msgpack,sha256=WBFHgi7Ld4R-h2zL2Zc3TOIlKqVrbVFMH1LoI4-T-M0,264664
|
|
8
|
+
mergeron/core/ftc_merger_investigations_data.py,sha256=WLnGFmTB-sh9aswivUAOuaUP0Aa9pmcvD4SJD-lddNU,26983
|
|
9
|
+
mergeron/core/guidelines_boundaries.py,sha256=eOEzbfgNQn-XKFZ72pql1xfBaLApQIdbfm3rSXdi0ow,37442
|
|
9
10
|
mergeron/core/guidelines_boundaries_specialized_functions.py,sha256=zrnqaPd7a_jIO1qtM9VXhiiADZRMpg6Y-e2m0od4_JM,10448
|
|
10
11
|
mergeron/core/proportions_tests.py,sha256=tCrbya1el5u1OFOXphODP6yWOGywuNY6z9LBTsNRKzM,15320
|
|
11
12
|
mergeron/core/pseudorandom_numbers.py,sha256=uBK_fnhkOSkqnK4gEU8b3r_9B6r-vKmXZ64HViraTK8,9446
|
|
12
|
-
mergeron/examples/__init__.py,sha256=iyfxkX3-SoMS4ZQZKHKPn8JEMN536vpty9oSZf0LHv8,115
|
|
13
|
-
mergeron/examples/concentration_as_diversion.py,sha256=_RPId16pVGs1GxW5cZl1U1F0gIN8c0NPDvO2O7DbFGU,21505
|
|
14
|
-
mergeron/examples/enforcement_boundaries_for_mergers_with_asymmetric_shares.py,sha256=GhczLXtv1R7GtAJRngDTwda8fBKeX1Hdf6FZDlvqw60,16241
|
|
15
|
-
mergeron/examples/enforcement_boundaries_for_symmetric_firm_mergers.py,sha256=DAljm5NJquE56f-x4pLXzKCdhYQyVpWaM8uGlD6rIEs,5779
|
|
16
|
-
mergeron/examples/example_parameterizations.py,sha256=VP-hi7L0j30ffcEzmJ3P8mOj1VjwEWKCTZSx_CaVQxA,4197
|
|
17
|
-
mergeron/examples/guidelines_enforcement_patterns.py,sha256=iHGUaWCidVwIywI60ZNB4AnvzpTe60az1H7AzB3ddl0,2255
|
|
18
|
-
mergeron/examples/investigations_stats_obs_tables.py,sha256=RLJ7Y6tHgJ3ik2m2b7hsVwz-I8GzDBUtU0JQpRCjhtc,18017
|
|
19
|
-
mergeron/examples/investigations_stats_sim_tables.py,sha256=72oNhfp-rkLVf-pgFejWgW4kvs3hb0gIy9zgd7kJtto,14907
|
|
20
|
-
mergeron/examples/plotSafeHarbs_symbolically.py,sha256=YuuZd0zs1-icZKJnocbfRYqR2n5yHrbxjxtr2h5rYQo,1613
|
|
21
|
-
mergeron/examples/sound_guppi_safeharbor.py,sha256=0IGeFAJzkvpJEt-MnVkUcNCppj1FiRfUWf2FyKjV9Qo,6085
|
|
22
|
-
mergeron/examples/summarize_ftc_investigations_data.py,sha256=447vtwlAsfc3Po8wFcKRHC4Ur-zvKc5dwBjtu4M49ig,1360
|
|
23
|
-
mergeron/examples/testIntrinsicClearanceRates.py,sha256=T0-6m-SEPVy-mY8gZY2HlJO4ncBa47r87bERhhANLFs,5378
|
|
24
|
-
mergeron/examples/visualize_empirical_margin_distribution.py,sha256=eMTWgNJ1eSTZBgwojZXAYMfuzgMGM2UU999axNjBip4,2918
|
|
25
|
-
mergeron/examples/visualize_guidelines_tests.py,sha256=2ZE7GRkGjVzvcwXkNAzGUKRGcf5Pb4ty-lQv0V1_LKU,9357
|
|
26
13
|
mergeron/ext/__init__.py,sha256=iyfxkX3-SoMS4ZQZKHKPn8JEMN536vpty9oSZf0LHv8,115
|
|
27
14
|
mergeron/ext/tol_colors.py,sha256=wFOHZXWZonbp9mhmSGu9mVujBYhdTsvx9_WikMpoCmo,22229
|
|
28
15
|
mergeron/gen/__init__.py,sha256=nVvHJiUuTzTcT0mhX1BmneAiLkC1sg3I4X9xdu7OKJg,16248
|
|
29
16
|
mergeron/gen/_data_generation_functions_nonpublic.py,sha256=mt3g5sTPhUkJgsLd6luKkSnsT1_okf0y9kRyZtrBGk8,21404
|
|
30
17
|
mergeron/gen/data_generation.py,sha256=tud1PeobkTyNZdCk-cMVBHw1MtM7bJKq_cGaYnYFh_I,8863
|
|
31
|
-
mergeron/gen/investigations_stats.py,sha256=
|
|
18
|
+
mergeron/gen/investigations_stats.py,sha256=5j8iOI2EKbd8BZoqfcg4oaK4bFRMEDXadnFVDO3Rlwc,22803
|
|
32
19
|
mergeron/gen/upp_tests.py,sha256=IlmedW20AG6XDp9gSG26RCLnZfMOVrm34PdpfJSJiMs,16229
|
|
33
20
|
mergeron/jinja_LaTex_templates/clrrate_cis_summary_table_template.tex.jinja2,sha256=ae4JiciU-pt8YAM8mRbsmt4W6ePuN1y1NPCWD95oXIo,4833
|
|
34
21
|
mergeron/jinja_LaTex_templates/ftcinvdata_byhhianddelta_table_template.tex.jinja2,sha256=ODEurkC0UHuWpjRUiQpeW85njSeUEUJYRdYg8gqoEq0,3642
|
|
@@ -38,6 +25,6 @@ mergeron/jinja_LaTex_templates/mergeron.cls,sha256=AV2mk4-uERvAuMkE95Ka7el6LZsb0
|
|
|
38
25
|
mergeron/jinja_LaTex_templates/mergeron_table_collection_template.tex.jinja2,sha256=nr6xUI0_2KHG4Sz9k1JFVQjs2h9qS9BGt1MeE6Tygs8,2429
|
|
39
26
|
mergeron/jinja_LaTex_templates/setup_tikz_tables.tex.jinja2,sha256=WKVxtp3eoMchfGliQAJMj4w2FtBkWG5z2V3-hBYUYUQ,3292
|
|
40
27
|
mergeron/py.typed,sha256=frcCV1k9oG9oKj3dpUqdJg1PxRT2RSN_XKdLCPjaYaY,2
|
|
41
|
-
mergeron-2024.
|
|
42
|
-
mergeron-2024.
|
|
43
|
-
mergeron-2024.
|
|
28
|
+
mergeron-2024.738953.1.dist-info/METADATA,sha256=_rIDqv_IzGJMoR3TXh-kun4PEgow1U6smCToxX8qnSY,6330
|
|
29
|
+
mergeron-2024.738953.1.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
|
30
|
+
mergeron-2024.738953.1.dist-info/RECORD,,
|