NPBentley / CASTEP_bands

A Python module for performing band structure manipulation and generating publication quality plots.
MIT License
1 stars 1 forks source link

Labelling and colouring of bands according to mask #3

Closed Inker2401 closed 6 months ago

Inker2401 commented 7 months ago

New arguments for plot_bs These new arguments allow actions on specific bands using the existing band_ids keyword.

New functions _check_user_input_str_mask and _setup_str_mask, both of which are local to plot_bs are used to check the user has specified the input data correctly and setup the appropriate character mask array respectively. These functions should make it easier to add similar keyword arguments for bands in the future.

New Examples

Misc Changes Formatted code to autopep8 for readability and deleted trailing whitespace.