Skip to content

Instantly share code, notes, and snippets.

View GenevieveBuckley's full-sized avatar

Genevieve Buckley GenevieveBuckley

  • Monash University
  • Melbourne
View GitHub Profile
@GenevieveBuckley
GenevieveBuckley / napari-pymeshlab-error.txt
Created February 27, 2023 11:06
napari-pymeshlab error Ubuntu 20.04
(napari) genevieve@genevieve-G5-5500:~$ pip install napari-pymeshlab
Collecting napari-pymeshlab
Using cached napari_pymeshlab-0.0.5-py3-none-any.whl (27 kB)
Requirement already satisfied: npe2 in ./anaconda3/envs/napari/lib/python3.10/site-packages (from napari-pymeshlab) (0.6.2)
Requirement already satisfied: numpy in ./anaconda3/envs/napari/lib/python3.10/site-packages (from napari-pymeshlab) (1.24.2)
Collecting pymeshlab
Downloading pymeshlab-2022.2.post2-cp310-cp310-manylinux1_x86_64.whl (56.9 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 56.9/56.9 MB 2.4 MB/s eta 0:00:00
Requirement already satisfied: rich in ./anaconda3/envs/napari/lib/python3.10/site-packages (from npe2->napari-pymeshlab) (13.3.1)
Requirement already satisfied: psygnal>=0.3.0 in ./anaconda3/envs/napari/lib/python3.10/site-packages (from npe2->napari-pymeshlab) (0.7.2)
@GenevieveBuckley
GenevieveBuckley / save_as_zarr.ipynb
Created August 6, 2019 04:52
Save OpenSlide tiff image to zarr array
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@GenevieveBuckley
GenevieveBuckley / downsampling.ipynb
Created January 12, 2023 03:53
downsampling artifacts
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@GenevieveBuckley
GenevieveBuckley / napari_threshold_segmentation.py
Created July 20, 2022 03:01
Choose a threshold value using a magicgui widget in napari.
"""Choose a threshold value using a magicgui widget in napari.
Based on the magicgui excample script napari_parameter_sweep.py
https://github.com/napari/magicgui/blob/main/examples/napari_param_sweep.py
"""
import napari
import skimage.data
import skimage.filters
from napari.layers import Image
from napari.types import LabelsData
class CupyContextManager:
def __init__(self):
self.previous_np = None
def __enter__(self):
self.previous_np = globals().get("np")
import cupy as np
globals()["np"] = np
return np
@GenevieveBuckley
GenevieveBuckley / napari notebook rich display.ipynb
Last active June 3, 2022 21:50
napari notebook rich display
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@GenevieveBuckley
GenevieveBuckley / QImageViewer.py
Created June 13, 2019 07:13 — forked from acbetter/QImageViewer.py
Image Viewer Example by PyQt5 and Python 3
#!/usr/bin/python3
# -*- coding: utf-8 -*-
from PyQt5.QtCore import Qt
from PyQt5.QtGui import QImage, QPixmap, QPalette, QPainter
from PyQt5.QtPrintSupport import QPrintDialog, QPrinter
from PyQt5.QtWidgets import QLabel, QSizePolicy, QScrollArea, QMessageBox, QMainWindow, QMenu, QAction, \
qApp, QFileDialog
@GenevieveBuckley
GenevieveBuckley / 2022-03-10-janeliainference-workstationANNA-linkingPythonWithCUDA10.md
Created March 10, 2022 05:03
Janelia inference, Workstation ANNA, linking Python to CUDA 10 installation

There's some kind of problem linking python to the existing CUDA 10 installation (CUDA 10.0 lives at C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.0\)

(base) C:\Users\CryoEM>conda activate CNNectome

(CNNectome) C:\Users\CryoEM>ipython
Python 3.6.12 |Anaconda, Inc.| (default, Sep  9 2020, 00:29:25) [MSC v.1916 64 bit (AMD64)]
Type 'copyright', 'credits' or 'license' for more information
@GenevieveBuckley
GenevieveBuckley / 20220224-malis-pipinstall-error-workstation.txt
Created February 24, 2022 07:15
Malis pip installation error on Windows workstation (required for CNNectome Janelia project)
(CNNectome) C:\Users\CryoEM\Documents\GitHub\OpenOrganelle\CNNectome>pip install malis[malis_loss]@git+https://github.com/neptunes5thmoon/malis.git@fix_setup
Collecting malis[malis_loss]@ git+https://github.com/neptunes5thmoon/malis.git@fix_setup
Cloning https://github.com/neptunes5thmoon/malis.git (to revision fix_setup) to c:\users\cryoem\appdata\local\temp\pip-install-835bihd5\malis_d558e69fd2aa477b8a3ada5875704cf7
Running command git clone -q https://github.com/neptunes5thmoon/malis.git 'C:\Users\CryoEM\AppData\Local\Temp\pip-install-835bihd5\malis_d558e69fd2aa477b8a3ada5875704cf7'
Running command git checkout -b fix_setup --track origin/fix_setup
branch 'fix_setup' set up to track 'origin/fix_setup'.
Switched to a new branch 'fix_setup'
Resolved https://github.com/neptunes5thmoon/malis.git to commit 2a54eed480edc8b0e9948f24b1193a58c5714d2d
WARNING: malis 1.0 does not provide the extra 'malis_loss'
@GenevieveBuckley
GenevieveBuckley / env_CNNectome_M1Mac.txt
Created February 14, 2022 00:23
Conda environment file for CNNectome on an M1 Mac
# This file may be used to create an environment using:
# $ conda create --name <env> --file <this file>
# platform: osx-arm64
@EXPLICIT
https://conda.anaconda.org/conda-forge/osx-arm64/c-ares-1.18.1-h3422bc3_0.tar.bz2
https://conda.anaconda.org/conda-forge/osx-arm64/ca-certificates-2021.10.8-h4653dfc_0.tar.bz2
https://conda.anaconda.org/conda-forge/osx-arm64/libcxx-12.0.1-h168391b_1.tar.bz2
https://conda.anaconda.org/conda-forge/osx-arm64/libev-4.33-h642e427_1.tar.bz2
https://conda.anaconda.org/conda-forge/osx-arm64/libffi-3.4.2-h3422bc3_5.tar.bz2
https://conda.anaconda.org/conda-forge/osx-arm64/libzlib-1.2.11-hee7b306_1013.tar.bz2