diff options
author | Eugeniy E. Mikhailov <evgmik@gmail.com> | 2024-07-14 22:02:57 -0400 |
---|---|---|
committer | Eugeniy E. Mikhailov <evgmik@gmail.com> | 2024-07-14 22:02:57 -0400 |
commit | b7ba7bf22a71ea59cb0cadad366e8f527dffe0b2 (patch) | |
tree | 44540efb924f13f913c0f2cce7a963a7d72dd16c /qolab | |
parent | ef2279a26ad948cbeb302674ca142a24e23f1fd9 (diff) | |
download | qolab-b7ba7bf22a71ea59cb0cadad366e8f527dffe0b2.tar.gz qolab-b7ba7bf22a71ea59cb0cadad366e8f527dffe0b2.zip |
black formatter
Diffstat (limited to 'qolab')
-rw-r--r-- | qolab/gui/web.py | 4 | ||||
-rw-r--r-- | qolab/tableflow/__init__.py | 2 |
2 files changed, 2 insertions, 4 deletions
diff --git a/qolab/gui/web.py b/qolab/gui/web.py index b4bc3ad..4952adb 100644 --- a/qolab/gui/web.py +++ b/qolab/gui/web.py @@ -105,9 +105,7 @@ class QOLTimeLog(jp.Div): root.set_classes(panel_div_classes) dcontrols = jp.Div(a=root) dcontrols.set_classes(controls_div_classes) - QOLPushButtonNoUndo( - a=dcontrols, text="Clear log", click=self._clear_data - ) + QOLPushButtonNoUndo(a=dcontrols, text="Clear log", click=self._clear_data) QOLPushButton(a=dcontrols, text="Replot", click=self._replot) self.update_interval = QOLParamReadOnly( label="UpdateInterval", value=5, a=dcontrols diff --git a/qolab/tableflow/__init__.py b/qolab/tableflow/__init__.py index 15180ca..c83bd61 100644 --- a/qolab/tableflow/__init__.py +++ b/qolab/tableflow/__init__.py @@ -70,7 +70,7 @@ def ilocRowOrAdd(tbl, row): res[col] = tSub[col].isna() else: igood = tSub[col].notna() - res.loc[igood, col] = (tSub.loc[igood, col] == row[col]) + res.loc[igood, col] = tSub.loc[igood, col] == row[col] imissing = tSub[col].isna() res.loc[imissing, col] = False res = res.all(axis=1) # which rows coincide |