-
Notifications
You must be signed in to change notification settings - Fork 4
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
problematic parsing of *.traj files from ase #115
Comments
@ladinesa @ndaelman-hu I talked to Julia about this, and it appears now that the ".traj" parser (i.e., asap parser) has been somehow broken and then fixed in the mean time. In our discussion though I began to wonder the scope of this parser. My understanding is that the ".traj" format is ase's native trajectory format. Is there other explicit support for ase? In these examples that Julia posted, I believe that ase is executing FHIAims or VASP. I just wonder what was the original functionality intended when implementing the asap parser, and if we should consider extending this (probably largely depends on how relevant this is for you @schumannj). Julia and I talked about the user creating a workflow file when running such calculations with ase. |
as far as I can remember, only ASAP parses traj files, maybe we could restrict more the file contents so as to exclude unintended files. |
Yeah, I identified this problem a while ago and passed it on to @Bernadette-Mohr. I think she solved it already.
The old error log traces back to lines 44-46 in the parser: it's looking for a calculator object to verify the integrity of the trajectory. This is what was failing with Julia's calculations. My impression is that this requirement is too strong, but maybe @Bernadette-Mohr can share her opinion. |
ok, thank you everyone for the clarification, I think I understand now. @schumannj I think it would be good to take a look at any use-cases that you have and try to understand better the typical use/appearance of these |
@ladinesa I have added a couple of different examples for .traj files to the branch and created folders for a seperate ase parser. 2 of the traj files I took from published NOMAD uploads, so we have examples of traj files with different calculators and level of information. |
so i looked at the issue and here's my proposal:
I can set up the skeleton for these and perhaps parse some basic quantities. |
Sounds good to me. @schumannj after Alvin implements the basic support, we could come back together and assist you with specific workflows and such I think 😁 |
Sounds good to me as well. Yes, I will definitely need some help for the workflows. Thanks! |
change of plan, i would put everything in atomistic-parsers, so as not to introduce the complication of spreading codes in 3 plugins. |
there seems to be a technical issue with the entry point not taking in mainfile_binary_header(_re) so until it is not fixed, asap parser will still match all traj files. |
The issue has been fixed, ase traj files are now parsed as ase. @schumannj can you please test this with nomad-develop? |
@ladinesa I can test this. You mean locally, right? how do I add the branch of the atomisitc parser? Do I have to replace nomad-parser-plugins-atomistic with the local atomistic-parsers using pip uninstall/install from local? |
yes pls, just do a uv pip install atomistic-parsers, after running the nomad setup so you use your local atomisparsers. maybe you can also try to extend the ase parser now since I only implemented the parsing of common quantities. |
just pushed a fix |
And for the files it parses correctly, the calculator 'vasp' is put under force_fields. This is where the workflow parsing goes in. I can work on this if a specific dataset example is given to me otherwise I would refer this to @JFRudzinski |
I can confirm, now it works. |
Something seems to have been changed between 2022 and February 2023.
Earlier *.traj seemed to have been parsed correctly, i.e.at least the structure was extracted. See e.g. here, for the same file the structure is not extracted currently.
Since last year, even though also the asap parser recognised the file, the structure was not extracted, see .e.g. here
The text was updated successfully, but these errors were encountered: