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

Issue #107: Tried to resolve the missing collisional data while getting NLTE data problem #126

Merged
merged 0 commits into from Jul 17, 2014

Conversation

ghost
Copy link

@ghost ghost commented Apr 16, 2014

No description provided.

@ghost
Copy link
Author

ghost commented Apr 16, 2014

@ssim Please review this. I shall be grateful if you can also suggest me a more proper error message.

try:
c_ul_matrix = self.C_ul_interpolator[species](t_electrons)
except AttributeError:
print "Collisional Data missing. Unable to create Collision Matrix for NLTE Data."
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@rajul-iitkgp thanks for trying to fix this. I think the first is to remove the print-statement. I think in this case the code should stop, so when you catch the AttributeError - it would be great to reraise it with the error message you give (maybe then re-raise it as a ValueError). Thanks

@ssim
Copy link
Contributor

ssim commented Apr 17, 2014

Hello - I think the text of the message above it good:
"Collisional Data missing. Unable to create Collision Matrix for NLTE Data.:
But as @wkerzendorf says, I think it should then abort the code run.

@wkerzendorf wkerzendorf merged commit 0a7d2a9 into tardis-sn:master Jul 17, 2014
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

Successfully merging this pull request may close these issues.

None yet

2 participants