-
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.
feat: Add default opacity to 1 and blend to additive (CC-165) (#27)
Closes CC-165 Sets the default opacity value to 1 and the blend value to `additive`
- Loading branch information
Showing
3 changed files
with
28 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
from cryoet_data_portal_neuroglancer.state_generator import generate_image_layer | ||
|
||
|
||
def test__generate_image_layer_default_values(): | ||
state = generate_image_layer(source="mysource", scale=1.5, size={"a": 2.0}) | ||
|
||
assert "blend" in state | ||
assert state["blend"] == "additive" | ||
assert state["opacity"] == 1.0 |