Skip to main content

DPF Mechanical 2026 R1

adapt_with_scopings_container class

Last update: 18.06.2026

Namespace: Ans.DataProcessing.operators.scoping

Summary

Rescopes/splits a fields container to correspond to a scopings container. Each field from the input container is rescoped using each scoping from the scopings container, creating a cartesian product of rescoped fields.

available inputs: field_or_fields_container (FieldsContainer, Field), scopings_container (ScopingsContainer), keep_empty_fields (bool) (optional)

available outputs: fields_container (FieldsContainer)

Example

op = adapt_with_scopings_container()

op = adapt_with_scopings_container(field_or_fields_container=my_field_or_fields_container,scopings_container=my_scopings_container,keep_empty_fields=my_keep_empty_fields)

Class Information

Property Value
Namespace Ans.DataProcessing.operators.scoping
Assembly Ans_Dpf_Native_dll_cs
Base Class Ans.DataProcessing.internal_objects.BaseOperator

Inputs

field_or_fields_container

Fields container to rescope, or a single field (which will be converted to a container)

Type: LinkableInput

scopings_container

Container with target scopings for rescoping operations

Type: LinkableInput

keep_empty_fields

Whether to keep fields that become empty after rescoping. Default is false.

Type: LinkableInput

Outputs

fields_container

Fields container with rescoped fields, combining labels from input fields and scopings

Type: LinkableOutput

Constructors

Constructor

adapt_with_scopings_container()

Constructor

adapt_with_scopings_container(field_or_fields_container, scopings_container, keep_empty_fields, config)

Parameters:

  • field_or_fields_container (object)
  • scopings_container (object)
  • keep_empty_fields (object)
  • config (OperatorConfig)

Constructor

adapt_with_scopings_container(config)

Parameters:

  • config (OperatorConfig)

Methods

Properties

inputs

Type: InputSpec

# Get or set the property
value = obj.inputs
obj.inputs = new_value

outputs

Type: OutputSpec

# Get or set the property
value = obj.outputs
obj.outputs = new_value

defaultConfig

Type: Config

# Get the property (read-only)
value = obj.defaultConfig

Connect with Ansys