Last active
November 13, 2015 02:30
-
-
Save rbiswas4/b1344d0459cea5014d2c to your computer and use it in GitHub Desktop.
Code to check that hostid% (2^32 -1) maps to distinct integers for the hosts in Simon's patch of sky
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"cells": [ | |
{ | |
"cell_type": "code", | |
"execution_count": 1, | |
"metadata": { | |
"collapsed": false | |
}, | |
"outputs": [ | |
{ | |
"name": "stderr", | |
"output_type": "stream", | |
"text": [ | |
"/usr/local/manual/anaconda/lib/python2.7/site-packages/IPython/kernel/__init__.py:13: ShimWarning: The `IPython.kernel` package has been deprecated. You should import from ipykernel or jupyter_client instead.\n", | |
" \"You should import from ipykernel or jupyter_client instead.\", ShimWarning)\n", | |
"Duplicate object type id 25 specified: \n", | |
"Output object ids may not be unique.\n", | |
"This may not be a problem if you do not want globally unique id values\n", | |
"Duplicate object type id 40 specified: \n", | |
"Output object ids may not be unique.\n", | |
"This may not be a problem if you do not want globally unique id values\n", | |
"Duplicate object type id 40 specified: \n", | |
"Output object ids may not be unique.\n", | |
"This may not be a problem if you do not want globally unique id values\n", | |
"Duplicate object type id 40 specified: \n", | |
"Output object ids may not be unique.\n", | |
"This may not be a problem if you do not want globally unique id values\n", | |
"Duplicate object type id 40 specified: \n", | |
"Output object ids may not be unique.\n", | |
"This may not be a problem if you do not want globally unique id values\n" | |
] | |
} | |
], | |
"source": [ | |
"from lsst.sims.catUtils.mixins import CosmologyMixin\n", | |
"from lsst.sims.utils import ObservationMetaData\n", | |
"from lsst.sims.catUtils.utils import ObservationMetaDataGenerator\n", | |
"from lsst.sims.catalogs.generation.db import CatalogDBObject\n", | |
"from lsst.sims.catalogs.measures.instance import InstanceCatalog\n", | |
NORMAL > sniacatsim_rebase > GalaxyCatalog.ipynb <<< 0% : 1: 1 | |
"GalaxyCatalog.ipynb" 1670L, 345411C |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment