From 2dad67ea746e344413d2f97bd8bc7d152a1b7c44 Mon Sep 17 00:00:00 2001 From: skeating Date: Thu, 9 Nov 2023 11:44:42 +0000 Subject: [PATCH] found where I was leaving is_sbml set --- .../test_cpp/test-extension/TestcaseExtension.cpp | 4 +++- .../pytest_files/test_cpp/test-extension/TestcaseExtension.h | 4 +++- deviser/util/global_variables.py | 3 ++- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/deviser/pytest_files/test_cpp/test-extension/TestcaseExtension.cpp b/deviser/pytest_files/test_cpp/test-extension/TestcaseExtension.cpp index 7e347674..a8f99622 100644 --- a/deviser/pytest_files/test_cpp/test-extension/TestcaseExtension.cpp +++ b/deviser/pytest_files/test_cpp/test-extension/TestcaseExtension.cpp @@ -665,4 +665,6 @@ ExtraLong_isValidString(const char* code) -LIBSBML_CPP_NAMESPACE_END \ No newline at end of file +LIBSBML_CPP_NAMESPACE_END + + diff --git a/deviser/pytest_files/test_cpp/test-extension/TestcaseExtension.h b/deviser/pytest_files/test_cpp/test-extension/TestcaseExtension.h index b558a43d..0876add5 100644 --- a/deviser/pytest_files/test_cpp/test-extension/TestcaseExtension.h +++ b/deviser/pytest_files/test_cpp/test-extension/TestcaseExtension.h @@ -746,4 +746,6 @@ LIBSBML_CPP_NAMESPACE_END -#endif /* !TestcaseExtension_H__ */ \ No newline at end of file +#endif /* !TestcaseExtension_H__ */ + + diff --git a/deviser/util/global_variables.py b/deviser/util/global_variables.py index a952fd55..4a843956 100644 --- a/deviser/util/global_variables.py +++ b/deviser/util/global_variables.py @@ -192,10 +192,11 @@ def set_globals(lang, base, doc, prfix, lib, is_pack, pkg_prefix, specifications=[], depend=[], library_vers=[], my_copyright='', annot_elem='', notes_elem='', use_id_1=True, use_name_1=True, ast=False, xml=False, top_name=''): + global is_sbml + is_sbml = True global language language = lang if language != 'sbml': - global is_sbml is_sbml = False global namespaces