Skip to content

[BUG] FileNotFoundError: cannot find upload file xxx/in.lammps #1757

@OutisLi

Description

@OutisLi

Bug summary

I run dpgen autotest run in a working directory, the files structure is:

Image

I found out that in.lammps was automated generated, so of course it did not exist in my working directory(current directory where I run cmd dpgen). But the localdir in machine.json can only be ./.

DP-GEN Version

0.13.2.dev15+g86bfe1b

Platform, Python Version, Remote Platform, etc

OS: Ubuntu 24.04.2 LTS x86_64

Input Files, Running Commands, Error Log, etc.

My relax.json is shown below:

{
  "structures": ["conf"],
  "interaction": {
    "type": "deepmd",
    "model": "frozen_model.pth",
    "in_lammps": "lammps_input/in.lammps",
    "type_map": { "Si": 0, "C": 1 }
  },
  "relaxation": {
    "cal_type": "relaxation",
    "cal_setting": { "etol": 0, "ftol": 1e-10, "maxiter": 5000, "maximal": 500000 }
  }
}

Steps to Reproduce

dpgen autotest run relax.json machine_local.json

Further Information, Files, and Links

No response

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions