Hi,
this is a bug which was introduced in V2.2.0 when I added support for mixed-mode S-parameters in 2018.
This will be fixed in the upcoming V2.9.x.
In the mean time you can use the following workaround:
# script.SubsetAndChangePortAssignment('test.s2p', '1,-1', 'test_S11.s1p')
script.Subset('test.s2p', '1', 'test_S11.sdatb')
# script.SubsetAndChangePortAssignment('test.s2p', '-1,1', 'test_S22_at_S11.sdatb')
script.Subset('test.s2p', '2', 'test_S22.sdatb')
script.ChangePortAssignment('test_S22.sdatb', '1', 'test_S22_at_S11.sdatb')
see
Regards
Michael