Skip to content

Commit

Permalink
gallery
Browse files Browse the repository at this point in the history
  • Loading branch information
mavaylon1 committed Oct 19, 2023
1 parent ba0a0ac commit 932e654
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/gallery/plot_term_set.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@
# spreadsheet, the spreadsheet needs to be saved as individual tsv files, i.e., one tsv file per spreadsheet tab. Please
# refer to the Schemasheets tutorial link above for more details on the required syntax structure within the sheets.
# Once the tsv files are in a folder, the user simply provides the path to the folder with ``schemasheets_folder``.
termset = TermSet(name='example', schemasheets_folder=schemasheets_folder)
termset = TermSet(schemasheets_folder=schemasheets_folder)

# Use Dynamic Enumerations to populate TermSet
# --------------------------------------------
Expand All @@ -102,7 +102,7 @@
# Please refer to the LinkMl Dynamic Enumeration tutorial for more information on these sources and how to setup Dynamic
# Enumerations within the schema. Once the schema is ready, the user provides a path to the schema and set
# ``dynamic=True``. A new schema, with the populated permissible values, will be created in the same directory.
termset = TermSet(name='example', term_schema_path=dynamic_schema_path, dynamic=True)
termset = TermSet(term_schema_path=dynamic_schema_path, dynamic=True)

######################################################
# Viewing TermSet values
Expand All @@ -111,7 +111,7 @@
# method will return a dictionary of all the terms and the corresponding information for each term.
# Users can index specific terms from the :py:class:`~hdmf.term_set.TermSet`. LinkML runtime will need to be installed.
# You can do so by first running ``pip install linkml-runtime``.
terms = TermSet(name='example', term_schema_path=yaml_file)
terms = TermSet(term_schema_path=yaml_file)
print(terms.view_set)

# Retrieve a specific term
Expand Down

0 comments on commit 932e654

Please sign in to comment.