Skip to content
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

add example to Creating a virtual class docs #199 #261

Merged
merged 2 commits into from
Sep 11, 2020
Merged

add example to Creating a virtual class docs #199 #261

merged 2 commits into from
Sep 11, 2020

Conversation

ixcat
Copy link
Contributor

@ixcat ixcat commented Aug 7, 2020

See also: #199

…l example.

................................................................................
Copy link
Collaborator

@guzman-raphael guzman-raphael left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As we do not currently have tests related to docs, could you point this directly to master? Will skip a PR and likely reduce collision and management of other open PR's.

Tab completion of table names is possible because the table names are added as dynamic properties of ``TableAccessor``.
To facilitate working with existing pipelines, DataJoint MATLAB creates a ``TableAccessor`` property in each schema object.
The ``TableAccessor`` property, a *virtual class generator*, is available as ``schema.v``, and allows listing and querying of the tables defined on the server without needing to create the MATLAB table definitions locally.
For example, creating a scratch ``experiment`` schema package and querying an existing ``my_experiment.Session`` table on the server can be done as follows::
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
For example, creating a scratch ``experiment`` schema package and querying an existing ``my_experiment.Session`` table on the server can be done as follows::
For example, creating a scratch ``experiment`` schema package and querying an existing ``my_experiment.Session`` table on the server can be done as follows:

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Incorrect previous suggestion.

@guzman-raphael guzman-raphael changed the base branch from stage to master September 11, 2020 17:46
@guzman-raphael guzman-raphael merged commit 34c51d0 into datajoint:master Sep 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants