Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion proj_ver
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
export PROJ_NAME=pyibis_ami
export PROJ_VER=7.2.10
export PROJ_VER=7.3.2
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ build-backend = "setuptools.build_meta"
[project]
name = "pyibis-ami"
description = "Facilitates working directly with IBIS-AMI DLLs from the Python command prompt."
version = "7.3.1"
version = "7.3.2"
authors = [ {name = "David Banas", email = "capn.freako@gmail.com"}
]
readme = "README.md"
Expand Down
2 changes: 2 additions & 0 deletions src/pyibisami/ami/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -696,6 +696,8 @@ def make_gui_items( # pylint: disable=too-many-locals,too-many-branches
else:
val = default if default else param.pvalue[0]
the_trait = Enum([val] + param.pvalue)
case "Corner":
the_trait = Trait(param.pvalue[0]) # Using `Typ` value, for now.
case _:
raise ValueError(f"Unrecognized AMI parameter format: {pformat}, for parameter `{pname}` of type `{param.ptype}` and usage `{param.pusage}`!")
if the_trait.metadata:
Expand Down
8 changes: 7 additions & 1 deletion tests/ami/test_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,12 @@ def test_ami_config():
(Range 0 0 10 )
(Description "Second post-tap." )
)
(corner_test
(Usage In )
(Type Integer )
(Format Corner 1 0 2 )
(Description "Dummy parameter, using `Corner` formatting." )
)
)

)
Expand All @@ -78,7 +84,7 @@ def test_AMIParamConfigurator_without_GUI(self, test_ami_config):
ami = ami_parser.AMIParamConfigurator(test_ami_config)
assert ami._root_name == "example_tx"
assert ami._ami_parsing_errors == ""
test_keys = ("tx_tap_units", "tx_tap_np1", "tx_tap_nm1", "tx_tap_nm2")
test_keys = ("tx_tap_units", "tx_tap_np1", "tx_tap_nm1", "tx_tap_nm2", "corner_test")
assert all(key in ami.ami_param_defs["Model_Specific"] for key in test_keys)
assert ami.ami_param_defs["Model_Specific"]["tx_tap_units"].pvalue == 27
assert ami.ami_param_defs["Reserved_Parameters"]["AMI_Version"].pvalue == "5.1"
Expand Down