Make sure there is at least one file in it (even just the README.md)
ssh-keygen -t rsa -C "[email protected]"
#!/usr/bin/env python3 | |
''' | |
A script to plot work function using LOCPOT. | |
Requirement: python3, numpy, matplotlib, ase | |
Author: @Ionizing | |
Date: 22:46, Jan 11th, 2021. | |
CHANGELOG: | |
- 1:56, Jan 25th, 2021 | |
- Add E-fermi level correction |
Make sure there is at least one file in it (even just the README.md)
ssh-keygen -t rsa -C "[email protected]"
import pandas as pd | |
test_file = 'name_of_test_file.csv' | |
df = pd.read_csv(test_file, sep='\s+', header=0, usecols=[0,1,2], names=['E (eV)', 'UP', 'DN'] ) |
Use apt to install the necessary packages:
sudo apt install -y slurm-wlm slurm-wlm-doc
Load file:///usr/share/doc/slurm-wlm/html/configurator.html in a browser (or file://wsl%24/Ubuntu/usr/share/doc/slurm-wlm/html/configurator.html on WSL2), and:
SlurmctldHost
and NodeName
.CPUs
as appropriate, and optionally Sockets
, CoresPerSocket
, and ThreadsPerCore
. Use command lscpu
to find what you have.RealMemory
to the number of megabytes you want to allocate to Slurm jobs,StateSaveLocation
to /var/spool/slurm-llnl
.ProctrackType
to linuxproc
because processes are less likely to escape Slurm control on a single machine config.@echo OFF | |
rem How to run a Python script in a given conda environment from a batch file. | |
rem It doesn't require: | |
rem - conda to be in the PATH | |
rem - cmd.exe to be initialized with conda init | |
rem Define here the path to your conda installation | |
set CONDAPATH=C:\ProgramData\Miniconda3 | |
rem Define here the name of the environment |