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

[pull] master from materialsproject:master #8

Open
wants to merge 4,300 commits into
base: master
Choose a base branch
from

Conversation

pull[bot]
Copy link

@pull pull bot commented Aug 12, 2021

See Commits and Changes for more details.


Created by pull[bot]

Can you help keep this open source service alive? 💖 Please sponsor : )

@pull pull bot added the ⤵️ pull label Aug 12, 2021
@coveralls
Copy link

Pull Request Test Coverage Report for Build 1122097048

  • 17 of 17 (100.0%) changed or added relevant lines in 2 files are covered.
  • 1 unchanged line in 1 file lost coverage.
  • Overall coverage increased (+0.002%) to 83.133%

Files with Coverage Reduction New Missed Lines %
pymatgen/analysis/elasticity/tests/test_strain.py 1 97.73%
Totals Coverage Status
Change from base Build 1113762423: 0.002%
Covered Lines: 80616
Relevant Lines: 96972

💛 - Coveralls

@janosh janosh force-pushed the master branch 2 times, most recently from 92f89f0 to c2f2d72 Compare May 8, 2023 17:13
@janosh janosh force-pushed the master branch 2 times, most recently from 76dead0 to ea3d300 Compare May 18, 2023 15:39
@janosh janosh force-pushed the master branch 2 times, most recently from 3b5e5b2 to 1a78d68 Compare June 13, 2023 14:43
@janosh janosh force-pushed the master branch 2 times, most recently from 2595681 to d97e77d Compare July 25, 2023 21:00
@janosh janosh force-pushed the master branch 4 times, most recently from 1fcdea3 to 1fa96f8 Compare August 7, 2023 18:15
@janosh janosh force-pushed the master branch 4 times, most recently from af2ed4d to 637ada0 Compare November 15, 2023 04:12
@janosh janosh force-pushed the master branch 3 times, most recently from 3c23114 to 36e289c Compare December 19, 2023 02:10
shyuep and others added 30 commits January 9, 2025 12:43
* Add AseTrajAdaptor

* add docstr

* precommit / docstr

* remove molecules logic from trajectory that was already migrated to the ASE traj interface

* ensure Trajectory raises import error if ase not installed but ase functinoality requested

* remove ciruclar import, make AseTrajAdaptor static methods on Trajectory; add tests

* docstr cleanup / ruff

* remove lingering import statments from io.ase

* ensure frame_properties are checked for none in ase conversion

* is_mol --> is_pbc

* turn off delete in temp file for windows support

* simplify names per review comments

* simplify names per review comments

* remove to_ase_trajectory staticmethod
* Add failing test for mixed-valence compositions

* Update `items()` method for `Composition`, test now passing

* pre-commit auto-fixes

* Add docstring

* Typing

* Fix previous false test outputs

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
automatically add the override warning when using libxc
* Minor update to make `FermiDos` more robust

* pre-commit auto-fixes

* Update `get_cbm_vbm` methods

* Add `test_get_vbm_cbm_doping`

* pre-commit auto-fixes

* Update test value (now closer to `eigenvalue_band_properties` result)

* Cap min/max band edge indices for robustness

* pre-commit auto-fixes

* Update electronic structure tests

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Shyue Ping Ong <[email protected]>
* improve docstring

* relocate private parser method and as_dict

* tweak class docstring

* NEED CONFIRM: deprecate read_pattern, rename to _parse_pattern

* update available readers

* micro_pyawk doc clean up

* schedule debug arg for removal

* remove umask that is doing nothing

* the docstring must be incorrect, tuple is not mutable

* unpack tuple for readability

* fix return type

* use is to check None

* Revert "NEED CONFIRM: deprecate read_pattern, rename to _parse_pattern"

This reverts commit 6b80819.

* relocate read_pattern

* add type, use is to check None

* enhance type

* getattr default as False instead of None when using as condition

* DEBUG: to be reverted, comment out isotope check

* Revert "DEBUG: to be reverted, comment out isotope check"

This reverts commit 4363d1b.

* add test for make_symmetric_matrix_from_upper_tri

* add shape require

* simplify implementation

* add tabledata type alias

* revert unrelated changes

* type and comment clean up

* avoid np.array as type in docstring

* clean up read_electrostatic_potential and read_freq_dielectric

* fix a lot of NMR CS parser

* more types

* more type

* fix the rest

* finish read_igpar

* fix mypy error
* Test that entries with run_type 'r2SCAN' would not be ignored; 'r2SCAN' as an input run_type is not case-sensitive.

* Fix to ensure r2SCAN entries would not be ignored in mixing scheme correction

---------

Co-authored-by: Shyue Ping Ong <[email protected]>
* JDFTx IO module - input submodules

* JDFTx IO module - input submodules testing

* Moving "flatten_list" utility function to "generic_tags" submodule and deleting "_input_utils.py" as it contained only one method that was used once in "generic_tags.py"

* privatizing utility method "flatten_list"

* Update from master

* empty file for tmp

* Update from master

* explicit testing of "initial-magnetic-moments"

* Correction for ruff - PLC0206 (Extracting value from dictionary without calling `.items()`) - This does not appear in my local pre-commit (which I believe is running correctly) but started causing the "lint" action to fail starting around 11/22 (along with other failures from unrelated pre-existing parts of pymatgen)

* changing the previous "as_dict" method to be private, making a public "as_dict" method that passes through the __setitem__ method so that the values within the dictionary fed to "as_dict" can be as flexible as the values set explicitly by the user (also made minor updates to __setitem__ to handle setting multiple values for repeatable tags better)

* Partial cleanup of tests

* Partial cleanup of tests

* Partial cleanup of tests

* Cleanup of inputs - homogenized wording in error messages, added value validation methods to AbstractTag for validations that are called multiple times, cleaned up cluttered tests and added comments to make it more clear what is being tested

* pre-commit auto-fixes

* Length units consistency in inputs module

* Changing all "zopen" to just "open" due to an error raised when monty.io tries to raise an "EncondingWarning", changing the dump files dir to be a fixture that creates itself, yields the path, and then removes itself (parts after a "yield" only run once the test using the fixture has finished)

---------

Co-authored-by: Matthew Horton <[email protected]>
Co-authored-by: Shyue Ping Ong <[email protected]>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
* sourcing output code from master to this branch

* sourcing output code from master to this branch

* Update from master

* source from master

* update from master

* changing enumeration of valence electrons (the `valences` method does not exactly what I thought it did. I still think its a helpful function to have but not what I need here)

* added "to_dict" method to JDFTXOutfile

* adding `JDFTXOutfileSlice` to "test_dict_repr" in "test_repr_out.py"

* removing fatal error from retrieving t_s from a JOutStructure that is None

* Correction for ruff - PLC0206 (Extracting value from dictionary without calling `.items()`) - This does not appear in my local pre-commit (which I believe is running correctly) but started causing the "lint" action to fail starting around 11/22 (along with other failures from unrelated pre-existing parts of pymatgen)

* We found some weird behavior when trying to export the JDFTXOutfile object to a mongo-db. A lot of the mystery in this output module was in how properties were being forced into memory through getattr, so here all properties are now attributes set up in post_init , get getatr is no longer explicitly defined (this also takes up a lot less lines to make reviewing easier). The only exception is charges and magnetic_moments for JOutStructure

* adding **kwargs for JOutStructure for flexibility

* Partial cleanup of tests

* Partial cleanup of tests

* Partial cleanup of tests

* Adding "structure" attribute to JOutStructure for convenient way to avoid any issues with using a JOutStructure in place of a Structure, adding eigenvals and bandProjections to JDFTXOutputs

* fixes for trajectory

* fix "structure" attribute being initialized as a JOutStructure

* old updates

* Changing all "zopen" to just "open" due to an error raised when monty.io tries to raise an "EncondingWarning", changing the dump files dir to be a fixture that creates itself, yields the path, and then removes itself (parts after a "yield" only run once the test using the fixture has finished)

* missing updated from master

* Oversight that causes ionic positions from previous strucure to be passed incorrectly

---------

Co-authored-by: Matthew Horton <[email protected]>
Co-authored-by: Shyue Ping Ong <[email protected]>
…y_equal` compare float array (#4159)

* replace some float equality check

* explicit encoding

* charge is also float

* enhance types

* access gcd via math namespace as math is already imported

* put dunder method to top

* fix typo

* tweak _proj implementation

* support array like

* add arg and return type

* tweak type

* avoid more == for float comparison

* replace some == in test, more left to do

* replace more in core test

* replace more in test

* replace even more

* replace last batch

* clean up assert approx

* replace pytest.approx with approx

* also fix membership check

* replace some equality check of list

* replace some sequences

* fix test

* replace float comparison as dict

* fix test

* replace more float compare, mostly for VASP

* fix test

* fix approx in condition block

* replace sci notation

* suppress buggy ruff sim300

* number_of_permutations to int

* revert change for formula_double_format, in favor of another PR

* c_indices seems to be int

* use sci notation for crazily large int

* simplify numpy.testing usage

* set tol as pos arg

* avoid array equal for list of str

* assert_array_equal should not be used on float array

* fix module level var name

* more assert_array_equal on complex number

* simplify approx on dict value

* avoid module level var when it's used only 3 times

* pytext.approx to approx

* fix approx on nested dict

* avoid unnecessary convert to np.array

* array_equal to all close for float array

* assert all close for float array

* capital class attrib is treated as constant
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.