mergeron 2024.738936.0__py3-none-any.whl → 2024.738940.0__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/core/excel_helper.py +4 -2
- mergeron/core/guidelines_standards.py +368 -123
- mergeron/core/proportions_tests.py +9 -9
- mergeron/core/pseudorandom_numbers.py +1 -2
- mergeron/examples/concentration_as_diversion.py +96 -109
- mergeron/examples/investigations_stats_sim_tables.py +22 -29
- mergeron/examples/safeharbor_boundaries_for_mergers_with_asymmetric_shares.py +13 -13
- mergeron/examples/safeharbor_boundaries_for_symmetric_firm_mergers.py +3 -3
- mergeron/examples/sound_guppi_safeharbor.py +31 -28
- mergeron/examples/testIntrinsicClearanceRates.py +12 -12
- mergeron/examples/visualize_guidelines_tests.py +34 -29
- mergeron/gen/__init__.py +463 -0
- mergeron/gen/_data_generation_functions_nonpublic.py +626 -0
- mergeron/gen/data_generation.py +45 -992
- mergeron/gen/guidelines_tests.py +122 -99
- mergeron/gen/investigations_stats.py +10 -12
- mergeron/jinja_LaTex_templates/clrrate_cis_summary_table_template.tex.jinja2 +1 -1
- mergeron/jinja_LaTex_templates/ftcinvdata_summarypaired_table_template.tex.jinja2 +1 -1
- {mergeron-2024.738936.0.dist-info → mergeron-2024.738940.0.dist-info}/METADATA +1 -1
- {mergeron-2024.738936.0.dist-info → mergeron-2024.738940.0.dist-info}/RECORD +21 -20
- {mergeron-2024.738936.0.dist-info → mergeron-2024.738940.0.dist-info}/WHEEL +0 -0
mergeron/core/excel_helper.py
CHANGED
|
@@ -6,6 +6,8 @@ Includes a flexible system of defining cell formats.
|
|
|
6
6
|
|
|
7
7
|
"""
|
|
8
8
|
|
|
9
|
+
from __future__ import annotations
|
|
10
|
+
|
|
9
11
|
from importlib.metadata import version
|
|
10
12
|
|
|
11
13
|
from .. import _PKG_NAME # noqa: TID252
|
|
@@ -126,7 +128,7 @@ def matrix_to_sheet(
|
|
|
126
128
|
elif isinstance(cell_format, CFmt):
|
|
127
129
|
_cell_format = (cell_format,) * len(_data_array[0])
|
|
128
130
|
else:
|
|
129
|
-
_cell_format = (CFmt.XL_DEFAULT,) * len(_data_array[0])
|
|
131
|
+
_cell_format = (CFmt.XL_DEFAULT,) * len(_data_array[0]) # type: ignore
|
|
130
132
|
|
|
131
133
|
for _cell_row in range(_row_id, _bottom_row_id):
|
|
132
134
|
for _cell_col in range(_col_id, _right_column_id):
|
|
@@ -222,7 +224,7 @@ def xl_fmt(
|
|
|
222
224
|
elif isinstance(_cell_fmt, CFmt):
|
|
223
225
|
_cell_fmt_dict = _cell_fmt.value
|
|
224
226
|
else:
|
|
225
|
-
_cell_fmt_dict = CFmt.XL_DEFAULT.value
|
|
227
|
+
_cell_fmt_dict = CFmt.XL_DEFAULT.value # type: ignore
|
|
226
228
|
|
|
227
229
|
return _xl_book.add_format(_cell_fmt_dict)
|
|
228
230
|
|