Skip to content

Commit

Permalink
remove useless files and foldes (#39)
Browse files Browse the repository at this point in the history
* 🌈 style: delete useless files

1. remove the workflow for gitee
2. remove the ci.yml and dockerfile for gitlab

* test: update test_readdata.py

remove the save new xdat.traj in the read2bin
  • Loading branch information
QG-phy authored Oct 19, 2023
1 parent 866778d commit 5baf854
Show file tree
Hide file tree
Showing 7 changed files with 5 additions and 222 deletions.
20 changes: 0 additions & 20 deletions .gitlab-ci.yml

This file was deleted.

52 changes: 0 additions & 52 deletions .workflow/branch-pipeline.yml

This file was deleted.

50 changes: 0 additions & 50 deletions .workflow/master-pipeline.yml

This file was deleted.

51 changes: 0 additions & 51 deletions .workflow/pipeline-20221109.yml

This file was deleted.

37 changes: 0 additions & 37 deletions .workflow/pr-pipeline.yml

This file was deleted.

9 changes: 0 additions & 9 deletions Dockerfile.gitlab

This file was deleted.

8 changes: 5 additions & 3 deletions dptb/tests/test_readdata.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import pytest
from ase.io import read
from ase.io.trajectory import Trajectory
import os

@pytest.fixture(scope='session', autouse=True)
def root_directory(request):
Expand Down Expand Up @@ -62,10 +63,11 @@ def read2bin(root_directory):
kpoints = np.loadtxt(in_dir + '/' + kpoints_file)

trajstrs = read(in_dir + '/' + struct_file, format='vasp',index=':')
traj = Trajectory(in_dir + '/' + 'xdat.traj',mode='w')
traj = Trajectory(in_dir + '/' + 'xdat2.traj',mode='w')
for i in range(1):
traj.write(atoms=trajstrs[i])
traj.close()

np.save(in_dir + '/' + 'eigs.npy',eigvaules)
np.save(in_dir + '/' + 'kpoints.npy',kpoints)
#np.save(in_dir + '/' + 'eigs.npy',eigvaules)
#np.save(in_dir + '/' + 'kpoints.npy',kpoints)
#os.remove(in_dir + '/' + 'xdat.traj')

0 comments on commit 5baf854

Please sign in to comment.