From Marc -- I see this doing several tasks:
1.Resolve the likelihood/tools/req_params (lines 54–88)
2. Normalize pars_fid — MG unpacking, baryonic effects removal (lines 96–122)
3. Initialize instance variables (lines 128–145)
4. Parse transform flags (lines 146–157)
5. Parse varied parameters and pivot point (lines 159–196)
6. Parse priors and derivative settings (lines 198–210)
I would suggest refactoring to move at least 2, 5 and 6 into private functions that could then be independently tested.
From Marc -- I see this doing several tasks:
1.Resolve the likelihood/tools/req_params (lines 54–88)
2. Normalize pars_fid — MG unpacking, baryonic effects removal (lines 96–122)
3. Initialize instance variables (lines 128–145)
4. Parse transform flags (lines 146–157)
5. Parse varied parameters and pivot point (lines 159–196)
6. Parse priors and derivative settings (lines 198–210)
I would suggest refactoring to move at least 2, 5 and 6 into private functions that could then be independently tested.