Skip to content

Commit

Permalink
Merge pull request #349 from brainglobe/storage
Browse files Browse the repository at this point in the history
Save all data to .brainglobe/brainrender
  • Loading branch information
alessandrofelder authored May 15, 2024
2 parents 453ced2 + 590429f commit baa5a69
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
5 changes: 2 additions & 3 deletions brainrender/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@
# package is not installed
pass

base_dir = Path(os.path.join(os.path.expanduser("~"), ".brainrender"))
base_dir.mkdir(exist_ok=True)
base_dir = Path.home() / ".brainglobe" / "brainrender"
base_dir.mkdir(parents=True, exist_ok=True)


# set logger level
Expand All @@ -36,7 +36,6 @@ def set_logging(level="INFO", path=None):
to stdout only logs >= to a given level
"""
logger.remove()
# logger.add(sys.stdout, level=level)

path = path or str(base_dir / "log.log")
if Path(path).exists():
Expand Down
3 changes: 2 additions & 1 deletion examples/user_volumetric_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@
known_hash="54b59146ba08b4d7eea64456bcd67741db4b5395235290044545263f61453a61",
path=Path.home()
/ ".brainglobe"
/ "brainrender-example-data", # zip will be downloaded here
/ "brainrender"
/ "example-data", # zip will be downloaded here
progressbar=True,
processor=pooch.Unzip(
extract_dir=""
Expand Down
3 changes: 2 additions & 1 deletion tests/test_integration.py
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,8 @@ def test_user_volumetric_data():
known_hash="54b59146ba08b4d7eea64456bcd67741db4b5395235290044545263f61453a61",
path=Path.home()
/ ".brainglobe"
/ "brainrender-example-data", # zip will be downloaded here
/ "brainrender"
/ "example-data", # zip will be downloaded here
progressbar=True,
processor=pooch.Unzip(
extract_dir=""
Expand Down

0 comments on commit baa5a69

Please sign in to comment.