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

Update pyproject.toml to resolve pip install issue #657

Closed
wants to merge 67 commits into from
Closed
Show file tree
Hide file tree
Changes from 5 commits
Commits
Show all changes
67 commits
Select commit Hold shift + click to select a range
cb13eee
Update _m3gnet.py
zz11ss11zz Jul 13, 2024
a167441
Update _m3gnet.py
zz11ss11zz Jul 13, 2024
033f318
Merge pull request #1 from zz11ss11zz/zz11ss11zz-patch-1
zz11ss11zz Jul 13, 2024
cda419c
Merge branch 'materialsvirtuallab:master' into master
zz11ss11zz Sep 17, 2024
83c97ec
Update pyproject.toml
zz11ss11zz Sep 17, 2024
e445eca
Merge branch 'master' into master
shyuep Sep 18, 2024
3137592
Merge branch 'materialsvirtuallab:master' into master
zz11ss11zz Sep 18, 2024
56fd836
Update cgcnn_example.ipynb
zz11ss11zz Sep 18, 2024
fe4498b
Update cgcnn_example.ipynb
zz11ss11zz Sep 18, 2024
660d438
Update cgcnn_example.ipynb
zz11ss11zz Sep 18, 2024
b39fc3a
Update cgcnn_example.ipynb
zz11ss11zz Sep 18, 2024
dd00bfb
Update pyproject.toml
zz11ss11zz Sep 18, 2024
14f1c0f
Update pyproject.toml
zz11ss11zz Sep 18, 2024
695f862
Update Example1_MPF2021.2.8.all.ipynb
zz11ss11zz Sep 18, 2024
c165730
Update pyproject.toml
zz11ss11zz Sep 18, 2024
941ea87
Update Example2_Ti-H.ipynb
zz11ss11zz Sep 18, 2024
b0fb265
Update Example2_Ti-H.ipynb
zz11ss11zz Sep 18, 2024
fa9bd7b
Update pyproject.toml
zz11ss11zz Sep 18, 2024
f3d4023
Update process_vasprun_to_mliap.ipynb
zz11ss11zz Sep 18, 2024
c5209d1
Update garnet_formation_energy.ipynb
zz11ss11zz Sep 18, 2024
ab8ebf8
Update GB energy model.ipynb
zz11ss11zz Sep 18, 2024
1b433f8
Update GB energy model.ipynb
zz11ss11zz Sep 18, 2024
1669ac5
Update _gap.py
zz11ss11zz Sep 18, 2024
206469e
Update pca.py
zz11ss11zz Sep 18, 2024
bee8e97
Update pyproject.toml
zz11ss11zz Sep 18, 2024
5068c43
pre-commit auto-fixes
pre-commit-ci[bot] Sep 18, 2024
8c5f549
Update example.ipynb
zz11ss11zz Sep 18, 2024
6d3b16d
Update example.ipynb
zz11ss11zz Sep 18, 2024
d953c67
pre-commit auto-fixes
pre-commit-ci[bot] Sep 18, 2024
748cd9a
Update example.ipynb
zz11ss11zz Sep 18, 2024
75cb1e7
pre-commit auto-fixes
pre-commit-ci[bot] Sep 18, 2024
fa4db5a
Update conf.py
zz11ss11zz Sep 18, 2024
e67fd4d
Add files via upload
zz11ss11zz Sep 18, 2024
291664a
Add files via upload
zz11ss11zz Sep 19, 2024
7a7c6e8
pre-commit auto-fixes
pre-commit-ci[bot] Sep 19, 2024
be3ddfb
Update pyproject.toml
zz11ss11zz Sep 19, 2024
9dbe9e5
pre-commit auto-fixes
pre-commit-ci[bot] Sep 19, 2024
1a50d87
Update requirements.txt
zz11ss11zz Sep 19, 2024
983c63f
Update requirements-ci.txt
zz11ss11zz Sep 19, 2024
15aca59
Update requirements-dl.txt
zz11ss11zz Sep 19, 2024
0dcb221
Update pyproject.toml
zz11ss11zz Sep 19, 2024
9bf4f51
Update testing.yml
zz11ss11zz Sep 19, 2024
39e1ce8
Update _material.py
zz11ss11zz Sep 19, 2024
d29a7fc
Update pyproject.toml
zz11ss11zz Sep 19, 2024
2da756a
Update _material.py
zz11ss11zz Sep 21, 2024
872de13
pre-commit auto-fixes
pre-commit-ci[bot] Sep 21, 2024
fc17348
Update _composition.py
zz11ss11zz Sep 21, 2024
db08783
pre-commit auto-fixes
pre-commit-ci[bot] Sep 21, 2024
df7368b
Update requirements-ci.txt
zz11ss11zz Sep 21, 2024
18b6cbd
Update linting.yml
zz11ss11zz Sep 21, 2024
4a44b67
Update _composition.py
zz11ss11zz Sep 21, 2024
40e2f76
pre-commit auto-fixes
pre-commit-ci[bot] Sep 21, 2024
5d4bd17
Update pyproject.toml
zz11ss11zz Sep 21, 2024
558d8bf
Update pyproject.toml
zz11ss11zz Sep 21, 2024
b105c39
Update _composition.py
zz11ss11zz Sep 21, 2024
37adfc3
Update _stats.py
zz11ss11zz Sep 21, 2024
936e4a4
Update _mixin.py
zz11ss11zz Sep 21, 2024
ec39f56
Update _stats.py
zz11ss11zz Sep 21, 2024
7e6074d
Update _matminer.py
zz11ss11zz Sep 21, 2024
4856415
Update clustering.py
zz11ss11zz Sep 21, 2024
eb2d5b3
Update _lammps.py
zz11ss11zz Sep 21, 2024
228f256
Update optimizer.py
zz11ss11zz Sep 21, 2024
d9b9e1e
Update _describer.py
zz11ss11zz Sep 21, 2024
c6bcb9a
Update _data_conversion.py
zz11ss11zz Sep 21, 2024
4c4f999
Update _preprocessing.py
zz11ss11zz Sep 21, 2024
84fa811
Update _snap.py
zz11ss11zz Sep 21, 2024
db84cb2
Update _rdf.py
zz11ss11zz Sep 21, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ where = ["src"]
"describers/data/*.json",
"describers/data/megnet_models/*",
"describers/data/m3gnet_models/matbench_mp_e_form/0/m3gnet/*",
"apps/pes/params/*.json",
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tip

Codebase Verification

Update required: Incorrect path specified in pyproject.toml

The path "apps/pes/params/.json" specified in pyproject.toml doesn't match the actual location of the JSON files in the repository. The correct path appears to be "src/maml/apps/pes/params/.json". Please update the pyproject.toml file with the correct path to ensure that the necessary JSON files are included in the package distribution.

  • Update line 70 in pyproject.toml to:
    "src/maml/apps/pes/params/*.json",
    

On a positive note, no sensitive information was detected in any of the JSON files found in the repository.

Analysis chain

LGTM! This change resolves the reported installation issue.

The addition of "apps/pes/params/*.json" to the package-data section ensures that the necessary JSON files are included in the package distribution when installing with pip install. This should resolve the FileNotFoundError that was occurring.

Please verify that the JSON files in the apps/pes/params directory do not contain any sensitive information that should not be distributed with the package.

Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Verify JSON files in apps/pes/params do not contain sensitive information.

# Test: Search for common sensitive information patterns in the JSON files.
# Expect: No matches found.
rg --type json -i -e 'password|secret|token|key|credentials' apps/pes/params

Length of output: 134


Script:

#!/bin/bash
# Description: Locate JSON files and check for sensitive information

# Step 1: Find all JSON files in the repository
echo "Searching for JSON files:"
fd -e json

# Step 2: If JSON files are found, search for sensitive information patterns
echo -e "\nChecking JSON files for sensitive information:"
fd -e json -x rg -i -e 'password|secret|token|key|credentials' {}

# Step 3: Check if the specific directory mentioned in pyproject.toml exists
echo -e "\nChecking for the existence of apps/pes/params directory:"
fd -t d "apps/pes/params"

Length of output: 4518

]

[tool.black]
Expand Down
2 changes: 1 addition & 1 deletion src/maml/describers/_m3gnet.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,6 @@ def transform_one(self, structure: Structure | Molecule):
g = self.describer_model.graph_layers[i](g)
atom_fea[f"gc_{i + 1}"] = g[Index.ATOMS]
atom_fea_dict = {k: v for k, v in atom_fea.items() if k in self.output_layers}
if isinstance(self.return_type, dict):
if self.return_type is dict:
return atom_fea_dict
return pd.DataFrame(np.concatenate(list(atom_fea_dict.values()), axis=1))
Loading