Skip to content

Instantly share code, notes, and snippets.

View andyfaff's full-sized avatar

Andrew Nelson andyfaff

  • Sydney, Australia
View GitHub Profile
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@andyfaff
andyfaff / PTMCMCvsMCMC.ipynb
Last active June 4, 2019 05:06
Compare autocorrelation times for parallel tempered and normal MCMC
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@andyfaff
andyfaff / Python_openmp_notes.md
Last active July 17, 2025 03:33
Investigating openmp on macOS.

Investigating use of openmp on macOS for Python related things

This assumes you have installed the command line tools on macOS. The first two sections look into installing OpenMP from scratch. However, on macOS it might be easier just to use homebrew.

Install cmake

  1. Download source from https://github.com/Kitware/CMake/releases/download/v3.15.1/cmake-3.15.1.tar.gz (there may be a later release).
  2. Untar the files: tar xzvf cmake-3.15.1.tar.gz
@andyfaff
andyfaff / cython timings.ipynb
Created August 8, 2019 00:20
Timings for Python/OpenMP/C reflectivity calculation
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@andyfaff
andyfaff / setp_proxy.ipynb
Last active November 5, 2019 04:27
Try using an Objective proxy to reduce overhead in setting parameter values.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@andyfaff
andyfaff / reproducibibility.txt
Created November 28, 2019 02:05
NR/XRR reproducibility text
Reproducibility - a cornerstone of science
==========================================
https://arxiv.org/pdf/1810.08055.pdf
Guidelines for reproducibility in Neutron/X-ray reflectometry
-------------------------------------------------------------
Reduction
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@andyfaff
andyfaff / Platypus_signal_generator_delay.ipynb
Last active April 21, 2020 00:32
Test using signal generator to offset chopper pickup location
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@andyfaff
andyfaff / MonteCarloResolutionSmearing.ipynb
Last active April 3, 2020 06:43
MonteCarloResolutionSmearing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.