View test_geometry.py
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 unittest | |
from unittest.mock import MagicMock | |
import invesalius.i18n as i18n | |
_ = i18n.InstallLanguage('en') | |
from invesalius.data.geometry import * | |
class TestBox(unittest.TestCase): |
View separate_holes.py
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 sys | |
import vtk | |
def getInlet_and_Outlets(mesh): | |
fillHoles = vtk.vtkFillHolesFilter() | |
fillHoles.SetInputData(mesh) | |
fillHoles.SetHoleSize(1000.0) | |
fillHoles.Update() |
View id_holes.py
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 sys | |
import vtk | |
colors = vtk.vtkNamedColors() | |
reader = vtk.vtkSTLReader() | |
reader.SetFileName(sys.argv[1]) | |
reader.Update() |
View test_mac.patch
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/viewer_slice.py b/invesalius/data/viewer_slice.py | |
index ff6344ed..bba882b3 100644 | |
--- a/invesalius/data/viewer_slice.py | |
+++ b/invesalius/data/viewer_slice.py | |
@@ -682,14 +682,14 @@ class Viewer(wx.Panel): | |
mposx, mposy = wx.GetMousePosition() | |
cposx, cposy = self.interactor.ScreenToClient((mposx, mposy)) | |
mx, my = cposx, self.interactor.GetSize()[1] - cposy | |
- if sys.platform == 'darwin': | |
- # It's needed to mutiple by scale factor in HighDPI because of |
View lomp.diff
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/setup.py b/setup.py | |
index 9f69c998..2b923001 100644 | |
--- a/setup.py | |
+++ b/setup.py | |
@@ -12,8 +12,8 @@ from Cython.Build import cythonize | |
from Cython.Distutils import build_ext | |
if sys.platform == "darwin": | |
- unix_copt = ["-Xpreprocessor", "-fopenmp", "-lomp"] | |
- unix_lopt = ["-Xpreprocessor", "-fopenmp", "-lomp"] |
View nix-shell-show-trace
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'], |
View brainmesh_handler.patch
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() |
View etc_static.patch
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 |
View python3-modules.json
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" | |
} |
View plaidml.nix
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; |
NewerOlder