Skip to content

Conversation

@dkuegler
Copy link
Member

@dkuegler dkuegler commented Nov 9, 2023

Python uses os.cpu_count to find the total number of cpus, not the assigned/available number of cores.
For that, we are now using os.sched_getaffinity

(already based on talairach PR)

dkuegler and others added 6 commits November 9, 2023 17:00
fix python-s in run_fastsurfer.sh (only use this if it is defined, else use python3.10 -- this is the default value and the in-docker fix to ignore user-space packages)
fix bashrc definition in Docker/Dockerfile
rewrite/update N4_bias_correct.py
- accept additional parameters (--aseg, --verbosity, --version)
- port from optparse to argparse
- change printing to logging facilities (instead of print), verbosity changes amount of prints.
- rename functions and variables to follow PEP8 (lowercase, underscore to separate)
- add function and integration to process the aseg and calculate wm intensity based on the wm segmentation from aseg
- change normalization code to keep the zero-base (robust scaling should be done previously, e.g. typically in conforming)
- rearrange code structure so functions are not as dependent on flags. Specifically, whether or not specific flags/files are present is moved to the main script. Consequently, functions are more predictable and not dependent on arguments.
fix doc string talairach origin
change the renormalization (--skipwm mode) to only consider the average intensity of the masked image.
fix docstring in image_io.py
…taffinity()), which respects the softwarelevel assignment of cpus (cpuaffinity)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants