metadata:time freq support get attribute
Last update: 31.07.2026Version: 0.0.0
Description
Uses the TimeFreqSupport APIs to return a given attribute of the scoping in input.
Inputs
This table lists the input pins for this operator. Input pins define the data that the operator requires to perform its operation. Some inputs are required, while others are optional and provide additional configuration. Each parameter is detailed in the sections that follow the table.
| Pin number | Name | Status | Expected type(s) |
|---|---|---|---|
| 0 | time_freq_support | Required | time_freq_support |
| 1 | property_name | Required | string |
| 2 | property_identifier | int32, scoping |
|
| 3 | property_identifier_2 | int32 |
time_freq_support (Pin 0)
- Required: Yes
- Expected type(s):
time_freq_support
property_name (Pin 1)
- Required: Yes
- Expected type(s):
string
Supported property names are: "time_freqs", "imaginary_freqs", "frequency_tolerance", "set_id", "cummulative_index", "sets_freqs", "step_id_from_harmonic_index".
property_identifier (Pin 2)
Additional pin for properties "set_id" and "cummulative_index": the step id, for "sets_freqs": the sets scoping, for "step_id_from_harmonic_index" : the harmonic index.
property_identifier_2 (Pin 3)
- Required: No
- Expected type(s):
int32
Additional pin for properties "set_id" and "cummulative_index": the substep id (if none, last substep is considered).
Outputs
This table lists the output pins for this operator. Output pins provide the results of the operator's computation and can be connected to inputs of other operators or retrieved for further processing. Each output is detailed in the sections that follow the table.
| Pin number | Name | Expected type(s) |
|---|---|---|
| 0 | property | double, field, scoping |
property (Pin 0)
Returns a double for property: "frequency_tolerance", a single-value Scoping for properties for "set_id" and "cummulative_index", an int for "step_id_from_harmonic_index" and a Field otherwise.
Configurations
This operator supports configuration options that modify its behavior.
mutex
- Expected type(s):
bool - Default value: false
If this option is set to true, the shared memory is prevented from being simultaneously accessed by multiple threads.
Scripting
This operator can be accessed through scripting interfaces using these identifiers.
Category: metadata
Plugin: core
Scripting name: time_freq_support_get_attribute
Full name: metadata.time_freq_support_get_attribute
Internal name: timefreqsupport::get_attribute
License: None
Examples
These examples demonstrate how to use this operator in different programming environments. Each example shows how to instantiate the operator, connect the required inputs, and retrieve the output.
C++
#include "dpf_api.h"
ansys::dpf::Operator op("timefreqsupport::get_attribute"); // operator instantiation
op.connect(0, my_time_freq_support);
op.connect(1, my_property_name);
op.connect(2, my_property_identifier);
op.connect(3, my_property_identifier_2);
double my_property = op.getOutput<double>(0);
CPython
import ansys.dpf.core as dpf
op = dpf.operators.metadata.time_freq_support_get_attribute() # operator instantiation
op.inputs.time_freq_support.connect(my_time_freq_support)
op.inputs.property_name.connect(my_property_name)
op.inputs.property_identifier.connect(my_property_identifier)
op.inputs.property_identifier_2.connect(my_property_identifier_2)
my_property_as_double = op.outputs.property_as_double()
IPython
import mech_dpf
import Ans.DataProcessing as dpf
op = dpf.operators.metadata.time_freq_support_get_attribute() # operator instantiation
op.inputs.time_freq_support.Connect(my_time_freq_support)
op.inputs.property_name.Connect(my_property_name)
op.inputs.property_identifier.Connect(my_property_identifier)
op.inputs.property_identifier_2.Connect(my_property_identifier_2)
my_property = op.outputs.property.GetData()
Changelog
- Version 0.0.0: Initial release.