Compare commits

...

2 Commits

Author SHA1 Message Date
b56c75849c All branches pushes to git.reslate.systems now
Some checks failed
automlst.cli/pipeline/head This commit looks good
automlst.cli/pipeline/tag There was a failure building this commit
2025-03-07 16:10:11 +00:00
09cc9787fd Fixed --csv output being blank when listing dbs
Some checks reported errors
automlst.cli/pipeline/head Something is wrong with the build of this commit
2025-03-07 16:08:25 +00:00
2 changed files with 13 additions and 16 deletions

4
Jenkinsfile vendored
View File

@ -37,10 +37,6 @@ pipeline {
stage("publish") {
parallel {
stage ("git.reslate.systems") {
when {
branch '**/main'
}
environment {
CREDS = credentials('username-password-rs-git')
}

View File

@ -53,18 +53,19 @@ async def run(args: Namespace):
writer.writerows(sorted_seqdef_dbs)
print("\nDatabase output written to {0}".format(args.csv_output))
csv_scheme_rows = []
for bigsdb_scheme_name in args.list_bigsdb_schemes:
schemes = await bigsdb_index.get_schemes_for_seqdefdb(bigsdb_scheme_name)
csv_scheme_rows.extend([(name, id, bigsdb_scheme_name) for name, id in sorted(schemes.items())])
print("The following are the known schemes for \"{0}\", and their associated IDs:".format(bigsdb_scheme_name))
print("\n".join(["{0}: {1}".format(name, id) for name, id, database in csv_scheme_rows]))
if args.csv_output:
with open(args.csv_output, "w") as csv_out_handle:
writer = csv.writer(csv_out_handle)
writer.writerow(("Name", "ID", "Database Name"))
writer.writerows(csv_scheme_rows)
print("\nscheme list output written to {0}".format(args.csv_output))
if args.list_bigsdb_schemes:
csv_scheme_rows = []
for bigsdb_scheme_name in args.list_bigsdb_schemes:
schemes = await bigsdb_index.get_schemes_for_seqdefdb(bigsdb_scheme_name)
csv_scheme_rows.extend([(name, id, bigsdb_scheme_name) for name, id in sorted(schemes.items())])
print("The following are the known schemes for \"{0}\", and their associated IDs:".format(bigsdb_scheme_name))
print("\n".join(["{0}: {1}".format(name, id) for name, id, database in csv_scheme_rows]))
if args.csv_output:
with open(args.csv_output, "w") as csv_out_handle:
writer = csv.writer(csv_out_handle)
writer.writerow(("Name", "ID", "Database Name"))
writer.writerows(csv_scheme_rows)
print("\nscheme list output written to {0}".format(args.csv_output))
def run_asynchronously(args: Namespace):
asyncio.run(run(args))