From a8d1ecc127ee1cc837c6c9c10894838ecb7decdb Mon Sep 17 00:00:00 2001 From: mavaylon1 Date: Tue, 31 Oct 2023 11:42:12 -0700 Subject: [PATCH] path --- docs/gallery/plot_external_resources.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/docs/gallery/plot_external_resources.py b/docs/gallery/plot_external_resources.py index cc007dc44..1659f8174 100644 --- a/docs/gallery/plot_external_resources.py +++ b/docs/gallery/plot_external_resources.py @@ -322,8 +322,11 @@ def __init__(self, **kwargs): # :py:func:`~hdmf.common.resources.HERD.add_ref_termset` has many optional fields, # giving the user a range of control when adding references. Let's see an example. +dir_path = os.path.dirname(os.path.abspath(__file__)) +yaml_file = os.path.join(dir_path, 'example_term_set.yaml') + er = HERD() -terms = TermSet(term_schema_path='tests/unit/example_test_term_set.yaml') +terms = TermSet(term_schema_path=yaml_file) file = HERDManagerContainer(name='file') er.add_ref_termset(file=file,