Skip to content

Commit 7ef4fc4

Browse files
fix: specifically check for None data amd accept data == 0
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
1 parent 66e5cf4 commit 7ef4fc4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • src/gh/components/DF_csv_exporter

‎src/gh/components/DF_csv_exporter/code.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ def RunScript(self,
198198
dist_err_list = []
199199
rot_err_list = []
200200
for data in assembly_dist_err_hist[i]:
201-
if data :
201+
if data is not None:
202202
dist_err_list.append(float(data))
203203
else:
204204
dist_err_list.append("nan")

0 commit comments

Comments
 (0)