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
No related tags found
No related merge requests found
Pipeline #
...@@ -612,6 +612,8 @@ class AMBERParser(AmberC.AMBERParserBase): ...@@ -612,6 +612,8 @@ class AMBERParser(AmberC.AMBERParserBase):
self.metaStorage.updateBackend(backend.superBackend, self.metaStorage.updateBackend(backend.superBackend,
startsection=['section_single_configuration_calculation'], startsection=['section_single_configuration_calculation'],
autoopenclose=False) autoopenclose=False)
if(self.topology is not None or
self.atompositions is not None):
self.onOpen_section_system(backend, None, None) self.onOpen_section_system(backend, None, None)
self.onClose_section_system(backend, None, None) self.onClose_section_system(backend, None, None)
backend.superBackend.closeSection("section_single_configuration_calculation", self.secSingleGIndex) backend.superBackend.closeSection("section_single_configuration_calculation", self.secSingleGIndex)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment