Datasets:
Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
|
@@ -236,6 +236,60 @@ This dataset was generated in [PLAID](https://plaid-lib.readthedocs.io/), we ref
|
|
| 236 |
|
| 237 |
### Dataset Sources
|
| 238 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 239 |
- **Papers:**
|
| 240 |
- [arxiv](https://arxiv.org/pdf/2305.12871)
|
| 241 |
- [arxiv](https://arxiv.org/abs/2505.02974)
|
|
|
|
| 236 |
|
| 237 |
### Dataset Sources
|
| 238 |
|
| 239 |
+
- **Papers:**
|
| 240 |
+
- [arxiv](https://arxiv.org/pdf/2305.12871)
|
| 241 |
+
- [arxiv](https://arxiv.org/abs/2505.02974)
|
| 242 |
+

|
| 243 |
+

|
| 244 |
+
```yaml
|
| 245 |
+
data_production:
|
| 246 |
+
physics: 2D quasistatic non-linear structural mechanics, small deformations, plane
|
| 247 |
+
strain
|
| 248 |
+
type: simulation
|
| 249 |
+
legal:
|
| 250 |
+
license: CC-BY-SA
|
| 251 |
+
owner: Safran
|
| 252 |
+
plaid:
|
| 253 |
+
version: 0.1.10.dev114+gcbd3fd46f.d20251014
|
| 254 |
+
|
| 255 |
+
```
|
| 256 |
+
|
| 257 |
+
Example of commands:
|
| 258 |
+
```python
|
| 259 |
+
from datasets import load_dataset
|
| 260 |
+
from plaid.bridges import huggingface_bridge
|
| 261 |
+
|
| 262 |
+
repo_id = "chanel/dataset"
|
| 263 |
+
|
| 264 |
+
# Load the dataset
|
| 265 |
+
hf_datasetdict = load_dataset(repo_id)
|
| 266 |
+
|
| 267 |
+
# Load addition required data
|
| 268 |
+
flat_cst, key_mappings = huggingface_bridge.load_tree_struct_from_hub(repo_id)
|
| 269 |
+
pb_def = huggingface_bridge.load_problem_definition_from_hub(repo_id, pb_def_names[0])
|
| 270 |
+
infos = huggingface_bridge.load_infos_from_hub(repo_id)
|
| 271 |
+
|
| 272 |
+
# Efficient reconstruct plaid samples
|
| 273 |
+
for split_name, hf_dataset in hf_datasetdict.items():
|
| 274 |
+
for i in range(len(hf_dataset)):
|
| 275 |
+
sample = huggingface_bridge.to_plaid_sample(
|
| 276 |
+
hf_datasetdict[split_names[0]],
|
| 277 |
+
i,
|
| 278 |
+
flat_cst[split_names[0]],
|
| 279 |
+
key_mappings["cgns_types"],
|
| 280 |
+
)
|
| 281 |
+
|
| 282 |
+
# Extract input and output features from samples:
|
| 283 |
+
for t in sample.get_all_mesh_times():
|
| 284 |
+
for path in pb_def.get_in_features_identifiers():
|
| 285 |
+
sample.get_feature_by_path(path=path, time=t)
|
| 286 |
+
for path in pb_def.get_out_features_identifiers():
|
| 287 |
+
sample.get_feature_by_path(path=path, time=t)
|
| 288 |
+
```
|
| 289 |
+
This dataset was generated in [PLAID](https://plaid-lib.readthedocs.io/), we refer to this documentation for additional details on how to data data from samples.
|
| 290 |
+
|
| 291 |
+
### Dataset Sources
|
| 292 |
+
|
| 293 |
- **Papers:**
|
| 294 |
- [arxiv](https://arxiv.org/pdf/2305.12871)
|
| 295 |
- [arxiv](https://arxiv.org/abs/2505.02974)
|