Closed hayleyclev closed 1 month ago
Hi Hayley,
I just pulled the latest version of Lompe and ran the following tests. They executed successfully:
gtg, ltl = model.run_inversion()
gtg, ltl = model.run_inversion(l1=1)
gtg, ltl = model.run_inversion(l1=1, l2=1)
gtg, ltl = model.run_inversion(l1=1, l2=1, l3=1)
gtg, ltl = model.run_inversion(FAC_reg=True)
gtg, ltl = model.run_inversion(l1=1, FAC_reg=True)
gtg, ltl = model.run_inversion(l1=1, l2=1, FAC_reg=True)
gtg, ltl = model.run_inversion(l1=1, l2=1, l3=1, FAC_reg=True)
try:
gtg, ltl = model.run_inversion(l1=(1, 1))
except:
print('Not supposed to work')
gtg, ltl = model.run_inversion(l1=(1,1), FAC_reg=True)
gtg, ltl = model.run_inversion(l1=(1,1), l2=(1,1), FAC_reg=True)
gtg, ltl = model.run_inversion(l1=(1,1), l2=(1,1), l3=(1,1), FAC_reg=True)
gtg, ltl = model.run_inversion(l1=0, l2=(1,1), l3=1, FAC_reg=True)
Unless you have made changes to model.py, your error code suggests that you are running an old version of Lompe. The lines numbers highlighted are not consistent with the current version.
Would you mind trying to pull the latest version of Lompe and see if the issue persists?
I am receiving an error message related to the reg_E and run_inversion functions within lompe/lompe/model/model.py with the addition of the third regularization parameter. The existing version of the code I run which calls this funcrion has worked previously with just l1 and l2. Any variation of FAC_reg with any variation of tuples or floats for l1, l2, an l3 produce this same error. I initially followed the documentation/descriptions for these (i.e. following: ```Parameters
Error message:
MWE (just including where run_inversion function is called, at the end of this block):
Any insight to properly calling run_inversion with this new parameter will be greatly appreciated. Thanks!