Skip to content

Latest commit

 

History

History
58 lines (40 loc) · 1.59 KB

File metadata and controls

58 lines (40 loc) · 1.59 KB

mats-utils

utility scripts for migrants & the state, particularly for data parity tracking

Notes

  • To access the M&TS Research Workspace (RW) mounted volume, follow these instructions using project name migrants_state

Prerequisites

You'll need Python, Git, and poetry installed to use the data and run the scripts available in /lib. On mac, we recommend using Homebrew and asdf.

If you already have Homebrew installed:

1. Install asdf:

brew install coreutils curl git gh
brew install asdf

Then follow the instructions for your system to add asdf to your shell's PATH. If you're using ZSH, for example, you'll run:

echo -e "\n. $(brew --prefix asdf)/libexec/asdf.sh" >> ${ZDOTDIR:-~}/.zshrc
source ~/.zshrc

2. Install python via asdf

asdf plugin-add python
asdf plugin-add direnv
asdf direnv setup --shell zsh --version latest # if using ZSH! can replace with bash

3. Install pipx and poetry

brew install pipx
pipx ensurepath 
source ~/.zshrc # if using ZSH! can replace with ~/.bashrc

Using this repo

1. Clone the project repo and set up local python

gh repo clone migrants-and-the-state/mats-utils && cd mats-utils
adsf install python
poetry install

2. Run the scipts (e.g., catalog pairing)

poetry run python lib/subset_relevant_catalog.py