From d06a051e553f4ee016947fd13979ae2de5f03a6c Mon Sep 17 00:00:00 2001 From: trevorb1 Date: Sat, 21 Oct 2023 17:09:22 -0700 Subject: [PATCH] fix linting --- src/otoole/write_strategies.py | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/src/otoole/write_strategies.py b/src/otoole/write_strategies.py index b1d32a9f..d4472f8b 100644 --- a/src/otoole/write_strategies.py +++ b/src/otoole/write_strategies.py @@ -156,7 +156,12 @@ def _write_parameter( df = self._form_parameter(df, default) handle.write("param default {} : {} :=\n".format(default, parameter_name)) df.to_csv( - path_or_buf=handle, sep=" ", header=False, index=True, float_format="%g", lineterminator="\n" + path_or_buf=handle, + sep=" ", + header=False, + index=True, + float_format="%g", + lineterminator="\n", ) handle.write(";\n") @@ -171,7 +176,12 @@ def _write_set(self, df: pd.DataFrame, set_name, handle: TextIO): """ handle.write("set {} :=\n".format(set_name)) df.to_csv( - path_or_buf=handle, sep=" ", header=False, index=False, float_format="%g", lineterminator="\n" + path_or_buf=handle, + sep=" ", + header=False, + index=False, + float_format="%g", + lineterminator="\n", ) handle.write(";\n")