yuanpeng / event_filter_snippet.py
0 Kedvelések
0 forkok
1 fájlok
Utoljára aktív
1 | GenerateEventsFilter(InputWorkspace=ws, |
2 | OutputWorkspace='filter', |
3 | InformationWorkspace='info', |
4 | StartTime=start_time, |
5 | StopTime=stop_time, |
6 | TimeInterval=time_interval, |
7 | TimeTolerance=time_tolerance, |
8 | UnitOfTime=unit_of_time) |
9 | FilterEvents(InputWorkspace=ws, |
10 | SplitterWorkspace='filter', |
yuanpeng / rmc_lammps_build_notes.md
0 Kedvelések
0 forkok
1 fájlok
Utoljára aktív
Build LAMMPS with RMCProfile
-
We first need to compile
LAMMPS
separately to obtain the library fileliblammps.so.0
, together with a soft link fileliblammps.so
pointing to the library file. Once we have the compiledliblammps.so.0
library file, creating the soft link is as simple as running,ln -s liblammps.so.0 liblammps.so
yuanpeng / Filter_by_time_stamp_ZYP.py
0 Kedvelések
0 forkok
1 fájlok
Utoljára aktív
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 / Filter_combined_ZYP.py
0 Kedvelések
0 forkok
1 fájlok
Utoljára aktív
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 / rmc2cif_win_linux
0 Kedvelések
0 forkok
1 fájlok
Utoljára aktív
1 | data2config -noannotate -order [Ga P O] -supercell [1 1 1] -cif gapo4_xray.rmc6f |
yuanpeng / slurm_example.sh
0 Kedvelések
0 forkok
1 fájlok
Utoljára aktív
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 / snippet.py
0 Kedvelések
0 forkok
1 fájlok
Utoljára aktív
1 | if "-" in str(energy_theory[0]): |
2 | energy_theory = energy_theory[1:] |
3 | Percentage_theory = Percentage_theory[1:] |
yuanpeng / rebin_example.py
0 Kedvelések
0 forkok
1 fájlok
Utoljára aktív
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 / submit.slurm
0 Kedvelések
0 forkok
2 fájlok
Utoljára aktív
Run Jobs on NERSC
-
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
Újabb
Régebbi