@@ -187,17 +187,21 @@ def from_yaml(cls, o, *args, **kwargs):
187187 if fiatlux is not None :
188188 luxset = fiatlux ['luxset' ]
189189 theoryid = file_content ['theory' ]['theoryid' ]
190- force_compute = fiatlux .get ('compute_in_setupfit' , False )
190+ compute_in_setupfit = fiatlux .get ('compute_in_setupfit' , False )
191191 try :
192192 _ = loader .check_photonQED (theoryid , luxset )
193193 log .info (f"Photon QED set found for { theoryid } with luxset { luxset } ." )
194194 except PhotonQEDNotFound :
195- log .warning (f"No photon set found for { theoryid } with luxset { luxset } . Consider " \
196- "using `compute_in_setupfit` in the runcard to compute all replicas of the photon "
197- "in vp-setupfit. Otherwise n3fit " \
198- "will take care of the photon computation. May impact performance." )
199-
200- if force_compute :
195+ if compute_in_setupfit :
196+ log .warning (f"Photon QED set for { theoryid } with luxset { luxset } not found. " \
197+ "It will be computed in vp-setupfit." )
198+ else :
199+ log .warning (f"No photon set found for { theoryid } with luxset { luxset } . Consider " \
200+ "using `compute_in_setupfit` in the runcard to compute all replicas of the photon "
201+ "in vp-setupfit. Otherwise n3fit " \
202+ "will take care of the photon computation. May impact performance." )
203+
204+ if compute_in_setupfit :
201205 log .info ("Forcing photon computation with FiatLux." )
202206 # Since the photon will be computed, check that the luxset and additional_errors exist
203207 SETUPFIT_FIXED_CONFIG ['actions_' ].append ('fiatlux check_luxset_exists' )
0 commit comments