Skip to content

Maintaining flight chandra_models on HEAD

Tom Aldcroft edited this page May 16, 2022 · 5 revisions

A key point is that latest tag in the local repo (by date) is considered the release by default. This means that while the chandra_models repo should have all branches (e.g. an open PR that ACIS wants to use for review), but NOT all tags. In particular fetch origin --tag will get preview tags and potentially cause exceptions because it considers this to be a corrupted repo.

Get latest version

Optionally, visit https://api.github.com/repos/sot/chandra_models/releases/latest to see the latest production release (just as a sanity check to the code below).

Update HEAD Ska3 data

On HEAD in Ska3 as aca user with tcsh:

set version=`python -c 'from xija.get_model_spec import get_github_version; print(get_github_version())'`
echo $version

cd /proj/sot/ska/data/chandra_models

git fetch origin --no-tag
git fetch origin --no-tag refs/tags/${version}:refs/tags/${version}
git checkout ${version}

# Confirm expected version tag
git log

# Confirm other branches / commits
git log --graph --pretty=oneline --all
Clone this wiki locally