mirror of
https://github.com/fjosw/pyerrors.git
synced 2025-03-15 06:40:24 +01:00
flake8 compliance without E501of utils.py
This commit is contained in:
parent
62cb0ab1bb
commit
dc6b844fa4
1 changed files with 6 additions and 5 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue