docker run -d -p 25901:5901 -p 26901:6901 accetto/ubuntu-vnc-xfce-chromium-g3:latest
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
from pathlib import Path | |
import mrcfile | |
import napari | |
import numpy as np | |
from magicgui import magicgui | |
OUTPUT_DIRECTORY = 'picking' | |
Path(OUTPUT_DIRECTORY).mkdir(exist_ok=True, parents=True) |
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
from pathlib import Path | |
from typing import Dict | |
from enum import Enum | |
import napari | |
import numpy as np | |
import mrcfile | |
import pandas as pd | |
import starfile | |
import eulerangles |
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
import numpy as np | |
import mrcfile | |
import starfile | |
from eulerangles import euler2matrix, invert_rotation_matrices | |
import napari | |
from fuzzywuzzy import fuzz, process | |
# Read in data | |
particle_file = 'particles_10.00Apx.star' | |
volume_file = 'TS_01.mrc_10.00Apx.mrc' |
conda create -n pyptv_py310win python=3.10 -y
conda activate pyptv_py310win
python -m pip install --upgrade pip
pip install numpy
pip install pyptv --index-url https://pypi.fury.io/pyptv --extra-index-url https://pypi.org/simple
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
name: CI | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main |
You must be using conda for this approach. You will need conda installed on the Source machine and the Target machine. The Source machine must have an internet connection, the Target does not. The OS in both environments must match; no going from macOS to Win10 for example.
1. (Source) Install conda-pack
in your base
python environment.
conda install -c conda-forge conda-pack
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
git clone https://github.com/enthought/enable | |
sudo apt-get update | |
sudo apt-get install libx11-dev | |
sudo apt-get install libglu1-mesa-dev | |
sudo apt-get install swig3.0 | |
sudo ln -s /usr/bin/swig3.0 /usr/bin/swig | |
conda create -n enable python=3.8 -y | |
conda activate enable | |
sudo apt install g++ | |
pip install cython |
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
import numpy as np | |
def moving_average(a, n=5) : | |
""" creates moving average along the first axis of the | |
three dimensional numpy array, aka stack of images | |
""" | |
ret = np.cumsum(a, dtype=float, axis=0) | |
ret[n:,:,:] = ret[n:,:,:] - ret[:-n,:,:] | |
return ret[n - 1:,:,:] / n |