Skip to content

Instantly share code, notes, and snippets.

Installing the latest development version of Xi-cam

This guide will be using Anaconda for setting up python and managing an environment for the Xi-cam installation. You are welcome to use other tools, like miniconda, virtualenv, etc.

macOS

Anaconda

Download Anaconda from https://www.anaconda.com/products/individual (at the bottom). Open Terminal and navigate to where the downloaded file is. Run the script and answer its prompts.

print('hello')
print('bye')
##################
# Loading Entries
##################
from happi import Client, loader
# Get a client
client = Client(path='db.json')
devs = client.search(beamline='COSMIC-SCATTERING')
fccd_entry = devs[0]
fccd = loader.from_container(fccd_entry)
##################
# Creating Entries
##################
from happi import Client
client = Client(path='db.json')
device = client.create_device("Device", name="fccd", prefix="ALS:701:", beamline="COSMIC-SCATTERING", z=0)
device.device_class = "xicam.Acquire.devices.fastccd.FastCCD"
device.functional_group = "Camera"
device.location_group = "Location 1"
try:

Release Plan for ISIS3.6.0 and Above

Policies for PRs into dev

In order to facilitate the release team, PRs merged into dev that break the following nightly will need to be unmerged to keep dev more stable. We will need to determine how to do this for multiple PRs merged in a single day.

Create a freeze date

Announce a freeze date internally via astroprogrammers email to inform the internal development team of a hard-deadline for feautres and fixes to be in dev.

Setting up a Continuous Integration (CI) Environment

This gist acts as a resource for USGS-Astrogeology developers who want to create a CI environment. Included are instructions, links to the CI services for the USGS-Astrogeology organization, documentation for the CI services we use, and other useful resources related to standing-up a CI environment.

If you have not set up a repository with Travis CI before, read the following:

@ihumphrey
ihumphrey / visualizeMercury.txt
Last active January 27, 2017 21:54
Mathematica interactive unit sphere (mercury) with spacecraft and intersection points
(* Based on i2g_g2i notebook output and mdis nac test i2g output with 512, 512 *)
r=2439400;
(* Define the sensor position *)
Xl = 1728357.70312;
Yl = -2088409.0061;
Zl = 2082873.92806;
(* Define the collinearty i2g point *)