Host(manage) multiple path by `dataclass` and `descriptor` in Python
This article shows an approach in Python about how to host(manage) multiple paths from a config file and only expose one result to the user automatically. Introduction The multiple paths means a group of paths in a config file like: 123path: Windows: E:/Datasets/BraTS/BraTS2022 Linux: /mnt/e/Datasets/BraTS/BraTS2022 Or, it can be regarded as a nested dict in Python as: 123456multiple_paths = { 'path':{ 'Windows':'E:/Datasets/BraTS/BraTS2022'...
Progress bar with multiple backends
This article introduces a simple manner about integrating different Progress Bar backends in Python. Introduction Progress Bar: A progress bar is a graphical control element used to visualize the progression of an extended computer operation, such as a download, file transfer, or installation. Sometimes, the graphic is accompanied by a textual representation of the progress in a percent format. The concept can also be regarded to include “playback bars” in media players that keep track of th...
Reset ACL/SDDL to deal with authorization problems in ReFS or NTFS
This article records my procedures for dealing with authorization problems in ReFS or NTFS with Windows system. In this article, we do not talk about the relationship between Authorization and File System. And we do not differentiate which File System can support the corresponding operations and rules about Authorization. That is, if we encounter authorization problems, we almost can follow the actions in this article, since if a File System does not support authorization operations, it may n...
There may be no need to fully understand Junction, Hard Link and Symbolic Link in NTFS
In normal scenarios, the concepts and characteristics of hard links, junctions, and symbolic links are intertwined. Only a few words cannot tell them clearly. However, in terms of daily use, why must we understand 100% of their differences and similarities? Sometimes, it is enough to remember these three concepts’ main features and differences, plus some experience. From the perspective of an average Windows user, this article introduces hard links, junctions, and symbolic links in Windows fi...
About `coordinate systems and affines` in Nibabel
There are many continuously updated Python libraries that can be used or specialized for Medical Imaging, such as, SimpleITK, NiBabel, scikit-image, etc. Each medical imaging tool has its own internal data structure, but they all serve real-world people of interest. Therefore, when interacting with people, each of these tools is bound to exhibit characteristics that are independent of its own data structure and only relevant to the real world items. In this article, we are around coordinate s...