flake8 compliance without E501of utils.py

This commit is contained in:
jkuhl-uni 2022-01-14 21:12:08 +01:00
parent 62cb0ab1bb
commit dc6b844fa4

View file

@ -1,14 +1,15 @@
"""Utilities for the input"""
def check_idl(idl,che):
def check_idl(idl, che):
missing = []
for c in che:
if not c in idl:
if c not in idl:
missing.append(c)
#print missing such that it can directly be parsed to slurm terminal
# print missing such that it can directly be parsed to slurm terminal
if not (len(missing) == 0):
print(len(missing),"configs missing")
print(len(missing), "configs missing")
miss_str = str(missing[0])
for i in missing[1:]:
miss_str += ","+str(i)
miss_str += "," + str(i)
print(miss_str)