Buckets:
| from fluidsim import load_sim_for_plot | |
| # Charger une simulation qui a les données spatial_means | |
| sim_with_data = load_sim_for_plot("/root/Sim_data/NS2D_48x48_S8x8_2026-01-08_17-55-51") | |
| print("Simulation chargée avec données spatiales") | |
| print(f"Dossier: {sim_with_data.output.path_run}") | |
| # Vérifier si le fichier existe | |
| import os | |
| spatial_means_file = os.path.join(sim_with_data.output.path_run, "spatial_means.txt") | |
| print(f"Fichier spatial_means.txt existe: {os.path.exists(spatial_means_file)}") | |
| # Charger et afficher les données | |
| try: | |
| spatial_data = sim_with_data.output.spatial_means.load() | |
| print("Données chargées:") | |
| print(f" Temps: {len(spatial_data['t'])} points") | |
| print(".6f") | |
| print(".6f") | |
| # Tracer | |
| sim_with_data.output.spatial_means.plot() | |
| print("Graphique tracé avec succès") | |
| except Exception as e: | |
| print(f"Erreur: {e}") |
Xet Storage Details
- Size:
- 878 Bytes
- Xet hash:
- f3aa69067520057cba8b2fec432d4c6620b50e74f1cadf5de0ac4415cf402a70
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.