Search found 1351 matches

by riviere
Fri Apr 06, 2018 1:24 pm
Forum: BrainVISA
Topic: Error in brainvisa-4.6.0/python/brainvisa/processes.py
Replies: 10
Views: 19755

Re: Error in brainvisa-4.6.0/python/brainvisa/processes.py

OK. Normally the "best way" is either to source the bv_env.sh script in the terminal before running any program in the brainvisa distriution, or run them through the bv_env program (without .sh extension). They setup all needed environment variables both to set BV environment, and to get o...
by riviere
Fri Apr 06, 2018 1:20 pm
Forum: Anatomist
Topic: QPixmap::setMask() mask size differs from pixmap size
Replies: 17
Views: 28746

Re: QPixmap::setMask() mask size differs from pixmap size

Hi, Yes, I think I know: a few new objects types in anatomist do not have an associated icon to display them in the graphical interface, and it was not really expected. Is it linked with a specific kind of object ? I get them when using text objects for instance (but not only). I just forgot to crea...
by riviere
Fri Apr 06, 2018 1:09 am
Forum: BrainVISA
Topic: Error in brainvisa-4.6.0/python/brainvisa/processes.py
Replies: 10
Views: 19755

Re: Error in brainvisa-4.6.0/python/brainvisa/processes.py

It seems related to the previous problem. It cannot find bv_unenv in the PATH. However this bv_unenv program should be in the bin/ directory of brainvisa. If it is not (or if it does not have execute permission), then it's probably an install problem. If it is actually here, then it's a PATH problem...
by riviere
Thu Mar 29, 2018 5:35 pm
Forum: BrainVISA
Topic: Error in brainvisa-4.6.0/python/brainvisa/processes.py
Replies: 10
Views: 19755

Re: Error in brainvisa-4.6.0/python/brainvisa/processes.py

Oh OK it's less mysterious this way... I haven't looked how Intranat sets up its environment, if it does or not by itself, or if it is because you maybe run the python scripts directly from Eclipse, bypassing the startup shell scripts which setup the environment (bin/bv_env). Anyway if it works this...
by riviere
Wed Mar 28, 2018 6:08 pm
Forum: Anatomist
Topic: Modifying texture with SurfPaint
Replies: 2
Views: 11123

Re: Modifying texture with SurfPaint

Hi, For 3D rendering reasons, textures are generally rescaled with values between 0 and 1. Scaling factors are kept, and transformed back to real values when the texture is saved or converted to other objects. But these operations may induce rounding issues, as they are float32 values. I don't remem...
by riviere
Wed Mar 28, 2018 5:55 pm
Forum: BrainVISA
Topic: Checking existence of a Format or FileType
Replies: 9
Views: 19924

Re: Checking existence of a Format or FileType

Getting the "standard neuroimaging data types" such as PET or FLAIR in a centralized place in axon would be a good start, and we will do so actually. But it doesn't solve all problems. Toolboxes use these types in different ways, probably place files at different locations in different org...
by riviere
Wed Mar 28, 2018 5:43 pm
Forum: BrainVISA
Topic: Error in brainvisa-4.6.0/python/brainvisa/processes.py
Replies: 10
Views: 19755

Re: Error in brainvisa-4.6.0/python/brainvisa/processes.py

Hi François, Your fix is OK, but I find it simpler if this env dict is never None, so I suggest a different fix which would initialize it with an empty dict rather than None. You can try putting this file at the same location in your brainvisa installation (python/soma/): ftp://ftp.cea.fr/pub/dsv/an...
by riviere
Tue Mar 20, 2018 2:41 pm
Forum: BrainVISA
Topic: Checking existence of a Format or FileType
Replies: 9
Views: 19924

Re: Checking existence of a Format or FileType

what do you mean by circular importation of modules ? I mean that to use getAllDiskItemTypes, you need to import brainvisa.processes, and the list of diskitems should be already here. For that, brainvisa.processes needs to import itself all types files. Then your type file imports processes, proces...
by riviere
Tue Mar 20, 2018 12:29 pm
Forum: BrainVISA
Topic: Checking existence of a Format or FileType
Replies: 9
Views: 19924

Re: Checking existence of a Format or FileType

Hi Pierre, The types/formats files are read at startup when you run brainvisa, or when you reload toolboxes, not when updating databases. You can get the list of all types ( getAllDiskItemTypes() ) and formats ( getAllFormats() ), and check if one of them is present in the list: from brainvisa.proce...
by riviere
Tue Mar 20, 2018 12:07 pm
Forum: Anatomist
Topic: Anatomist on Windows WSL/Ubuntu 16.04
Replies: 7
Views: 19496

Re: Anatomist on Windows WSL/Ubuntu 16.04

Hi François,
Thanks, the instructions on the web site have been updated accordingly.
Denis
by riviere
Fri Mar 09, 2018 7:10 pm
Forum: Anatomist
Topic: Anatomist on Windows WSL/Ubuntu 16.04
Replies: 7
Views: 19496

Re: Anatomist on Windows WSL/Ubuntu 16.04

Thanks for the installation instructions. I have included them in the install instructions on the download page of the web site:
http://brainvisa.info/web/download.html ... untu-shell

Denis
by riviere
Fri Mar 09, 2018 1:59 pm
Forum: Anatomist
Topic: Anatomist on Windows WSL/Ubuntu 16.04
Replies: 7
Views: 19496

Re: Anatomist on Windows WSL/Ubuntu 16.04

I'm just thinking: in your snapshot the rendering of the cursor seems OK for an "empty" window (it is just clipped to the bounding box of an empty content). Moreover the tile of the window seems to say that there is no object at all in the window. So the problem is perhaps not in the rende...
by riviere
Fri Mar 09, 2018 11:01 am
Forum: BrainVISA
Topic: Error importing .nii file?
Replies: 2
Views: 12282

Re: Error importing .nii file?

Hi, There is a problem in the handling of some temporary files actually on Windows, we have already found and fixed it in our sources, but haven't got time to release the fixed version yet. In your case I thing the problem is triggered by the fact that your image is considered as float voxel values ...
by riviere
Wed Mar 07, 2018 5:45 pm
Forum: Anatomist
Topic: Anatomist on Windows WSL/Ubuntu 16.04
Replies: 7
Views: 19496

Re: Anatomist on Windows WSL/Ubuntu 16.04

Hi, Well, actually we did not get a chance to try this configuration - our institution does not support Windows 10 yet. I was wondering how graphical / 3D applications would run in the Ubuntu / windows binding... Did you try some other 3D linux application (glxgears to begin withk; does glxinfo outp...
by riviere
Mon Mar 05, 2018 12:32 pm
Forum: Anatomist
Topic: How to activate coloring by normals using pyanatomist ?
Replies: 5
Views: 14267

Re: How to activate coloring by normals using pyanatomist ?

OK in the next update (or if you are building anatomist from sources), it should be included in setMaterial():

Code: Select all

mesh.setMaterial(use_shader=1, shader_color_normals=1)
Denis