Skip to content

Commit

Permalink
Pass dict to parse_cc
Browse files Browse the repository at this point in the history
  • Loading branch information
kmlefran committed Sep 12, 2023
1 parent 51ac44c commit 196afbf
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion aiida_aimall/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
A plugin to interface AIMAll with AiiDA
"""

__version__ = "0.1.21"
__version__ = "0.1.22"
10 changes: 6 additions & 4 deletions aiida_aimall/parsers.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,17 +71,19 @@ def parse(self, **kwargs):
"bcp_properties": self._parse_bcp_props(sum_lines),
}
if "-atlaprhocps=True" in input_parameters.cmdline_params("foo"):
out_dict["cc_properties"] = self._parse_cc_props()
out_dict["cc_properties"] = self._parse_cc_props(
out_dict["atomic_properties"]
)
# self.outputs.atomic_properties = self._parse_atomic_props(sum_lines)
# self.outputs.bcp_properties = self._parse_bcp_props(sum_lines)
self.outputs.output_parameters = Dict(out_dict)
# self.outputs.output_parameters.cc_properties = self._parse_cc_props()

return # ExitCode(0)

def _parse_cc_props(self):
def _parse_cc_props(self, atomic_properties):
output_filename = self.node.process_class.OUTPUT_FILE
atom_list = list(self.outputs.atomic_properties.keys())
atom_list = list(atomic_properties.keys())
cc_dict = {
x: qt.get_atom_vscc(
filename=self.retrieved.get_object_content(
Expand All @@ -92,7 +94,7 @@ def _parse_cc_props(self):
).split("\n"),
atomLabel=x,
type="vscc",
atomicProps=self.outputs.atomic_properties.get_dict(),
atomicProps=atomic_properties,
is_lines_data=True,
)
for x in atom_list
Expand Down

0 comments on commit 196afbf

Please sign in to comment.