-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- PyPI release! Can now install with ``pip install matador-db`` (unfortunately ``matador`` was taken, but they are sufficiently orthogonal that the package name ``matador`` is retained here. - Much improved code structure and many additional classes that wrap the raw calculation dictionaries for e.g. :class:`matador.crystal.Crystal` and spectral classes. - New module :mod:`matador.orm` containing useful models for data handling. - :class:`matador.orm.orm.DataContainer` as a base class that allows for easy access to underlying dictionaries. - :mod:`matador.orm.spectral` module that contains many useful classes for manipulating and plotting e.g. bandstructures, DOS and finite temperature properties. - New features in :mod:`matador.hull` module: - Pseudo-ternary phase diagrams (building towards arbitrary n-dimensional phase diagrams). - :class:`matador.hull.EnsembleHull` class and submodule to support the Bayesian Error Estimate Functional (BEEF) and finite temperature phase diagrams. - Refactoring of hull calculation into light-weight :class:`matador.hull.PhaseDiagram` class. - Finite temperature hulls based on :class:`matador.hull.EnsembleHull` with :class:`matador.hull.TemperatureDependentHull`. - Refactored old PDF `similarity` module into new module :mod:`matador.fingerprints`. - Added new fingerprint class, :class:`matador.fingerprints.PXRD`, with associated plots (thanks for James Darby for some initial code). Defaults calibrated with GSAS-II. - :class:`matador.fingerprints.PDF` sped up by an order of magnitude using `numba`. - :class:`matador.workflows.castep.CastepSpectralWorkflow` extended to include latest projected dispersion curve developments from OptaDOS, with associated projected dispersion plots (see tutorial). - Updated dispersion script to automatically perform naive Gaussian smearing if OptaDOS output not detected. - Abstracted and simplified :mod:`matador.compute` module to allow for extension to new codes via :mod:`matador.compute.calculators` submodule. - Should now be more robust and transferrable, with many HPC environments automatically detected. - Added ``--scratch_prefix`` to run3 to allow for temporary files to e.g. be written to faster filesystem with appropriate symlinks to work folder. - All CASTEP 19 keywords supported, as well as `devel_code` blocks. - Several new tests: coverage now around 75% when CASTEP is available. - New tutorials: - :ref:`MongoDB setup<mongo>` - :ref:`Spectral calculations with run3<run3_spectral>` - Example notebooks
- Loading branch information
Showing
1,151 changed files
with
355,094 additions
and
309,466 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,16 @@ | ||
# .coveragerc to control coverage.py | ||
[run] | ||
branch = True | ||
concurrency = multiprocessing | ||
parallel = True | ||
|
||
[report] | ||
# Regexes for lines to exclude from consideration | ||
ignore_errors = True | ||
omit = | ||
*/tests/* | ||
setup.py | ||
*/__init__.py | ||
*matador/plotting* | ||
omit = | ||
*matador/workflows* | ||
*matador/plugins* | ||
*matador/cli/dispersion.py | ||
*matador/cli/run3.py | ||
exclude_lines = | ||
*matador/config/quickstart.py | ||
exclude_lines = | ||
pragma: no cover | ||
if verbosity | ||
if self.verbosity | ||
if debug | ||
if self.debug | ||
def plot_ | ||
if kwargs.get('verbosity') | ||
if kwargs.get('debug') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
[flake8] | ||
# E226: whitespace around operators which can look ugly, IMO | ||
# W503 and W504 can be contradictory: linebreaks before/after binary operators | ||
ignore = E226, W503, W504 | ||
# same width as GH editor | ||
max-line-length = 127 | ||
# these files are either autogenerated or no longer maintained | ||
exclude = docs,plugins,castep_params | ||
# unfortunately complexity is a harsh requirement on some of this project... | ||
max-complexity = -1 | ||
# ignore star imports in chem utils that bring in all constants | ||
per-file-ignores = | ||
matador/utils/chem_utils.py:F405 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
name: Run tests | ||
|
||
on: | ||
pull_request: | ||
push: | ||
branches: | ||
- develop | ||
- master | ||
|
||
jobs: | ||
lint: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
max-parallel: 2 | ||
matrix: | ||
python-version: [3.6] | ||
|
||
steps: | ||
- uses: actions/checkout@v1 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v1 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install dependencies | ||
run: | | ||
cp tests/data/matador_pipelines_conf.yml $HOME/.matadorrc | ||
python -m pip install --upgrade pip | ||
pip install flake8 | ||
- name: Check for syntax errors and lint with flake8 | ||
run: | | ||
flake8 . \ | ||
--count --select=E9,F63,F7,F82 --show-source --statistics | ||
# check for bad code smell on all but the least important files... | ||
flake8 . \ | ||
--count \ | ||
--statistics | ||
test: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python-version: [3.6] | ||
|
||
steps: | ||
- uses: actions/checkout@v1 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v1 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install dependencies | ||
run: | | ||
cp tests/data/matador_pipelines_conf.yml $HOME/.matadorrc | ||
python -m pip install --upgrade pip | ||
pip install -e .[test,plotting,crystal,optional] | ||
- name: Test with pytest | ||
run: | | ||
py.test -rs --cov-config .coveragerc --cov=./matador/ --cov-report=xml | ||
- name: Upload coverage to Codecov | ||
uses: codecov/codecov-action@v1 | ||
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
file: ./coverage.xml | ||
flags: unittests | ||
yml: ./codecov.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
repos: | ||
- repo: https://gitlab.com/PyCQA/flake8 | ||
rev: master | ||
hooks: | ||
- id: flake8 | ||
name: Flake8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.