Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions cellpack/autopack/DBRecipeHandler.py
Original file line number Diff line number Diff line change
Expand Up @@ -853,6 +853,8 @@ def compile_db_recipe_data(db_recipe_data, obj_dict, grad_dict, comp_dict):
}
if db_recipe_data.get("grid_file_path"):
recipe_data["grid_file_path"] = db_recipe_data.get("grid_file_path")
if db_recipe_data.get("randomness_seed"):
recipe_data["randomness_seed"] = db_recipe_data.get("randomness_seed")
if grad_dict:
recipe_data["gradients"] = [
{**v} for v in DBRecipeLoader.remove_dedup_hash(grad_dict).values()
Expand Down
2 changes: 2 additions & 0 deletions cellpack/bin/upload.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ def get_recipe_metadata(loader):
}
if "grid_file_path" in loader.recipe_data:
recipe_meta_data["grid_file_path"] = loader.recipe_data["grid_file_path"]
if "randomness_seed" in loader.recipe_data:
recipe_meta_data["randomness_seed"] = loader.recipe_data["randomness_seed"]
return recipe_meta_data
except KeyError as e:
sys.exit(f"Recipe metadata is missing. {e}")
Expand Down
14 changes: 7 additions & 7 deletions examples/recipes/v2/one_sphere.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@
"name": "one_sphere",
"bounding_box": [
[
0,
0,
0
-20,
-20,
-20
],
[
20,
20,
20
100,
100,
100
]
],
"objects": {
Expand Down Expand Up @@ -58,7 +58,7 @@
0.5,
0.5
],
"radius": 5,
"radius": 40,
"max_jitter": [
1,
1,
Expand Down
2 changes: 1 addition & 1 deletion examples/recipes/v2/spheres_in_a_box.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
[
1000,
1000,
1000
1500
]
],
"objects": {
Expand Down