Blog Posts

2022

Using pandas isin() method with python holidays package

5 minute read

Published:

When working with a pandas time series, it is useful to know which dates in the time series are public holidays. This information may be used for data analysis, feature construction, improving models, etc.

2020

Installing PyNE on Windows via WSL

4 minute read

Published:

Although PyNE is officially only supported for Linux and Mac, it is possible to build and use it on Windows using the Windows Subsystem for Linux (WSL) and the Ubuntu terminal app from the Microsoft Store. These instructions describe how to install a basic PyNE build (no MOAB, DAGMC or OpenMC interfaces) on Windows via WSL. They presume only some basic knowledge on using Linux and Windows command lines. They were written for Windows 10 (1909), Ubuntu 20.04 and PyNE 0.7.3 - mileage for other releases may vary.

Interactive rebase to switch base branches mid GitHub pull request

1 minute read

Published:

A situation occurred the other week that I had not encountered before when working on a GitHub pull request for the PyNE Python package. The PR (#1270) added a new function to initialize materials by supplying activities of radionuclides. It complements existing methods to create materials from masses or atom fractions.

2016

Updating the version of a port on MacPorts

2 minute read

Published:

If you come across a piece of software on MacPorts with an out of date version, here are instructions for how to update it. First open up a terminal window and identify the port’s maintainer:

2014