All New

user:thomas gists created by user

title:mygist gists with given title

description:sync gists with given description

filename:myfile.txt gists having files with given name

extension:yml gists having files with given extension

language:go gists having files with given language

topic:homelab gists with given topic

all:systemctl search all fields

Login

All New Login

All gists

Recently created
Least recently created
Recently updated
Least recently updated
yuanpeng's Avatar

yuanpeng / Filter_by_time_stamp_ZYP.py

0 likes
0 forks
1 files
Last active 1 week ago
1 #
2 # Filter_by_time_stamp_ZYP.py
3 #
4 # ---------------------------------------------------------------------------
5 # Script for filtering events based on time stamp
6 # ---------------------------------------------------------------------------
7 #
8 # ----------------------------
9 # Yuanpeng Zhang @ Nov-10-2024
10 # ----------------------------
yuanpeng's Avatar

yuanpeng / Filter_combined_ZYP.py

0 likes
0 forks
1 files
Last active 1 week ago
1 #
2 # Filter_combined_ZYP.py
3 #
4 # ---------------------------------------------------------------------------
5 # This is a combined script for event filter by either sample log or time.
6 # The two ways of conducting event filter is not compatible with each other
7 # and users can choose which one to use by setting the `filter_by_time`
8 # variable in the 'Input section' below to either `True` (to enable filter by
9 # time) or `False` (to enable filter by sample log).
10 # ---------------------------------------------------------------------------
yuanpeng's Avatar

yuanpeng / rmc2cif_win_linux

0 likes
0 forks
1 files
Last active 1 week ago
1 data2config -noannotate -order [Ga P O] -supercell [1 1 1] -cif gapo4_xray.rmc6f
yuanpeng's Avatar

yuanpeng / rmc2cif

0 likes
0 forks
1 files
Last active 1 week ago
1 data2config -noannotate -order "[Ga P O]" -supercell "[1 1 1]" -cif gapo4_xray.rmc6f
yuanpeng's Avatar

yuanpeng / slurm_example.sh

0 likes
0 forks
1 files
Last active 1 week ago
1 #!/bin/bash
2 #
3 #SBATCH --job-name=MY_JOB_NAME
4 #SBATCH --output=MY_OUTPUT_NAME.out
5 #
6 #SBATCH --ntasks=1
7 #SBATCH --cpus-per-task=4
8 #SBATCH --time=1000000:00
9 #SBATCH --mem-per-cpu=256
yuanpeng's Avatar

yuanpeng / snippet.py

0 likes
0 forks
1 files
Last active 1 week ago
1 if "-" in str(energy_theory[0]):
2 energy_theory = energy_theory[1:]
3 Percentage_theory = Percentage_theory[1:]
yuanpeng's Avatar

yuanpeng / rebin_example.py

0 likes
0 forks
1 files
Last active 1 week ago
1 from mantid.simpleapi import *
2 import matplotlib.pyplot as plt
3 import numpy as np
4
5
6 def rebin_data(datax, datay, xmin, xmax, xbin):
7 """Rebin input data with specified binning params
8
9 Parameters:
10 datax (numpy.ndarray): Input data X array
yuanpeng's Avatar

yuanpeng / submit.slurm

0 likes
0 forks
2 files
Last active 1 week ago

Run Jobs on NERSC

  1. First, download the RMCProfile package on Linux platform here and untar it somewhere in our home directory. Once logged onto NERSC from terminal, we can do this,

    cd SOMEWHERE
    wget https://yr.iris-home.net/rmclinux -O RMCProfile_V6.7.9_Linux_64.tgz
    tar xzvf RMCProfile_V6.7.9_Linux_64.tgz
    
yuanpeng's Avatar

yuanpeng / si_mts.json

0 likes
0 forks
1 files
Last active 1 week ago
1 {
2 "Facility": "SNS",
3 "Instrument": "NOM",
4 "Title": "NOM_Si_640d_sgb_12_by_12",
5 "Sample": {
6 "Runs": "197077",
7 "Background": {
8 "Runs": "197075",
9 "Background": {
10 "Runs": "197073"
yuanpeng's Avatar

yuanpeng / res_filter_template.json

0 likes
0 forks
1 files
Last active 1 week ago
1 {
2 "Facility": "SNS",
3 "Instrument": "NOM",
4 "Title": "ceriaDP375_PAC06_at_300K_IDL_Calib_rf_on",
5 "Sample": {
6 "Runs": "143157",
7 "Background": {
8 "Runs": "143230",
9 "Background": {
10 "Runs": "143074"
Newer Older

Powered by Opengist ⋅ Load: 169ms⋅

English
Čeština Deutsch English Español Français Magyar Italiano 日本語 Polski Português Русский Türkçe Українська 中文 繁體中文