Skip to content

Commit

Permalink
Adding new/updated DL4MicEverywhere_u-net-2d-zerocostdl4mic_2.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
IvanHCenalmor committed Oct 15, 2024
1 parent b678f96 commit d207bac
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 10 deletions.
Binary file modified album_catalog_index.db
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [2.2.1] - 2024-10-15
/Users/ihidalgo/Documents/git/DL4MicEverywhere-album/CHANGELOG.md
../CHANGELOG.md
12 changes: 5 additions & 7 deletions solutions/DL4MicEverywhere/u-net-2d-zerocostdl4mic/solution.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ def install():

# Clone the DL4MicEverywhere repository
clone_url = "https://github.com/HenriquesLab/DL4MicEverywhere"
repository_path = get_app_path().joinpath("DL4MicEverywhere")
Repo.clone_from(clone_url, repository_path)
assert (repository_path.exists())
repo_path = get_app_path().joinpath("DL4MicEverywhere")
Repo.clone_from(clone_url, repo_path)
assert (repo_path.exists())

# URL of the notebook you want to download
notebook_url = "https://raw.githubusercontent.com/HenriquesLab/ZeroCostDL4Mic/master/Colab_notebooks/U-Net_2D_ZeroCostDL4Mic.ipynb"
Expand All @@ -47,15 +47,15 @@ def install():
python_command = ["python", ".tools/notebook_autoconversion/transform.py", "-p", f"{get_app_path()}", "-n", "U-Net_2D_ZeroCostDL4Mic.ipynb", "-s"]
python_command += section_to_remove

subprocess.run(python_command, cwd=repository_path)
subprocess.run(python_command, cwd=to)
subprocess.run(["mv", get_app_path().joinpath("colabless_U-Net_2D_ZeroCostDL4Mic.ipynb"), get_app_path().joinpath("U-Net_2D_ZeroCostDL4Mic.ipynb")])

# Remove the cloned DL4MicEverywhere repository
if os.name == 'nt':
os.system(f'rmdir /s /q "{to}"')
else:
# rmtree has no permission to do this on Windows
shutil.rmtree(repository_path)
shutil.rmtree(to)

def run():
from album.runner.api import get_args, get_app_path
Expand Down Expand Up @@ -141,8 +141,6 @@ def run():
- tqdm==4.65.0
- wget==3.2
- zarr==2.15.0
- nbformat==5.9.2
- jupyterlab==3.4.0
"""

setup(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ args:
description: What is your working path?
name: path
type: string
changelog: /Users/ihidalgo/Documents/git/DL4MicEverywhere-album/CHANGELOG.md
changelog: ../CHANGELOG.md
cite:
- doi: https://doi.org/10.1038/s41467-021-22518-0
text: von Chamier, L., Laine, R.F., Jukkala, J. et al. Democratising deep learning
Expand Down Expand Up @@ -34,6 +34,6 @@ tags:
- ZeroCostDL4Mic
- 2D
- dl4miceverywhere
timestamp: '2024-10-15T17:08:50.166829'
timestamp: '2024-10-15T17:50:48.373671'
title: u-net-2d-zerocostdl4mic implementation.
version: 2.2.1

0 comments on commit d207bac

Please sign in to comment.