> ## Documentation Index
> Fetch the complete documentation index at: https://developer.synopsys.com/llms.txt
> Use this file to discover all available pages before exploring further.

# migrate_to_h5dpf class

**Namespace:** [Ans.DataProcessing.operators.result](https://developer.synopsys.com/docs/dpf/dpf-mechanical/api/Ans.DataProcessing/operators/result)

## Summary

Read mesh properties from the results files contained in the streams or data sources and make those properties available through a mesh selection manager in output.User can input a GenericDataContainer that will map an item to a result name. Example of Map: \{\{ default: wf1}, \{EUL: wf2}, \{ENG\_SE: wf3}}.

available inputs: `h5_chunk_size` (Int32, GenericDataContainer) (optional), `dataset_size_compression_threshold` (Int32, GenericDataContainer) (optional), `h5_native_compression` (Int32, DataTree, GenericDataContainer) (optional), `export_floats` (bool, GenericDataContainer) (optional), `filename` (string), `comma_separated_list_of_results` (string) (optional), `all_time_sets` (bool) (optional), `streams_container` (StreamsContainer) (optional), `data_sources` (DataSources) (optional), `compression_workflow` (Workflow, GenericDataContainer) (optional), `filtering_workflow` (Workflow, GenericDataContainer) (optional)

available outputs: `migrated_file` (DataSources)

## Example

```python theme={null}
op = migrate_to_h5dpf()

op = migrate_to_h5dpf(h5_chunk_size=my_h5_chunk_size,dataset_size_compression_threshold=my_dataset_size_compression_threshold,h5_native_compression=my_h5_native_compression,export_floats=my_export_floats,filename=my_filename,comma_separated_list_of_results=my_comma_separated_list_of_results,all_time_sets=my_all_time_sets,streams_container=my_streams_container,data_sources=my_data_sources,filtering_workflow=my_filtering_workflow)
```

## Class Information

| Property | Value |
| - | - |
| Namespace | `Ans.DataProcessing.operators.result` |
| Assembly | `Ans_Dpf_Hdf5_dll_cs` |
| Base Class | `Ans.DataProcessing.internal_objects.BaseOperator` |

## Inputs

### h5\_chunk\_size

Size of each HDF5 chunk in kilobytes (KB). Default: 1 MB when compression is enabled; for uncompressed datasets, the default is the full dataset size x dimension.

**Type:** *LinkableInput*

### dataset\_size\_compression\_threshold

Integer value that defines the minimum dataset size (in bytes) to use h5 native compression Applicable for arrays of floats, doubles and integers.

**Type:** *LinkableInput*

### h5\_native\_compression

Integer value / DataTree that defines the h5 native compression used For Integer Input \{0: No Compression (default); 1-9: GZIP Compression : 9 provides maximum compression but at the slowest speed.}For DataTree Input \{type: None / GZIP / ZSTD; level: GZIP (1-9) / ZSTD (1-20); num\_threads: ZSTD (>0)}

**Type:** *LinkableInput*

### export\_floats

Converts double to float to reduce file size (default is true).If False, nodal results are exported as double precision and elemental results as single precision.

**Type:** *LinkableInput*

### filename

filename of the migrated file

**Type:** *LinkableInput*

### comma\_separated\_list\_of\_results

list of results (source operator names) separated by semicolons that will be stored. (Example: U;S;EPEL). If empty, all available results will be converted.

**Type:** *LinkableInput*

### all\_time\_sets

Deprecated. Please use filtering workflows instead to select time scoping. Default is false.

**Type:** *LinkableInput*

### streams\_container

streams (result file container) (optional)

**Type:** *LinkableInput*

### data\_sources

if the stream is null then we need to get the file path from the data sources

**Type:** *LinkableInput*

### compression\_workflow

BETA Option: Applies input compression workflow.

**Type:** *LinkableInput*

### filtering\_workflow

Applies input filtering workflow.

**Type:** *LinkableInput*

## Outputs

### migrated\_file

**Type:** *LinkableOutput*

## Constructors

#### Constructor

```python theme={null}
migrate_to_h5dpf()
```

#### Constructor

```python theme={null}
migrate_to_h5dpf(h5_chunk_size, dataset_size_compression_threshold, h5_native_compression, export_floats, filename, comma_separated_list_of_results, all_time_sets, streams_container, data_sources, filtering_workflow, config)
```

**Parameters:**

* `h5_chunk_size` (*object*)
* `dataset_size_compression_threshold` (*object*)
* `h5_native_compression` (*object*)
* `export_floats` (*object*)
* `filename` (*object*)
* `comma_separated_list_of_results` (*object*)
* `all_time_sets` (*object*)
* `streams_container` (*object*)
* `data_sources` (*object*)
* `filtering_workflow` (*object*)
* `config` (*OperatorConfig*)

#### Constructor

```python theme={null}
migrate_to_h5dpf(config)
```

**Parameters:**

* `config` (*OperatorConfig*)

## Methods

## Properties

#### inputs

**Type:** *InputSpec*

```python theme={null}
# Get or set the property
value = obj.inputs
obj.inputs = new_value
```

#### outputs

**Type:** *OutputSpec*

```python theme={null}
# Get or set the property
value = obj.outputs
obj.outputs = new_value
```

#### defaultConfig

**Type:** *Config*

```python theme={null}
# Get the property (read-only)
value = obj.defaultConfig
```
