From cd9b98d044f584a08362fa97925c480a2e963a77 Mon Sep 17 00:00:00 2001 From: jdebacker Date: Mon, 18 Nov 2024 15:01:25 -0500 Subject: [PATCH 1/2] add pyproject.toml --- pyproject.toml | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 pyproject.toml diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 000000000..f2c07bfb2 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,3 @@ +[build-system] +requires = ["setuptools>=64.0"] +build-backend = "setuptools.build_meta" From 85425163a9796573ba297187872bbea43767afc3 Mon Sep 17 00:00:00 2001 From: "martin.holmer@gmail.com" Date: Mon, 18 Nov 2024 15:43:18 -0500 Subject: [PATCH 2/2] Fix weights precision in default tc output --- taxcalc/taxcalcio.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/taxcalc/taxcalcio.py b/taxcalc/taxcalcio.py index d459f3686..2ead655e2 100644 --- a/taxcalc/taxcalcio.py +++ b/taxcalc/taxcalcio.py @@ -546,16 +546,18 @@ def write_output_file(self, output_dump, dump_varset, assert 'RECID' in column_order, 'RECID not in dump output list' column_order.remove('RECID') column_order.insert(0, 'RECID') + weight_vname = 's006' else: outdf = self.minimal_output() column_order = outdf.columns + weight_vname = 'WEIGHT' assert len(outdf.index) == self.calc.array_len if self.tmd_input_data: # pragma: no cover - if "s006" in outdf: - weights = outdf["s006"].round(5) + if weight_vname in outdf: + weights = outdf[weight_vname].round(5) outdf = outdf.round(2) - if "s006" in outdf: - outdf["s006"] = weights + if weight_vname in outdf: + outdf[weight_vname] = weights outdf.to_csv(self._output_filename, columns=column_order, index=False) else: