Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Spectral plotting improvements #94

Merged
merged 13 commits into from
Aug 6, 2020
Merged

Conversation

ml-evs
Copy link
Owner

@ml-evs ml-evs commented Aug 6, 2020

Closes #93 and #92.

Summary of changes:

  • rasterize scatter PDIS plots, making them much more efficient to create and save
  • added --projector_colours override
  • made dos_plot and dispersion_plot functions more API friendly, and added hacky example notebook
  • scrape BS_* keywords as SPECTRAL_* equivalents from cell files

@ml-evs ml-evs changed the title Spectral plotting updates Spectral plotting improvements Aug 6, 2020
@codecov
Copy link

codecov bot commented Aug 6, 2020

Codecov Report

Merging #94 into master will decrease coverage by 0.05%.
The diff coverage is 74.59%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #94      +/-   ##
==========================================
- Coverage   75.83%   75.78%   -0.06%     
==========================================
  Files          90       90              
  Lines       12229    12271      +42     
==========================================
+ Hits         9274     9299      +25     
- Misses       2955     2972      +17     
Flag Coverage Δ
#unittests 75.78% <74.59%> (-0.06%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
matador/scrapers/castep_scrapers.py 90.50% <58.82%> (-0.28%) ⬇️
matador/plotting/spectral_plotting.py 77.51% <76.00%> (-0.86%) ⬇️
matador/cli/dispersion.py 94.05% <100.00%> (ø)
matador/orm/spectral/dispersion.py 84.37% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update f72edf3...db0bee0. Read the comment docs.

@ml-evs ml-evs merged commit fc470ec into master Aug 6, 2020
@ml-evs ml-evs deleted the ml-evs/spectral_plot_tweaks branch August 6, 2020 19:48
ml-evs added a commit that referenced this pull request Aug 10, 2020
- Improvements to PDIS functionality (#94).

  - Rasterized scatter points for more efficient exporting and fewer graphical artifacts
  - Made underlying :func:`matador.plotting.spectral_plotting.dos_plot` and :func:`matador.plotting.spectral_plotting.dispersion_plot` more API friendly, and added example notebook.
  - Fixed bug in cell scraping for old ``BS_*`` style keywords.

- Improvements to magres functionality, including scraping of units (#90)
- Example notebooks that do not need external data/databases are now run as part of CI (#91).
- New workflow for NMR calculations and refactoring of old workflows (#96).

  - New workflow performs relaxation and high-quality SCF before NMR calculation.
  - Old workflows refactored and improved to enforce certain required parameters for e.g. checkpointing.
  - Enabled phonon workflow for CASTEP ``PHONON+EFIELD`` task.
  - Made file scrapers less dependent on file type.

- Updated CASTEP parameter list to 20.1 (#97).
- Tweaked spectral plotting defaults, including ``--colours`` flag to dispersion script (#98).
@ml-evs ml-evs mentioned this pull request Aug 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

cell2dict fails when reading in BS_KPOINT_PATH
1 participant