Skip to content

Bad entries in Hall D CCDB? #73

@sdobbs

Description

@sdobbs

While tracking down an issue related to the SQLite files used in Hall D (JeffersonLab/halld_sim#178 (comment)), I noticed that there is some weird issue in getting assignments from a couple of tables. Basically, I am trying to loop through all the assignments for each table to track down problematic comment field data.

In two cases, I get the following error:
checking /FDC/fdc_drift ...
Traceback (most recent call last):
File "search.py", line 65, in
main()
File "search.py", line 57, in main
assigns = ccdb1.get_assignments(table.path)
File "/group/halld/Software/builds/Linux_CentOS7.7-x86_64-gcc4.8.5/ccdb/ccdb_1.06.06/python/ccdb/provider.py", line 1123, in get_assignments
table = self.get_type_table(path_or_table)
File "/group/halld/Software/builds/Linux_CentOS7.7-x86_64-gcc4.8.5/ccdb/ccdb_1.06.06/python/ccdb/provider.py", line 481, in get_type_table
table = query.one()
File "/group/halld/Users/sdobbs/rcdb/python/sqlalchemy/orm/query.py", line 2817, in one
"Multiple rows were found for one()")
sqlalchemy.orm.exc.MultipleResultsFound: Multiple rows were found for one()

Any idea what could be causing this? I have attached a script that can reproduce the problem: search.py.txt

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions