System Details
- Python 3.11.11
- Scenic main branch
- macOS 15.6.1 (MacBook Air M1)
Detailed Description
Adding a test for external parameters declared inside a setup block causes an AssertionError in checkVeneerIsInactive().
This was added to tests/syntax/test_verifai_samplers.py and uses compileScenic, which calls checkVeneerIsInactive().
Observed error:
> assert not veneer._globalParameters
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
E AssertionError
tests/utils.py:262: AssertionError
Steps To Reproduce
# tests/syntax/test_verifai_samplers.py
def test_external_params_in_setup_block():
scenario = compileScenic(
"""
from scenic.core.external_params import ExternalParameter
scenario Main():
setup:
param externalSampler = 0
# A = ExternalParameter()
# B = ExternalParameter()
A, B = 0, 0
""",
scenario="Main",
)
Issue Submission Checklist
System Details
Detailed Description
Adding a test for external parameters declared inside a
setupblock causes anAssertionErrorincheckVeneerIsInactive().This was added to
tests/syntax/test_verifai_samplers.pyand usescompileScenic,which callscheckVeneerIsInactive().Observed error:
Steps To Reproduce
Issue Submission Checklist