Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sample dictionnary generation breaks when xsec not documented #154

Open
portalesHEP opened this issue Jan 12, 2023 · 0 comments
Open

Sample dictionnary generation breaks when xsec not documented #154

portalesHEP opened this issue Jan 12, 2023 · 0 comments

Comments

@portalesHEP
Copy link
Contributor

portalesHEP commented Jan 12, 2023

print ('self.para.gridpacklist[processhad][3] ',self.para.gridpacklist[processhad][3])
print ('self.para.gridpacklist[processhad][4] ',self.para.gridpacklist[processhad][4])
xsec = float(self.para.gridpacklist[processhad][3])
The xsec variable can't be defined when no value of the cross-section is included in param_FCCee.py, and the code crashes in such cases. A quick fix could be to include a dummy value for cross-sections for when the read string is empty. Would that be desirable (I can see interest in not generating the dictionnary, as a reminder to include the missing xsec)?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant