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
class Gdcm < Formula | |
desc "Grassroots DICOM library and utilities for medical files" | |
homepage "https://sourceforge.net/projects/gdcm/" | |
url "https://downloads.sourceforge.net/project/gdcm/gdcm%202.x/GDCM%202.8.9/gdcm-2.8.9.tar.gz" | |
sha256 "a2da88b7b3cbf9e76a9df3e89d06d057cca9ce54fc62fb059e04f47bf056b727" | |
bottle do | |
sha256 "9f3d3a1de707e4184bc62fa7070fccb39c9fd1864966e49dc58e93c0616ec012" => :mojave | |
sha256 "ad87ce2f85f16278131b692b12c33cbf1f02af7263c04a9b3dc1cb8188bcdf53" => :high_sierra | |
sha256 "ba985660d7000a4f8b054a63269c60cab9c542e46e81864d8ef8621c2a246cbf" => :sierra |
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
diff --git a/Utilities/VTK/Applications/gdcmviewer.cxx b/Utilities/VTK/Applications/gdcmviewer.cxx | |
index 57facd6..a74c1f5 100644 | |
--- a/Utilities/VTK/Applications/gdcmviewer.cxx | |
+++ b/Utilities/VTK/Applications/gdcmviewer.cxx | |
@@ -118,7 +118,7 @@ public: | |
double GetOverlayVisibility() { return 0; } | |
void SetOverlayVisibility(double vis) {(void)vis;} | |
}; | |
-vtkCxxRevisionMacro(vtkGDCMImageViewer, "$Revision: 1.30 $") | |
+//vtkCxxRevisionMacro(vtkGDCMImageViewer, "$Revision: 1.30 $") |
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 os | |
import sys | |
from distutils.core import setup | |
from distutils.extension import Extension | |
import numpy | |
from Cython.Build import cythonize | |
from Cython.Distutils import build_ext | |
copt = {"msvc": ["/openmp"], "mingw32": ["-fopenmp"], "unix": ["-fopenmp"]} |
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
diff --git a/invesalius/data/slice_.py b/invesalius/data/slice_.py | |
index e53235f5..2380f15d 100644 | |
--- a/invesalius/data/slice_.py | |
+++ b/invesalius/data/slice_.py | |
@@ -1381,7 +1381,7 @@ class Slice(with_metaclass(utils.Singleton, object)): | |
colorer.SetInputData(image) | |
colorer.SetWindow(self.window_width) | |
colorer.SetLevel(self.window_level) | |
- colorer.SetOutputFormatToRGB() | |
+ colorer.SetOutputFormatToLuminance() |
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
wget -qO - http://repo.radeon.com/rocm/apt/debian/rocm.gpg.key | sudo apt-key add - | |
echo 'deb [arch=amd64] http://repo.radeon.com/rocm/apt/debian/ xenial main' | sudo tee /etc/apt/sources.list.d/rocm.list | |
sudo apt update | |
sudo apt install rocm-dkms | |
sudo usermod -a -G render $LOGNAME | |
sudo reboot |
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
{ lib, pkgs, buildPythonPackage, fetchPypi, unzip, python }: | |
buildPythonPackage rec { | |
pname = "plaidml"; | |
version = "0.7.0"; | |
format = "other"; | |
srcs = [ | |
(fetchPypi { | |
inherit pname version; |
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": "python3-modules", | |
"buildsystem": "simple", | |
"build-commands": [ | |
"pip3 install --exists-action=i --no-index --find-links=\"file://${PWD}\" --prefix=${FLATPAK_DEST} wxpython numpy scipy imageio scikit-image Pillow pyserial psutil nibabel configparser h5py PyPubsub plaidml-keras cython" | |
], | |
"build-options": { | |
"env": { | |
"WXPYTHON_BUILD_ARGS": "--use_syswx" | |
} |
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
diff --git a/src/cmd/create.go b/src/cmd/create.go | |
index 74e90b1..c94e44d 100644 | |
--- a/src/cmd/create.go | |
+++ b/src/cmd/create.go | |
@@ -298,6 +298,56 @@ func createContainer(container, image, release string, showCommandToEnter bool) | |
kcmSocketMount = []string{"--volume", kcmSocketMountArg} | |
} | |
+ var etcStaticMount []string | |
+ var resolveMount []string |
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
diff --git a/invesalius/data/brainmesh_handler.py b/invesalius/data/brainmesh_handler.py | |
index 172b3c3a..a6f6732b 100644 | |
--- a/invesalius/data/brainmesh_handler.py | |
+++ b/invesalius/data/brainmesh_handler.py | |
@@ -33,6 +33,8 @@ class Brain: | |
tmpPeel = downsample(refSurface) | |
# Standard space coordinates | |
mask_sFormMatrix = mask_reader.GetSFormMatrix() | |
+ if mask_sFormMatrix is None: | |
+ mask_sFormMatrix = vtk.vtkMatrix4x4() |
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
❯ nix-shell --show-trace | |
building '/nix/store/p4jwrw756b2ps1076m3zly5rs8y5hhsz-mach_nix_file.drv'... | |
Some requirements could not be resolved. | |
Top level requirements: | |
openvino==2022.1.0 | |
Providers: | |
{'_default': ['wheel', 'sdist', 'nixpkgs'], | |
'gdal': ['nixpkgs'], | |
'pip': ['nixpkgs', 'sdist'], |