Skip to content

Commit

Permalink
Merge pull request #153 from JiwooChloeLee/chloeLeeDOper
Browse files Browse the repository at this point in the history
Chloe Lee Modify doper_example and doper.py files to a newer version
  • Loading branch information
AntObi authored Aug 10, 2023
2 parents 18c0abc + aaabd06 commit c382095
Show file tree
Hide file tree
Showing 2 changed files with 135 additions and 147 deletions.
280 changes: 134 additions & 146 deletions examples/Dopant_Prediction/doper_example.ipynb

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion smact/dopant_prediction/doper.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ def plot_dopants(
"p-type anion substitutions": self.p_type_an[:num_dopants],
}
for key, val in results.items():
dict_results = {utilities.parse_spec(x)[0]: y for x, y in val}
dict_results = {utilities.parse_spec(x)[0]: y for x, _, y in val}
plotting.periodic_table_heatmap(
elemental_data=dict_results,
cmap="rainbow",
Expand Down

0 comments on commit c382095

Please sign in to comment.