scope_harness.Department
- class scope_harness.Department
Represents a read-only view of a department returned by a scope. Use id, label, all_label properties to inspect it, and children property or child method to inspect child departments (instances of ChildDepartment). This class supports __getitem__ call, which acts as a shortcut for child(index) method, and responds to __len__ call, so python’s len(department) may be used instead of department.size