Skip to content

utility scripts for m/s, particularly for data parity tracking

Notifications You must be signed in to change notification settings

migrants-and-the-state/mats-utils

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

utility scripts for m/s, particularly for data parity tracking

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages