tldr-group / taufactor

TauFactor is a parallelised solver for calculating tortuosity factors from voxel data.
MIT License
30 stars 6 forks source link

Same img, solving for different phases. #21

Closed amirDahari1 closed 3 years ago

amirDahari1 commented 3 years ago

Description

Currently, if I have an n-phase image, and I want to run .solve() for the different phases, I need to have n different binary images and to create n different solver objects. It would be cool if only one img would be needed, and solve would have a phase parameter such as

tau_i = s.solve(phase=phase_i)

isaacsquires commented 3 years ago

Because this is an easy fix on the user side (setting all phases except phase of interest to 0) we have decided to spit out an error on the regular solver that warns user when using multiphase image on binary solver and offers advice to use multiPhase solver or reset their phase labels