-
Notifications
You must be signed in to change notification settings - Fork 301
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
Dont read from layouts and dependencies tables in QCoDeS #1572
Dont read from layouts and dependencies tables in QCoDeS #1572
Conversation
6ea5f02
to
7b76730
Compare
to substitute sqlite->get_non_dependencies
... instead of get_non_dependencies, get_parameter_dependencies
instead of sqlite get_non_dependencies
instead of sqlite get_non_dependencies
instead of sqlite get_non_dependencies
instead of sqlite get_dependents, get_dependencies, get_layout (and also DataSet.get_values, DataSet.get_setpoints, and flatten_1D_data_for_plot).
The following functions have raising DeprecationWarning at the beginning of the their bodies: - get_layout - get_non_dependencies - get_parameter_dependencies The following functions were made 'private' (using underscore in their name) and the 'public' versions of those functions were made to raise the DeprecationWarning (this is done in order to detect if qcodes still has code that uses these functions which read from layouts and dependencies tables): - get_layout_id - get_dependents - get_dependencies - get_parameters - get_paramspec
7b76730
to
91b4695
Compare
…odes into dont-use-layout-dependencies
I'd say this PR is ready for review. Note that it is not completely true that we don't read from I think the big news in this PR is that @QCoDeS/core |
do you mean the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
as the original creator of this PR i can't approve it, so i just approve it in a comment here :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
This PR removes usage of functions which read information from
layouts
anddependencies
tables. Reading information fromlayouts
anddependencies
tables is substituted with readingRunDescriber
object (stored inrun_description
column ofruns
table). This PR does NOT remove writing tolayouts
anddependencies
tables, this will be done in another PR.The big news in this PR is that
get_data_by_id
and thusplot_by_id
is now free from using thelayouts
anddependencies
tables.This PR is just one of the PRs on the way towards removing the
layouts
anddependencies
tables completely from QCoDeS database.ToDo:
flatten
data arraysget_data_by_id
or not? the tests ofget_data_by_id
say "yes". but perhaps when plot_by_id is improved (that's in a different PR) then it can use get_parameter_data directly, and thenget_data_by_id
can be deprecated; but within the scope of this PR we just make sure that the tests work and plotting notebooks still produce correct plots (since plot_by_id uses get_data_by_id that is drastically adjusted in this PR)