-
-
Notifications
You must be signed in to change notification settings - Fork 440
cmfgen2tardis not working #1302
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
Comments
could you please show us how you want to do that and post also the files - so we can try to follow |
Thankyou for your reply. So, I want to model the spectra of a SN Ia which I am currently working on. I am trying to generate tardis readable file from a cmfgen file This is from a paper by Dessart, 2014. from tardis.atomic import AtomData ModuleNotFoundError: No module named 'tardis.atomic' I also tried importing atomic from jupyter-notebook. It is not working there also. |
Seems
Also in the script
but currently
After doing that I ran the script by doing:
and got the following error:
because Python does not understand Fortran This script should be updated soon. |
Many thanks. I did the import as was mentioned by @epassaro , and also removed the string part '100*0.00000D0' to 100.00. abundances_df.loc[element_symbol] = abundances ValueError: cannot set a row with mismatched columns Is there a change in the output format of cmfgen or the code ? |
I understand that Then the I wrote on line 80:
Then the code fails again because the function In line 70 added:
and got the output file . But I'm not sure if this approach makes sense, I never worked with this script. @wkerzendorf knows more about this. |
I'll have a look hopefully soon |
Code Sample, a copy-pastable example if possible
Problem description
While trying to convert a cmfgen file to tardis, shows the output above. Any help would be greatly appreciated
The text was updated successfully, but these errors were encountered: