spyglass
spyglass copied to clipboard
Insertion error in fresh database
- When populating
LinearizedPositionV1
for the first time in a database, I got an error that cannot call make within a transaction. - I think what happened is that the "position_linearization_merge" schema had not yet been made, and it tried to do so at this point
https://github.com/LorenFrankLab/spyglass/blob/10bf4accb177500ab3f14b313cfc473637e38119/src/spyglass/linearization/v1/main.py#L180
- This left the database in a state where
LinearizedPositionV1
was populated for the entry, but the corresponding part table inPositionOutput
was not.
Solution @CBroz1 Is there a preferred way to ensure that the LinearizedPositionOutput table is constructed before this step?