pwdata 0.3.4__tar.gz → 0.3.5__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of pwdata might be problematic. Click here for more details.
- {pwdata-0.3.4 → pwdata-0.3.5}/PKG-INFO +1 -1
- {pwdata-0.3.4 → pwdata-0.3.5}/pwdata/main.py +20 -2
- {pwdata-0.3.4 → pwdata-0.3.5}/pwdata.egg-info/PKG-INFO +1 -1
- {pwdata-0.3.4 → pwdata-0.3.5}/setup.py +1 -1
- {pwdata-0.3.4 → pwdata-0.3.5}/LICENSE +0 -0
- {pwdata-0.3.4 → pwdata-0.3.5}/README.md +0 -0
- {pwdata-0.3.4 → pwdata-0.3.5}/pwdata/__init__.py +0 -0
- {pwdata-0.3.4 → pwdata-0.3.5}/pwdata/atomconfig.py +0 -0
- {pwdata-0.3.4 → pwdata-0.3.5}/pwdata/build/__init__.py +0 -0
- {pwdata-0.3.4 → pwdata-0.3.5}/pwdata/build/cell.py +0 -0
- {pwdata-0.3.4 → pwdata-0.3.5}/pwdata/build/geometry.py +0 -0
- {pwdata-0.3.4 → pwdata-0.3.5}/pwdata/build/supercells.py +0 -0
- {pwdata-0.3.4 → pwdata-0.3.5}/pwdata/build/write_struc.py +0 -0
- {pwdata-0.3.4 → pwdata-0.3.5}/pwdata/calculators/__init__.py +0 -0
- {pwdata-0.3.4 → pwdata-0.3.5}/pwdata/calculators/const.py +0 -0
- {pwdata-0.3.4 → pwdata-0.3.5}/pwdata/calculators/unitconvert_lmps.py +0 -0
- {pwdata-0.3.4 → pwdata-0.3.5}/pwdata/calculators/units.py +0 -0
- {pwdata-0.3.4 → pwdata-0.3.5}/pwdata/check_envs.py +0 -0
- {pwdata-0.3.4 → pwdata-0.3.5}/pwdata/config.py +0 -0
- {pwdata-0.3.4 → pwdata-0.3.5}/pwdata/convert_files.py +0 -0
- {pwdata-0.3.4 → pwdata-0.3.5}/pwdata/cp2kdata.py +0 -0
- {pwdata-0.3.4 → pwdata-0.3.5}/pwdata/datasets_saver.py +0 -0
- {pwdata-0.3.4 → pwdata-0.3.5}/pwdata/deepmd.py +0 -0
- {pwdata-0.3.4 → pwdata-0.3.5}/pwdata/dump.py +0 -0
- {pwdata-0.3.4 → pwdata-0.3.5}/pwdata/extendedxyz.py +0 -0
- {pwdata-0.3.4 → pwdata-0.3.5}/pwdata/fairchem/__init__.py +0 -0
- {pwdata-0.3.4 → pwdata-0.3.5}/pwdata/fairchem/common/__init__.py +0 -0
- {pwdata-0.3.4 → pwdata-0.3.5}/pwdata/fairchem/common/registry.py +0 -0
- {pwdata-0.3.4 → pwdata-0.3.5}/pwdata/fairchem/common/typing.py +0 -0
- {pwdata-0.3.4 → pwdata-0.3.5}/pwdata/fairchem/common/utils.py +0 -0
- {pwdata-0.3.4 → pwdata-0.3.5}/pwdata/fairchem/datasets/__init__.py +0 -0
- {pwdata-0.3.4 → pwdata-0.3.5}/pwdata/fairchem/datasets/_utils.py +0 -0
- {pwdata-0.3.4 → pwdata-0.3.5}/pwdata/fairchem/datasets/ase_datasets.py +0 -0
- {pwdata-0.3.4 → pwdata-0.3.5}/pwdata/fairchem/datasets/base_dataset.py +0 -0
- {pwdata-0.3.4 → pwdata-0.3.5}/pwdata/fairchem/datasets/embeddings/__init__.py +0 -0
- {pwdata-0.3.4 → pwdata-0.3.5}/pwdata/fairchem/datasets/embeddings/atomic_radii.py +0 -0
- {pwdata-0.3.4 → pwdata-0.3.5}/pwdata/fairchem/datasets/embeddings/continuous_embeddings.py +0 -0
- {pwdata-0.3.4 → pwdata-0.3.5}/pwdata/fairchem/datasets/embeddings/khot_embeddings.py +0 -0
- {pwdata-0.3.4 → pwdata-0.3.5}/pwdata/fairchem/datasets/embeddings/qmof_khot_embeddings.py +0 -0
- {pwdata-0.3.4 → pwdata-0.3.5}/pwdata/fairchem/datasets/lmdb_database.py +0 -0
- {pwdata-0.3.4 → pwdata-0.3.5}/pwdata/fairchem/datasets/target_metadata_guesser.py +0 -0
- {pwdata-0.3.4 → pwdata-0.3.5}/pwdata/fairchem/modules/__init__.py +0 -0
- {pwdata-0.3.4 → pwdata-0.3.5}/pwdata/fairchem/modules/transforms.py +0 -0
- {pwdata-0.3.4 → pwdata-0.3.5}/pwdata/fairchem/preprocessing/__init__.py +0 -0
- {pwdata-0.3.4 → pwdata-0.3.5}/pwdata/image.py +0 -0
- {pwdata-0.3.4 → pwdata-0.3.5}/pwdata/lammpsdata.py +0 -0
- {pwdata-0.3.4 → pwdata-0.3.5}/pwdata/lmps.py +0 -0
- {pwdata-0.3.4 → pwdata-0.3.5}/pwdata/meta.py +0 -0
- {pwdata-0.3.4 → pwdata-0.3.5}/pwdata/movement.py +0 -0
- {pwdata-0.3.4 → pwdata-0.3.5}/pwdata/movement_saver.py +0 -0
- {pwdata-0.3.4 → pwdata-0.3.5}/pwdata/outcar.py +0 -0
- {pwdata-0.3.4 → pwdata-0.3.5}/pwdata/pertub/__init__.py +0 -0
- {pwdata-0.3.4 → pwdata-0.3.5}/pwdata/pertub/perturbation.py +0 -0
- {pwdata-0.3.4 → pwdata-0.3.5}/pwdata/pertub/scale.py +0 -0
- {pwdata-0.3.4 → pwdata-0.3.5}/pwdata/poscar.py +0 -0
- {pwdata-0.3.4 → pwdata-0.3.5}/pwdata/pwmlff.py +0 -0
- {pwdata-0.3.4 → pwdata-0.3.5}/pwdata/test/__init__.py +0 -0
- {pwdata-0.3.4 → pwdata-0.3.5}/pwdata/test.py +0 -0
- {pwdata-0.3.4 → pwdata-0.3.5}/pwdata/utils/__init__.py +0 -0
- {pwdata-0.3.4 → pwdata-0.3.5}/pwdata/utils/constant.py +0 -0
- {pwdata-0.3.4 → pwdata-0.3.5}/pwdata.egg-info/SOURCES.txt +0 -0
- {pwdata-0.3.4 → pwdata-0.3.5}/pwdata.egg-info/dependency_links.txt +0 -0
- {pwdata-0.3.4 → pwdata-0.3.5}/pwdata.egg-info/entry_points.txt +0 -0
- {pwdata-0.3.4 → pwdata-0.3.5}/pwdata.egg-info/requires.txt +0 -0
- {pwdata-0.3.4 → pwdata-0.3.5}/pwdata.egg-info/top_level.txt +0 -0
- {pwdata-0.3.4 → pwdata-0.3.5}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: pwdata
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.5
|
|
4
4
|
Summary: pwdata is a data pre-processing tool for PWMLFF, which can be used to extract features and labels. It also provides convenient interfaces for data conversion between different software.
|
|
5
5
|
Home-page: https://github.com/LonxunQuantum/pwdata
|
|
6
6
|
Author: LonxunQuantum
|
|
@@ -24,6 +24,7 @@ from pwdata.build.write_struc import write_config, write_vasp, write_lammps
|
|
|
24
24
|
import argparse
|
|
25
25
|
from pwdata.convert_files import do_scale_cell, do_super_cell, do_perturb, do_convert_config, do_convert_images, do_meta_data
|
|
26
26
|
from pwdata.utils.constant import FORMAT, get_atomic_name_from_number
|
|
27
|
+
from pwdata.check_envs import print_cmd
|
|
27
28
|
|
|
28
29
|
# from pwdata.open_data.meta_data import get_meta_data
|
|
29
30
|
|
|
@@ -294,7 +295,24 @@ pwdata convert -i dirs -f extxyz -s dir
|
|
|
294
295
|
def main(cmd_list:list=None):
|
|
295
296
|
if cmd_list is None:
|
|
296
297
|
cmd_list = sys.argv
|
|
297
|
-
|
|
298
|
+
if len(cmd_list) == 2 and '.json' in cmd_list[1].lower():
|
|
299
|
+
json_dict = json.load(open(cmd_list[1]))
|
|
300
|
+
format = json_dict['format']
|
|
301
|
+
raw_files = json_dict['raw_files']
|
|
302
|
+
if not isinstance(raw_files, list):
|
|
303
|
+
raw_files = [raw_files]
|
|
304
|
+
train_valid_ratio = json_dict['train_valid_ratio'] if 'train_valid_ratio' in json_dict.keys() else 1.0
|
|
305
|
+
shuffle = json_dict['valid_shuffle'] if 'valid_shuffle' in json_dict.keys() else False
|
|
306
|
+
save_dir = json_dict['trainSetDir'] if 'trainSetDir' in json_dict.keys() else 'PWdata'
|
|
307
|
+
cmd_list = ['pwdata', 'convert_configs']
|
|
308
|
+
cmd_list.append('-i')
|
|
309
|
+
cmd_list.extend(raw_files)
|
|
310
|
+
cmd_list.extend(['-f', format])
|
|
311
|
+
cmd_list.extend(['-s', save_dir])
|
|
312
|
+
cmd_list.extend(['-o', 'pwmlff/npy'])
|
|
313
|
+
cmd_list.extend(['-p', '{}'.format(train_valid_ratio)])
|
|
314
|
+
if shuffle:
|
|
315
|
+
cmd_list.append('-r')
|
|
298
316
|
if len(cmd_list) == 1 or "-h".upper() == cmd_list[1].upper() or \
|
|
299
317
|
"help".upper() == cmd_list[1].upper() or "-help".upper() == cmd_list[1].upper() or "--help".upper() == cmd_list[1].upper():
|
|
300
318
|
print_cmd()
|
|
@@ -319,7 +337,7 @@ def run_scale_cell(cmd_list:list[str]):
|
|
|
319
337
|
parser.add_argument('-f', '--input_format', type=str, required=True, help="The input file format, the supported format as ['pwmat/config','vasp/poscar', 'lammps/lmp', 'cp2k/scf']")
|
|
320
338
|
parser.add_argument('-s', '--savename', type=str, required=False, help="The output file name, and the input scale factor parameter will be used as a prefix, such as '0.99_atom.config'. If not provided, the 'atom.config' for pwmat/config, 'POSCAR' for vasp/poscar, 'lammps.lmp' for lammps/lmp will be used. ", default=None)
|
|
321
339
|
parser.add_argument('-o', '--output_format', type=str, required=False, help="the output file format, only support the format ['pwmat/config','vasp/poscar', 'lammps/lmp']. If not provided, the input format be used. Note: that outputting 'cp2k/scf' format is not supported, the output format will be adjusted to 'pwmat/config' with the output file name 'atom.config'", default=None)
|
|
322
|
-
parser.add_argument('-c', '--cartesian', action='store_true', help="if '-c' is set, the cartesian coordinates will be used, otherwise the fractional coordinates will be used. Note: '
|
|
340
|
+
parser.add_argument('-c', '--cartesian', action='store_true', help="if '-c' is set, the cartesian coordinates will be used, otherwise the fractional coordinates will be used. Note: 'pwmlff/npy' only support the fractional, 'extxyz' only support the cartesian!")
|
|
323
341
|
parser.add_argument('-t', '--atom_types', type=str, required=False, nargs='+', help="the atom type list of 'lammps/lmp' or 'lammps/dump' input file, the order is same as input file", default=None)
|
|
324
342
|
args = parser.parse_args(cmd_list)
|
|
325
343
|
FORMAT.check_format(args.input_format, FORMAT.support_config_format)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: pwdata
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.5
|
|
4
4
|
Summary: pwdata is a data pre-processing tool for PWMLFF, which can be used to extract features and labels. It also provides convenient interfaces for data conversion between different software.
|
|
5
5
|
Home-page: https://github.com/LonxunQuantum/pwdata
|
|
6
6
|
Author: LonxunQuantum
|
|
@@ -5,7 +5,7 @@ with open("README.md", "r") as fh:
|
|
|
5
5
|
|
|
6
6
|
setuptools.setup(
|
|
7
7
|
name="pwdata",
|
|
8
|
-
version="0.3.
|
|
8
|
+
version="0.3.5",
|
|
9
9
|
author="LonxunQuantum",
|
|
10
10
|
author_email="lonxun@pwmat.com",
|
|
11
11
|
description="pwdata is a data pre-processing tool for PWMLFF, which can be used to extract features and labels. It also provides convenient interfaces for data conversion between different software.",
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|