File tree Expand file tree Collapse file tree 7 files changed +9
-8
lines changed Expand file tree Collapse file tree 7 files changed +9
-8
lines changed Original file line number Diff line number Diff line change @@ -766,7 +766,7 @@ def get_volume_and_charge(nonequiv_idx):
766
766
def _parse_stdout (self , stdout ):
767
767
warnings .warn (
768
768
"Parsing critic2 standard output is deprecated and will not be maintained, "
769
- "please use the native JSON output in future." ,
769
+ "please use the native JSON output in the future." ,
770
770
DeprecationWarning ,
771
771
stacklevel = 2 ,
772
772
)
Original file line number Diff line number Diff line change @@ -913,7 +913,6 @@ def __init__(
913
913
correct_peroxide: Specify whether peroxide/superoxide/ozonide
914
914
corrections are to be applied or not.
915
915
check_potcar_hash (bool): Use potcar hash to verify potcars are correct.
916
- silence_deprecation (bool): Silence deprecation warning. Defaults to False.
917
916
"""
918
917
self .compat_type = compat_type
919
918
self .correct_peroxide = correct_peroxide
Original file line number Diff line number Diff line change @@ -190,8 +190,8 @@ def __init__(
190
190
self .periodic = True
191
191
sym = SpacegroupAnalyzer (struct , ** self .spacegroup_analyzer_settings )
192
192
data = sym .get_symmetry_dataset ()
193
- self .space_number = data .get ( " number" )
194
- self .space_group = data .get ( " international" )
193
+ self .space_number = data .number
194
+ self .space_group = data .international
195
195
# for Molecule, skip the symmetry check
196
196
elif isinstance (self .struct , Molecule ):
197
197
self .periodic = False
Original file line number Diff line number Diff line change @@ -80,6 +80,7 @@ def test_get_volume(self):
80
80
assert self .loader .get_volume () == approx (477.6256714925874 , abs = 1e-5 )
81
81
82
82
83
+ @pytest .mark .filterwarnings ("ignore:BandstructureLoader is deprecated:DeprecationWarning" )
83
84
class TestBandstructureLoader (TestCase ):
84
85
def setUp (self ):
85
86
self .loader = BandstructureLoader (BAND_STRUCT , VASP_RUN .structures [- 1 ])
@@ -107,6 +108,7 @@ def test_set_upper_lower_bands(self):
107
108
assert self .loader_sp_dn .ebands .shape == (14 , 198 )
108
109
109
110
111
+ @pytest .mark .filterwarnings ("ignore:VasprunLoader is deprecated:DeprecationWarning" )
110
112
class TestVasprunLoader (TestCase ):
111
113
def setUp (self ):
112
114
self .loader = VasprunLoader (VASP_RUN )
Original file line number Diff line number Diff line change @@ -470,11 +470,11 @@ def setUp(self):
470
470
for temp in self .temps
471
471
}
472
472
473
- with open (f"{ TEST_DIR } /Mn-O_entries.json" ) as file :
474
- data = json .load (file )
475
473
with open (f"{ TEST_DIR } /structure_CO2.json" ) as file :
476
474
self .co2_struct = MontyDecoder ().process_decoded (json .load (file ))
477
475
476
+ with open (f"{ TEST_DIR } /Mn-O_entries.json" ) as file :
477
+ data = json .load (file )
478
478
self .mp_entries = [MontyDecoder ().process_decoded (d ) for d in data ]
479
479
480
480
def test_gf_sisso (self ):
Original file line number Diff line number Diff line change @@ -908,7 +908,7 @@ def test_parity_with_mp_api(self):
908
908
pytest .skip ("mp_api.client.MPRester cannot be imported for this test." )
909
909
mpr_mp_api = MpApi (PMG_MAPI_KEY )
910
910
# Test summary
911
- mp_data = mpr_mp_api .summary .search (formula = "Al2O3" )
911
+ mp_data = mpr_mp_api .materials .search (formula = "Al2O3" )
912
912
pmg_data = self .rester .get_summary ({"formula" : "Al2O3" })
913
913
assert len (mp_data ) == len (pmg_data )
914
914
Load Diff Large diffs are not rendered by default.
You can’t perform that action at this time.
0 commit comments