Data curation


Data curation ensures that datasets are stored in valid formats and can be interpreted correctly by Solidipes.

Solidipes validates files by comparing their MIME type with their file extension. If the MIME type does not correspond to the extension, the dataset is flagged as invalid.

For example, an image saved with a .dat extension will raise an error.

The recommended way to curate datasets is through the web report.

Using the Web Report

With a running web report you can inspect the status of your data and identify potential issues.

../../../../_images/curation_overview.png

When the file extension does not match the MIME type, you can specify which loader Solidipes should use.

You can either:

  • specify the extension the file should be interpreted as,

../../../../_images/curation_overview2.png
  • or specify the MIME type directly.

../../../../_images/curation_overview3.png

Attention

Changing the loader in the web report does not rename the file locally.

If you want to change the actual file extension, this must be done manually.

After making local changes, refresh the webpage, click on the Force folder scan button, or run the web-report command again.

Supported Loader Formats

The supported loader formats are:

Supported loader extensions

Data type

Extensions

Comments

DataContainer

Binary

Default loader

Code Snippet

.py, .cc, .hh, .inp, .m

File

Images

.png, .jpeg, .jpg

Markdown

.md

Meshio

.meshio

Pyvista Meshes

.vtk, .vtu, .vtp, .ply, .obj, .stl, .gltf, .glb, .3ds, .3d, .xml, .xml.gz, .pvsm, .pvtp, .pvtu, .vtm, .vtmb, .vti, .vtic, .vti.gz, .vtic.gz, .vtu.gz, .vts, .vts.gz, .vtp.gz, .vtr, .vtr.gz

Tables

.csv, .xlsx

Text

.txt

Video

.mp4, .avi, .mov

.gif files are treated as image sequences

Unsupported formats are loaded using the default Binary loader.

Examples of unsupported formats:

Unsupported loader extension examples

Data Type

Extensions

Sound

.mp3, .wav, .ogg

Data grouping

Solidipes automatically groups datasets with consecutive names.

For example:

img1.png
img2.png
img3.png

will be grouped as:

img*.png

This is useful for simulation outputs, time-dependent data, or image sequences.

Attention

If one dataset in the sequence is missing, Solidipes does not raise a warning.

Instead, separate groups are created. For example:

img1.png
img2.png
img10.png

becomes:

  • img1.png, img2.png

  • img10.png

Clicking on a group displays the status of each dataset individually.

../../../../_images/img_curation_grouped.png

If you do not want datasets to be grouped, rename the files locally.

Features

Feature

Description

Sequence grouping

Consecutive datasets are grouped automatically.

Missing sequence entries

Missing datasets split the sequence into separate groups.

MIME type validation

Errors are raised when MIME type and extension do not match.

Image curation

The web report allows images to be visualized directly.

If an image is corrupted, it cannot be displayed.

Case

Behavior

Single supported image

Displayed normally.

.gif, .tiff

Loaded as image sequences.

Attention

.gif and .tiff files are interpreted as sequences of images rather than animated files.

Tables curation

For supported table formats (.csv and .xlsx), the web report checks:

  • whether the file is empty,

  • whether the file is valid,

  • whether the table structure is valid,

  • whether headers and body are present.

The table is visualized directly in the web report.

../../../../_images/csv_correct.png

Missing headers may result in incorrect plotting.

../../../../_images/csv_corrupt.png

Missing data may also affect plotting quality.

../../../../_images/csv_missing_data.png

Case

Behavior

Missing header

Plotting may be incorrect, but no error is raised.

Missing data

Plotting may be incorrect, but no error is raised.

Pyvista mesh curation

Meshes are visualized directly in the web report.

The mesh is composed of two important concepts:

  • Cells: volumetric elements enclosed by points. Cells cannot be warped.

  • Points: vertices defining the mesh geometry. Points can be warped.

../../../../_images/mesh_params.png

You can select an active field to visualize deformation or displacement.

../../../../_images/mesh_active_fields.png

Component

Description

Cells

Volumetric mesh elements.

Points

Mesh vertices defining geometry.

Ontology

Solidipes validates datasets against an ontology.

By default, the base Solidipes ontology is used. It includes checks such as:

  • presence of a README.md file,

  • CSV headers containing units,

  • workflow environments being documented.

A custom ontology can also be provided.

The ontology identifier may be:

  • a Python module:

    solidipes.ontologies.solidipes
    
  • or a local Python file:

    data/my_ontology.py
    

For more information on creating custom ontologies, see developer documentation.

Command Line Interface

Note

Direct CLI usage is not recommended. Prefer the web report.

To scan a dataset manually:

solidipes report curation /path/to/data/directory

Use the help command for additional options:

solidipes report curation -h