You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This means only the last restriction added from ExportSelection matters and is traced, resulting in missing entries in the export.
To Reproduce
In the franklab database:
fromspyglass.common.common_usageimportunique_dictspaper_key= {"paper_id": "oct2024_testing_v4"}
table_restr= {"table_name":"`lfp_electrode`.`l_f_p_electrode_group__l_f_p_electrode`"}
table_key= {**paper_key, **table_restr}
ExportSelection() *ExportSelection.Table&table_key# contains 3 unique entries, with 3 values in `lfp_electrode`.`l_f_p_electrode_group__l_f_p_electrode`ExportSelection().get_restr_graph(table_key).leaf_ft# has only a single entry in the table
Solution ideas
In ExportSelection.get_restr_graph combine the uniques restrictions for the same table using a dj.OrList()
The text was updated successfully, but these errors were encountered:
Additional note: the restriction strings placed in the ExportSelection.Table() entries do not all have balanced parentheses (saw multiple with dangling parentheses on the end. This causes issues whith the OR logic when applying them together as a list.
I ran update on the restrictions captured here to remove unbalanced parens, and found the leaf node updated appropriately. I've pushed an update to #1164 that should fix the unbalanced parens issue, and I've also rerun the Export.populate/resulting shell script. The _Populate.sql is updated in the relevant export folder
Describe the bug
ExportSelection.Table
ExportSelection
matters and is traced, resulting in missing entries in the export.To Reproduce
In the franklab database:
Solution ideas
ExportSelection.get_restr_graph
combine the uniques restrictions for the same table using adj.OrList()
The text was updated successfully, but these errors were encountered: