Skip to content

Commit

Permalink
rename sphere and cube
Browse files Browse the repository at this point in the history
  • Loading branch information
seankmartin committed Mar 11, 2024
1 parent faf16ba commit 01a2361
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions examples/sphere.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
from time import sleep

import neuroglancer
from neuroglancer_utils.create_datasets.create_sphere import create_volume
from neuroglancer_utils.create_datasets.create_sphere import create_sphere
from neuroglancer_utils.local_server import create_server

from neuroglancer_utils.layer_utils import add_render_panel
Expand Down Expand Up @@ -52,7 +52,7 @@ def get_shader():


if __name__ == "__main__":
create_volume()
create_sphere()
create_server(directory="datasets")
viewer = launch_nglancer()
with viewer.txn() as s:
Expand Down
2 changes: 1 addition & 1 deletion neuroglancer_utils/create_datasets/create_full_cube.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from cloudvolume import CloudVolume
import numpy as np

def create_volume(output_path="file://datasets/cube"):
def create_cube(output_path="file://datasets/cube"):
rawdata = np.full(shape=(100, 100, 100), fill_value=255.0).astype(np.float32)
CloudVolume.from_numpy(
rawdata,
Expand Down
2 changes: 1 addition & 1 deletion neuroglancer_utils/create_datasets/create_sphere.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def create_sphere_in_cube(size, radius):
return sphere.astype(np.float32) * 255.0


def create_volume(output_path="file://datasets/sphere"):
def create_sphere(output_path="file://datasets/sphere"):
rawdata = create_sphere_in_cube(100, 0.9)
#rawdata = np.full(shape=(100, 100, 100), fill_value=255.0).astype(np.float32)
CloudVolume.from_numpy(
Expand Down

0 comments on commit 01a2361

Please sign in to comment.