Would be nice if get_default_scan_params and get_dda_scan_param were to be moved out from the environment. Currently it leads to a pretty awkward code, such as the following when making a FixedScansController:
because we need to create the env first to get access to get_dda_scan_param in order to create the tasks.
The problem is inside get_default_scan_params and get_dda_scan_param, there's this dependence on polarity (also called 'ionisation mode'), which is currently stored inside the mass spec.
So if we move this method elsewhere or make it static, we need to pass this polarity information somehow .. Need some thoughts. Also, polarity is actually specified for each custom scan, so it doesn't need to be stored globally for the entire mass spec. This prevents us from doing e.g. a pos/neg switching controller.
Would be nice if
get_default_scan_params
andget_dda_scan_param
were to be moved out from the environment. Currently it leads to a pretty awkward code, such as the following when making a FixedScansController:because we need to create the
env
first to get access toget_dda_scan_param
in order to create the tasks.The problem is inside
get_default_scan_params
andget_dda_scan_param
, there's this dependence on polarity (also called 'ionisation mode'), which is currently stored inside the mass spec.So if we move this method elsewhere or make it static, we need to pass this polarity information somehow .. Need some thoughts. Also, polarity is actually specified for each custom scan, so it doesn't need to be stored globally for the entire mass spec. This prevents us from doing e.g. a pos/neg switching controller.