Spaces:
Sleeping
Sleeping
Update GarmentCode/test_garment_sim.py
Browse files
GarmentCode/test_garment_sim.py
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
import os
|
| 2 |
import argparse
|
| 3 |
from pathlib import Path
|
| 4 |
-
|
| 5 |
from pygarment.meshgen.boxmeshgen import BoxMesh
|
| 6 |
from pygarment.meshgen.simulation import run_sim
|
| 7 |
import pygarment.data_config as data_config
|
|
@@ -72,3 +72,5 @@ if __name__ == "__main__":
|
|
| 72 |
)
|
| 73 |
|
| 74 |
props.serialize(paths.element_sim_props)
|
|
|
|
|
|
|
|
|
| 1 |
import os
|
| 2 |
import argparse
|
| 3 |
from pathlib import Path
|
| 4 |
+
import json
|
| 5 |
from pygarment.meshgen.boxmeshgen import BoxMesh
|
| 6 |
from pygarment.meshgen.simulation import run_sim
|
| 7 |
import pygarment.data_config as data_config
|
|
|
|
| 72 |
)
|
| 73 |
|
| 74 |
props.serialize(paths.element_sim_props)
|
| 75 |
+
result_dir = os.path.join(paths.out_el, garment_name)
|
| 76 |
+
print(json.dumps({"result_dir": result_dir.rsplit('/', 1)[0]}))
|