Commit 2b3c515d authored by Lauri Himanen's avatar Lauri Himanen
Browse files

Updated representative system test so that subsystem references are supported.

parent 7dbb9d0a
Pipeline #74320 passed with stages
in 23 minutes and 25 seconds
......@@ -195,6 +195,15 @@ def test_representative_systems(single_point, molecular_dynamics, geometry_optim
scc = frames[-1]
repr_system = scc.single_configuration_calculation_to_system_ref
# If the selected system refers to a subsystem, choose it instead.
system_ref = repr_system.section_system_to_system_refs[0]
ref_kind = system_ref.system_to_system_kind
if ref_kind == "subsystem":
repr_system = system_ref.system_to_system_ref
except Exception:
# Check that only the representative system has been labels with
# "is_representative"
for system in backend.entry_archive.section_run[0].section_system:
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment