Skip to content

Instantly share code, notes, and snippets.

View grzanka's full-sized avatar
🏠
Working from home

Leszek Grzanka grzanka

🏠
Working from home
  • AGH
  • Krakow, Poland
  • 07:04 (UTC +02:00)
View GitHub Profile
@grzanka
grzanka / keybase.md
Created November 26, 2017 21:12
keybase.md

Keybase proof

I hereby claim:

  • I am grzanka on github.
  • I am grzanka (https://keybase.io/grzanka) on keybase.
  • I have a public key ASBx2uSkP1i1KAJjI1D3tmXoncPI5f-UkiMMJne2kimFBAo

To claim this, I am signing this object:

SHIELD-HIT12A - PHITS comparison

@grzanka
grzanka / PKGBUILD.sh
Last active February 9, 2017 08:54 — forked from chrismullins/PKGBUILD.sh
PKGBUILD for Slicer
# Maintainer: Tomáš Mládek <tmladek [on] inventati [bop] org>
# Contributor: Chris <christopher.r.mullins g-mail>
pkgname=3dslicer
pkgver=4.6.2
pkgrel=2
pkgdesc="A free, open source software package for image analysis and scientific visualization."
url="http://slicer.org"
arch=('x86_64')
license=('BSD')
import pytrip as pt
# first define some paths and other important parameters
ctx_path = "tests/sphere000.ctx"
vdx_path = "tests/sphere000.vdx"
my_target_voi = "bsPTVClassic0"
# load CT cube
my_ctx = pt.CtxCube()
my_ctx.read(ctx_path)
import os
import numpy as np
# directory with .dat files
dirname = '.'
# new location of the main peak
x_peak_loc = 220
# normalization factor
pyinstaller.exe run_gui.py --name=modulators_0.3.0 --onefile --log-level=DEBUG --hidden-import=scipy.linalg --hidden-import=scipy.linalg.cython_blas --hidden-import=scipy.linalg.cython_lapack --hidden-import=scipy.integrate --hidden-import=matplotlib.backends.backend_qt5agg --hidden-import=modulators.gui.modulators_base