-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use multiple gradients on a single ingredient (#270)
* Add methods and recipe to use multiple gradients on a single ingredient * Add check for list of gradients while creating plots * Move point picking logic to Gradient.py * Update colormap for displaying grid data * Increase gradient strength in example recipe * formatting * Add check for gradient list with single element
- Loading branch information
Showing
7 changed files
with
242 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"name": "show_grid_plot", | ||
"out": "cellpack/tests/outputs/", | ||
"load_from_grid_file": false, | ||
"overwrite_place_method": true, | ||
"place_method": "spheresSST", | ||
"save_analyze_result": true, | ||
"show_grid_plot": true | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,107 @@ | ||
{ | ||
"version": "1.0.0", | ||
"format_version": "2.0", | ||
"name": "test_combined_gradient", | ||
"bounding_box": [ | ||
[ | ||
0, | ||
0, | ||
0 | ||
], | ||
[ | ||
1000, | ||
1000, | ||
1 | ||
] | ||
], | ||
"gradients": { | ||
"X_gradient": { | ||
"description": "X gradient", | ||
"mode": "X", | ||
"pick_mode": "rnd", | ||
"weight_mode": "exponential", | ||
"weight_mode_settings": { | ||
"decay_length": 0.1 | ||
} | ||
}, | ||
"Y_gradient": { | ||
"description": "Y gradient", | ||
"mode": "Y", | ||
"pick_mode": "rnd", | ||
"weight_mode": "exponential", | ||
"weight_mode_settings": { | ||
"decay_length": 0.1 | ||
} | ||
} | ||
}, | ||
"objects": { | ||
"base": { | ||
"jitter_attempts": 10, | ||
"orient_bias_range": [ | ||
-3.1415927, | ||
3.1415927 | ||
], | ||
"rotation_range": 6.2831, | ||
"cutoff_boundary": 0, | ||
"max_jitter": [ | ||
1, | ||
1, | ||
0 | ||
], | ||
"perturb_axis_amplitude": 0.1, | ||
"packing_mode": "random", | ||
"principal_vector": [ | ||
0, | ||
0, | ||
1 | ||
], | ||
"rejection_threshold": 50, | ||
"place_method": "spheresSST", | ||
"cutoff_surface": 42, | ||
"rotation_axis": [ | ||
0, | ||
0, | ||
1 | ||
], | ||
"available_regions": { | ||
"interior": {}, | ||
"surface": {}, | ||
"outer_leaflet": {}, | ||
"inner_leaflet": {} | ||
} | ||
}, | ||
"sphere_25": { | ||
"type": "single_sphere", | ||
"inherit": "base", | ||
"color": [ | ||
0.5, | ||
0.5, | ||
0.5 | ||
], | ||
"radius": 25, | ||
"max_jitter": [ | ||
1, | ||
1, | ||
0 | ||
], | ||
"packing_mode": "gradient", | ||
"gradient": [ | ||
"X_gradient", | ||
"Y_gradient" | ||
] | ||
} | ||
}, | ||
"composition": { | ||
"space": { | ||
"regions": { | ||
"interior": [ | ||
"A" | ||
] | ||
} | ||
}, | ||
"A": { | ||
"object": "sphere_25", | ||
"count": 500 | ||
} | ||
} | ||
} |