Skip to content

Commit

Permalink
Merge pull request #30 from nanotech-empa/release/1.2.1
Browse files Browse the repository at this point in the history
Release/1.2.1
  • Loading branch information
eimrek authored Feb 12, 2021
2 parents 1d5329f + 748d118 commit 95833d9
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 9 deletions.
2 changes: 1 addition & 1 deletion metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
"authors": "nanotech@surfaces laboratory, Empa",
"description": "Tools for graphene nanoribbons, developed at the nanotech@surfaces laboratory, Empa",
"title": "Empa nanotech@surfaces Laboratory - Graphene nanoribbons",
"version": "1.2.0",
"version": "1.2.1",
"logo": "miscellaneous/logos/empa.png"
}
4 changes: 4 additions & 0 deletions nanoribbon/viewers/show_computed.py
Original file line number Diff line number Diff line change
Expand Up @@ -554,6 +554,10 @@ def __init__(self, workcalc, **kwargs):
self.nkpoints_lowres = prev_calc.res.number_of_k_points

self.bands_lowres = prev_calc.outputs.output_band.get_bands() # [spin, kpt, band]
# In case of RKS calculation, the spin dimension is not present, add it for convenience
if self.bands_lowres.ndim == 2:
self.bands_lowres = np.expand_dims(self.bands_lowres, axis=0)

self.vacuum_level = self._workcalc.get_extra('vacuum_level')

self.list_of_calcs = []
Expand Down
2 changes: 1 addition & 1 deletion setup.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "1.2.0",
"version": "1.2.1",
"name": "empa-nanoribbons",
"url": "https://github.com/cpignedoli/aiidalab-empa-nanoribbons",
"license": "MIT License",
Expand Down
7 changes: 0 additions & 7 deletions show.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,6 @@
"source": [
"display(nanoribbon_viewer)"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
Expand Down

0 comments on commit 95833d9

Please sign in to comment.