Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

runalyzer-gather: check if file exists before creating tables #161

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

matthiasdiener
Copy link
Member

@matthiasdiener matthiasdiener commented Jan 15, 2025

Otherwise, a strange error message is shown:

before:

$ runalyzer-gather out.sqlite mpi*sqlite
Scanning...          [########################################] ETA ?
Traceback (most recent call last):
  File "/Users/mdiener/Work/emirge/miniforge3/envs/sqlite/bin/runalyzer-gather", line 57, in <module>
    main()
  File "/Users/mdiener/Work/emirge/miniforge3/envs/sqlite/bin/runalyzer-gather", line 53, in main
    gather_multi_file(outfile, infiles, fmap, qmap, fg, features, dbname_to_run_id)
  File "/Users/mdiener/Work/emirge/logpyle/logpyle/runalyzer_gather.py", line 246, in gather_multi_file
    db_conn.execute("create table runs ({})".format(",".join(run_columns)))
sqlite3.OperationalError: table runs already exists

after:

$ runalyzer-gather ../logpyle/out.sqlite mpi*sqlite
Scanning...          [########################################] ETA ?
Error: output file '../logpyle/out.sqlite' already exists, exiting.

@matthiasdiener matthiasdiener self-assigned this Jan 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant