theochem / iodata

Unnecessary None provided as default PTC-W0039
Anti-pattern
Minor
3 months ago4 months old
None as default value is redundant
132    result = {
133        "title": fchk["title"],
134        # if "Total Energy" is not present in FCHk, None is returned.
135        "energy": fchk.get("Total Energy", None),136        "lot": fchk["lot"].lower(),
137        "obasis_name": fchk["obasis_name"].lower(),
138        "atcoords": fchk["Current cartesian coordinates"].reshape(-1, 3),
None as default value is redundant
318        "full_virial_ratio",
319        "mo_spin",
320    ]
321    extra = {label: data.get(label, None) for label in extra_labels}322    extra["permutations"] = permutation
323
324    return {