Skip to content

Commit

Permalink
more migration to bddl
Browse files Browse the repository at this point in the history
  • Loading branch information
sanjanasrivastava committed Jan 10, 2024
1 parent ae4a4a5 commit 0f0ef89
Show file tree
Hide file tree
Showing 3 changed files with 268 additions and 265 deletions.
9 changes: 6 additions & 3 deletions bddl/data_generation/process_prop_param_annots.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,9 +180,11 @@ def create_get_save_propagated_annots_params(syns_to_props):
formatted_conditions = []
for condition in conditions:
if condition == "gravity:True":
formatted_conditions.append((ParticleModifyCondition.GRAVITY, True))
# formatted_conditions.append((ParticleModifyCondition.GRAVITY, True))
formatted_conditions.append(("gravity", True))
elif condition == "toggled_on:True":
formatted_conditions.append((ParticleModifyCondition.TOGGLEDON, True))
# formatted_conditions.append((ParticleModifyCondition.TOGGLEDON, True))
formatted_conditions.append(("toggled_on", True))
else:
raise ValueError(f"Synset {param_record['synset']} prop {prop} has unhandled condition {condition}")
formatted_param_value = {
Expand All @@ -198,7 +200,8 @@ def create_get_save_propagated_annots_params(syns_to_props):
# `method` values
elif param_name == "method":
if (prop == "particleApplier") or (prop == "particleSource"):
formatted_param_value = ParticleModifyMethod.PROJECTION
# formatted_param_value = ParticleModifyMethod.PROJECTION
formatted_param_value = "projection"
else:
raise ValueError(f"prop {prop} not handled for parameter name `method`")

Expand Down
Loading

0 comments on commit 0f0ef89

Please sign in to comment.