Currently, decompose_flow_vectors script's main(args) contains input(source and variable) checking procedures. This is somewhat not ideal when the program is called in another program such as thunderbird. Passing args as a parameter makes it hard to call the main() function when the program that imports decompose_flow_vectors does not run using terminal input. Therefore, it is necessary to copy the input checking procedure from the script to the newly implemented program, which is redundant to have duplicate codes. To avoid this, refactor the procedure into source_check() and variable_check() functions.
Currently,
decompose_flow_vectors script
's main(args) contains input(source and variable) checking procedures. This is somewhat not ideal when the program is called in another program such as thunderbird. Passingargs
as a parameter makes it hard to call themain()
function when the program that importsdecompose_flow_vectors
does not run using terminal input. Therefore, it is necessary to copy the input checking procedure from the script to the newly implemented program, which is redundant to have duplicate codes. To avoid this, refactor the procedure intosource_check()
andvariable_check()
functions.