Giter VIP home page Giter VIP logo

pyiron-resources's Issues

Sphinx in the Windows sub system

Joerg noticed that the Sphinx executables give the following error when executed in the windows sub system:

mkfifo: cannot create fifo 'sxctrl': Operation not permitted 
mkfifo: cannot create fifo 'sxres': Operation not permitted 
rm: cannot remove 'sxres': No such file or directory 
rm: cannot remove 'sxctrl': No such file or directory 

This can be overcome with:
microsoft/WSL#3962

Still we should find a way to create the named pipes only when required or suppress the error message in the windows subsystem.

@samwaseda any comments on this?
@sudarsan-surendralal as I do not have a windows subsystem enabled computer, can you help with testing this?

GITHUB_TOKEN missing

The github token for the repository is missing. That is why the deployment workflow here failed. I will add the token from pyiron_runner user as a secret to this repo.

LAMMPS run scripts have versions on them

LAMMPS run scripts have version numbers in the file. But this does not necessarily correspond to the lammps version available. job.executable.list_executables() also gives potentially wrong version. Additionally hamversion in project table gives 0.1. The only way to find the correct lammps version seems to be conda list.

I do not have any immediate solutions, but maybe we should discuss how to ensure that all these versions are consistent.

VASP Potential Documentation

The defaults for the VASP potentials are generated from the tables published in the VASP wiki:
https://www.vasp.at/wiki/index.php/Available_PAW_potentials

The script to generate the corresponding potential files for a new release of pseudo potentials:

import os
import glob
import pandas
import numpy as np
from mendeleev.fetch import fetch_table


path = "/Users/janssen/Downloads/vasp_potentials"


elements_dict = {
    "H": "H",
    "He": "He",
    "Li": "Li_sv",
    "Be": "Be",
    "B": "B",
    "C": "C",
    "N": "N",
    "O": "O", 
    "F": "F",
    "Ne": "Ne",
    "Na": "Na_pv",
    "Mg": "Mg",
    "Al": "Al",
    "Si": "Si",
    "P": "P",
    "S": "S",
    "Cl": "Cl",
    "Ar": "Ar",
    "K": "K_sv",
    "Ca": "Ca_sv",
    "Sc": "Sc_sv",
    "Ti": "Ti_sv",
    "V": "V_sv",
    "Cr": "Cr_pv",
    "Mn": "Mn_pv",
    "Fe": "Fe",
    "Co": "Co",
    "Ni": "Ni",
    "Cu": "Cu",
    "Zn": "Zn",
    "Ga": "Ga_d",
    "Ge": "Ge_d",
    "As": "As",
    "Se": "Se",
    "Br": "Br",
    "Kr": "Kr",
    "Rb": "Rb_sv",
    "Sr": "Sr_sv",
    "Y": "Y_sv",
    "Zr": "Zr_sv",
    "Nb": "Nb_sv",
    "Mo": "Mo_sv",
    "Tc": "Tc_pv",
    "Ru": "Ru_pv",
    "Rh": "Rh_pv",
    "Pd": "Pd",
    "Ag": "Ag",
    "Cd": "Cd",
    "In": "In_d",
    "Sn": "Sn_d",
    "Sb": "Sb",
    "Te": "Te",
    "I": "I",
    "Xe": "Xe",
    "Cs": "Cs_sv",
    "Ba": "Ba_sv",
    "La": "La",
    "Ce": "Ce",
    "Pr": "Pr_3",
    "Nd": "Nd_3",
    "Pm": "Pm_3",
    "Sm": "Sm_3",
    "Eu": "Eu_2",
    "Gd": "Gd_3",
    "Tb": "Tb_3",
    "Dy": "Dy_3",
    "Ho": "Ho_3",
    "Er": "Er_3",
    "Tm": "Tm_3",
    "Yb": "Yb_2",
    "Lu": "Lu_3",
    "Hf": "Hf_pv",
    "Ta": "Ta_pv",
    "W": "W_sv",
    "Re": "Re",
    "Os": "Os",
    "Ir": "Ir",
    "Pt": "Pt",
    "Au": "Au",
    "Hg": "Hg",
    "Tl": "Tl_d",
    "Pb": "Pb_d",
    "Bi": "Bi_d",
    "Po": "Po_d",
    "At": "At",
    "Rn": "Rn",
    "Fr": "Fr_sv",
    "Ra": "Ra_sv",
    "Ac": "Ac",
    "Th": "Th",
    "Pa": "Pa",
    "U": "U",
    "Np": "Np",
    "Pu": "Pu",
    "Am": "Am",
    "Cm": "Cm"
}


if __name__ == "__main__":
    potcar_lst = [name for name in glob.glob(path + '/*/*/POTCAR')]
    file_name_lst = [p.split(path)[-1][1:] for p in potcar_lst]
    model_lst = ["gga-pbe" if "/potpaw_PBE/" in p else "lda" for p in potcar_lst]
    filename_lst = [p.split("/")[-2] for p in potcar_lst]
    species_lst = [[p.split("_")[0]] for p in filename_lst]
    name_lst = [s+"-"+m for s, m in zip(filename_lst, model_lst)]

    encut_recommended_lst, electrons_lst = [], []
    for potcar_file in potcar_lst:
        with open(potcar_file, "r") as f:
            content = f.readlines()
        for l in content:    
            if "ENMAX" in l:
                encut_low = float(l.split()[2].replace(";", ""))
            if "ZVAL" in l:
                zval_electron = float(l.split()[5])
        encut_recommended_lst.append(encut_low)
        electrons_lst.append(zval_electron)

    df = pandas.DataFrame({
        "Filename": file_name_lst,
        "Model": model_lst,
        "Name": name_lst,
        "Species": species_lst,
        "n_elect": electrons_lst,
        "ENMAX": encut_recommended_lst
    })
    df_mendeleev = fetch_table('elements')
    ind = np.array([
        l[0] in df_mendeleev.symbol.values or l[0].split(".")[0] in df_mendeleev.symbol.values or l[0].split(".")[0] == "H1" 
        for l in df.Species
    ])
    ind = np.array([l[0] in df_mendeleev.symbol.values for l in df.Species])

    df_lda = pandas.DataFrame({"Element": elements_dict.keys(), "Name": [v + "-lda" for k, v in elements_dict.items()]})
    df_lda.set_index("Element", inplace=True)
    df_lda.sort_index(inplace=True)

    df_pbe = pandas.DataFrame({"Element": elements_dict.keys(), "Name": [v + "-gga-pbe" for k, v in elements_dict.items()]})
    df_pbe.set_index("Element", inplace=True)
    df_pbe.sort_index(inplace=True)

    df_pbe.to_csv("potentials_vasp_pbe_default.csv")
    df_lda.to_csv("potentials_vasp_lda_default.csv")
    df[ind].sort_values(by=["Model", "Name"], ignore_index=True).to_csv("potentials_vasp.csv")

Current LAMMPS executables aren't compiled with the h5md tag

Summary

I am trying to dump the outputs from LAMMPS using dump h5md command. However, when the jobs are submitted, it shows “ERROR: Unrecognized dump style 'h5md' is part of the USER-H5MD package which is not enabled in this LAMMPS binary. (src/output.cpp:570)”. I've tried two LAMMPS executables, lmp_serial and lmp_mpi, which are located in /u/system/SLES12/soft/pyiron/dev/anaconda3/bin/. Neither of them works.

pyiron Version and Platform

python 3.7.9
pyiron 0.4.4

Expected Behavior

LAMMPS succeeds to dump hdf5 file.

Actual Behavior

ERROR: Unrecognized dump style 'h5md' is part of the USER-H5MD package which is not enabled in this LAMMPS binary. (src/output.cpp:570)

Steps to Reproduce

Adding the following keywords in control.inp

dump 1 all h5md ${dumptime} dump.h5 position force create_group yes

Further Information, Files, and Links

Packages with extra build options for LAMMPS

workflow to enable additional SPHInX version on the MPIE cluster

Summary

I would like to provide scripts to request the SPHInX 3.0 version on the cmti/cmfe cluster. How do I do that?

Detailed Description

I assume I must somehow place this in .../pyiron-resources-cmmc/sphinx/bin/ in the pyiron dev installation on the cluster. Yet, I have no write permissions there myself.
Should I submit my version to the pyiron-resources repo and then ask someone to update the cluster version? Or is there a different workflow?

I assume that I should start from the existing scripts (which claims to run 2.6.2, but effectively runs 2.7.1) and adapt it.

Further Information, Files, and Links

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.