-
Notifications
You must be signed in to change notification settings - Fork 42
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
Merge table multi-source error specificity #609
Comments
Hi Mike, it looks like that entry doesn't exist in pos_key = (PositionOutput.CommonPos & {
"nwb_file_name": nwb_file_name,
"position_info_param_name": "default_decoding",
"interval_list_name": interval_list_name,
}).fetch1("KEY") |
Here is a command to insert entries from IntervalPositionInfo into PositionOutput
|
Reopening to track adding error specificity to f"Found {len(sources)} potential part(s): {sources}\n\t" |
* Restructure for mkdocs * Minor docstring edits for mkdocs * Adjust installer docs * Permit json config * Update docstrings for mkdocs. Add images * Minor fixes. Rename publish action. Add changelog notes * hard wrap changes, markdownlint * blackify * Fix version cmd. Minor doc wording * mkdocstrings require empty inits to identify submodules * 🤦♂️ Publish docs CI/CD `main`->`master` * Edit `get_part`; Add `merge_fetch` * Spelling fixes * Refactor restrict_parts. Adjust mkdocs nav. * Docs adjust for Merge tables * Fix `merge_get_part` * Use hatch for docs version * Update changelog * Typo * Spellcheck config * WIP: dict/str ristrict consistency * Normalize restriction/classmeth. Add notes on why * Typos * Docs publish on tag * Edit changelog: Add links, patch version bump * 🧪 Test gh-actions debug * get-part multi-source flag * Add mutual exclusivity flag from pos branch * See details. Notebook work, config overhaul gitignore: add exclude example config mkdocs: new notebook names notebooks: complete revamp for minirec data and more links to docs init: add new load_config, isort imports common_lab: - adjust to accept names in Last, First format (nwb-compliant) - continue to use First Last name structure in database - yes? common_nwb: use new load_config, change `assert` to `raise` insert_sessions: permit paths, use file name, use raw dir storage_dirs: remove redundant funcs for base_dir settings: implement new base_dir system - allows base/raw/etc to be independent - defaults to dj.config, then env vars, then sets default rel paths * WIP: fix failing tests related to base_dir edits * underscore-prefix Merge. Linter fixes * See Details. Notebook overhaul - dj_config: accept base dir as arg, refactor for single responsibility - mkdocs, installation.md - condense installation information to single page - reference new notebook - remove local and production subpages due to redundancy - environment and env_position.yml: add install current dir to avoid additional step in installation process - notebooks: rewrite with Docker optional and minirec as demo data - common_lab: raise error for invalid name - common_position: get raw dir from settings, not hardcode - settings.py: Should this be a class with properties? - add options for kachery dirs set via same dj_config mechanism - add raw_dir helper function * remove note to self * WIP notebook edits * Revise 04_LFP nb * Fix #614 * Fix #609
* Restructure for mkdocs * Minor docstring edits for mkdocs * Adjust installer docs * Permit json config * Update docstrings for mkdocs. Add images * Minor fixes. Rename publish action. Add changelog notes * hard wrap changes, markdownlint * blackify * Fix version cmd. Minor doc wording * mkdocstrings require empty inits to identify submodules * 🤦♂️ Publish docs CI/CD `main`->`master` * Edit `get_part`; Add `merge_fetch` * Spelling fixes * Refactor restrict_parts. Adjust mkdocs nav. * Docs adjust for Merge tables * Fix `merge_get_part` * Use hatch for docs version * Update changelog * Typo * Spellcheck config * WIP: dict/str ristrict consistency * Normalize restriction/classmeth. Add notes on why * Typos * Docs publish on tag * Edit changelog: Add links, patch version bump * 🧪 Test gh-actions debug * get-part multi-source flag * Add mutual exclusivity flag from pos branch * See details. Notebook work, config overhaul gitignore: add exclude example config mkdocs: new notebook names notebooks: complete revamp for minirec data and more links to docs init: add new load_config, isort imports common_lab: - adjust to accept names in Last, First format (nwb-compliant) - continue to use First Last name structure in database - yes? common_nwb: use new load_config, change `assert` to `raise` insert_sessions: permit paths, use file name, use raw dir storage_dirs: remove redundant funcs for base_dir settings: implement new base_dir system - allows base/raw/etc to be independent - defaults to dj.config, then env vars, then sets default rel paths * WIP: fix failing tests related to base_dir edits * underscore-prefix Merge. Linter fixes * See Details. Notebook overhaul - dj_config: accept base dir as arg, refactor for single responsibility - mkdocs, installation.md - condense installation information to single page - reference new notebook - remove local and production subpages due to redundancy - environment and env_position.yml: add install current dir to avoid additional step in installation process - notebooks: rewrite with Docker optional and minirec as demo data - common_lab: raise error for invalid name - common_position: get raw dir from settings, not hardcode - settings.py: Should this be a class with properties? - add options for kachery dirs set via same dj_config mechanism - add raw_dir helper function * remove note to self * WIP notebook edits * Revise 04_LFP nb * Reorder/revise notebooks; #609 * Notebook formatting * Remove old * jupytext backup note * Blackify py scrips. Continue config changes * WIP: notebooks, plus improved merge_delete_downstream * WIP: PositionSource add part table * Refactor trodes position #613 * WIP: Fix Trodes Video * WIP: Spellcheck. Remove debug params. Remove assigned lambda E713 * WIP: Pass tests. Remove codespell offending link * WIP: blackify * Selective fetch from cbroz/master * Fetch additional file from cbroz1/master to pass CI/CD * Add RawPos fetch method implementations. Object -> PosObject * Refactor PosIntervalMap helpers * Revert typo * Bugfixes for ripple * Blackify * WIP: minor edits * Add restriction to fetch1_dataframe * Update Trodes notebook, revise others * Set pos id default for migration. Rename Trodes params * Fix typos * Spelling; Jupytext sync; Blackify * Edit gitignore for new notebook numbering * Update changelog and notebooks * Refactor position helpers * Minor position_trodes fixes
* Restructure for mkdocs * Minor docstring edits for mkdocs * Adjust installer docs * Permit json config * Update docstrings for mkdocs. Add images * Minor fixes. Rename publish action. Add changelog notes * hard wrap changes, markdownlint * blackify * Fix version cmd. Minor doc wording * mkdocstrings require empty inits to identify submodules * 🤦♂️ Publish docs CI/CD `main`->`master` * Edit `get_part`; Add `merge_fetch` * Spelling fixes * Refactor restrict_parts. Adjust mkdocs nav. * Docs adjust for Merge tables * Fix `merge_get_part` * Use hatch for docs version * Update changelog * Typo * Spellcheck config * WIP: dict/str ristrict consistency * Normalize restriction/classmeth. Add notes on why * Typos * Docs publish on tag * Edit changelog: Add links, patch version bump * 🧪 Test gh-actions debug * get-part multi-source flag * Add mutual exclusivity flag from pos branch * See details. Notebook work, config overhaul gitignore: add exclude example config mkdocs: new notebook names notebooks: complete revamp for minirec data and more links to docs init: add new load_config, isort imports common_lab: - adjust to accept names in Last, First format (nwb-compliant) - continue to use First Last name structure in database - yes? common_nwb: use new load_config, change `assert` to `raise` insert_sessions: permit paths, use file name, use raw dir storage_dirs: remove redundant funcs for base_dir settings: implement new base_dir system - allows base/raw/etc to be independent - defaults to dj.config, then env vars, then sets default rel paths * WIP: fix failing tests related to base_dir edits * underscore-prefix Merge. Linter fixes * See Details. Notebook overhaul - dj_config: accept base dir as arg, refactor for single responsibility - mkdocs, installation.md - condense installation information to single page - reference new notebook - remove local and production subpages due to redundancy - environment and env_position.yml: add install current dir to avoid additional step in installation process - notebooks: rewrite with Docker optional and minirec as demo data - common_lab: raise error for invalid name - common_position: get raw dir from settings, not hardcode - settings.py: Should this be a class with properties? - add options for kachery dirs set via same dj_config mechanism - add raw_dir helper function * remove note to self * WIP notebook edits * Revise 04_LFP nb * Reorder/revise notebooks; #609 * Notebook formatting * Remove old * jupytext backup note * Blackify py scrips. Continue config changes * Refactor common * WIP: notebooks, plus improved merge_delete_downstream * WIP: PositionSource add part table * Refactor trodes position #613 * WIP: Fix Trodes Video * WIP: Spellcheck. Remove debug params. Remove assigned lambda E713 * WIP: Pass tests. Remove codespell offending link * WIP: blackify * Selective fetch from cbroz/master * Fetch additional file from cbroz1/master to pass CI/CD * Add RawPos fetch method implementations. Object -> PosObject * Refactor PosIntervalMap helpers * Revert typo * Bugfixes for ripple * Blackify * WIP: minor edits * Add restriction to fetch1_dataframe * Update Trodes notebook, revise others * Set pos id default for migration. Rename Trodes params * Fix typos * Spelling; Jupytext sync; Blackify * Edit gitignore for new notebook numbering * Update changelog and notebooks * Refactor position helpers * Minor position_trodes fixes * Docs fixes * Minor docs nav rename * Fix typos * Config to OOP. And #365 * Fix failing test from prev commit. Also #585 * Fixes from review comments
i'm trying to get position (to get speed) for ripple detection.
this will find a single entry in IntervalPositionInfo
IntervalPositionInfo() & {"nwb_file_name": 'tonks20211027_.nwb'} & {'interval_list_name':'pos 1 valid times'}
but when i try this:
i get this error:
any ideas how to have a more specific query? thanks.
The text was updated successfully, but these errors were encountered: