Skip to content
Snippets Groups Projects
Commit c575b5a2 authored by Berk Onat's avatar Berk Onat
Browse files

Fix: do not add section_system if there are no topology or trajectory files

parent 2aebb6ed
No related branches found
Tags 0.0.3
No related merge requests found
Pipeline #
......@@ -612,8 +612,10 @@ class AMBERParser(AmberC.AMBERParserBase):
self.metaStorage.updateBackend(backend.superBackend,
startsection=['section_single_configuration_calculation'],
autoopenclose=False)
self.onOpen_section_system(backend, None, None)
self.onClose_section_system(backend, None, None)
if(self.topology is not None or
self.atompositions is not None):
self.onOpen_section_system(backend, None, None)
self.onClose_section_system(backend, None, None)
backend.superBackend.closeSection("section_single_configuration_calculation", self.secSingleGIndex)
# write number of Minimization steps
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment