Skip to content
Snippets Groups Projects

Draft: Resolve "Basic DDP example"

Open Tsaris, Aristeidis (aris) requested to merge 23-basic-ddp-example into main

Closes #23

Merge request reports

Pipeline #301225 failed

Pipeline failed for 22282046 on 23-basic-ddp-example

1 invalid rule has been approved automatically.
Merge blocked: 4 checks failed

Merge details

  • The source branch is 71 commits behind the target branch.
  • 95 commits and 1 merge commit will be added to main.
  • Source branch will be deleted.

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
15 devices = ["cpu"]
16 if torch.cuda.is_available():
17 devices.append("cuda")
18
19
20 def test_mustem_xtl_read():
21 xtlfile = os.path.join("/gpfs/alpine/csc455/proj-shared/data/simulations/neutral atoms", "PTO3.xtl")
22 crystal = structure.Orthorhombic.from_mustem_xtl(xtlfile)
23
24 assert crystal.atoms == ["Pb", "Ti", "O"]
25
26 assert crystal.atom_positions[0].shape == (1, 3)
27
28
29 def test_ortho_tiling():
30 xtlfile = os.path.join("/gpfs/alpine/csc455/proj-shared/data/simulations/neutral atoms", "PTO3.xtl")
    • @xf9 I'm just curious: why do you need the work-in-progress stuff from !13 in this MR?

    • Hi Jacob, I don't need it now, and I will delete it sometime today. I was thinking about using your class function to read the xtl file from Mark's dataset and generate ground truth scattering potential for comparison. However, it seems that you haven't implemented a function that can generate potential from crystal object. I also tried pyms make potential function. However, that doesn't support xtl files. It can only read file from xyz or p1 files. I don't need make potential function right now, but will need it to generate ground truth for convergence plot in the future.

    • Please register or sign in to reply
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Please register or sign in to reply
    Loading