mirror of
https://github.com/fjosw/pyerrors.git
synced 2025-05-14 19:43:41 +02: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"""
|
"""Utilities for the input"""
|
||||||
|
|
||||||
def check_idl(idl,che):
|
|
||||||
|
def check_idl(idl, che):
|
||||||
missing = []
|
missing = []
|
||||||
for c in che:
|
for c in che:
|
||||||
if not c in idl:
|
if c not in idl:
|
||||||
missing.append(c)
|
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):
|
if not (len(missing) == 0):
|
||||||
print(len(missing),"configs missing")
|
print(len(missing), "configs missing")
|
||||||
miss_str = str(missing[0])
|
miss_str = str(missing[0])
|
||||||
for i in missing[1:]:
|
for i in missing[1:]:
|
||||||
miss_str += ","+str(i)
|
miss_str += "," + str(i)
|
||||||
print(miss_str)
|
print(miss_str)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue