This file contains 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
import os | |
import sys | |
import pickle | |
import joblib | |
import pandas as pd | |
FEATS = ['gflux', 'diffsumrn', 'numnegrn', 'mag', | |
'a_image', 'b_image', 'flags', 'mag_ref', | |
'mag_ref_err', 'a_ref', 'b_ref', 'bandnum', | |
'n2sig3', 'n3sig3', 'n2sig5', 'n3sig5', |
This file contains 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
# Use this code snippet in your app. | |
# If you need more information about configurations or implementing the sample code, visit the AWS docs: | |
# https://aws.amazon.com/developers/getting-started/python/ | |
import boto3 | |
from botocore.exceptions import ClientError, CredentialRetrievalError, MetadataRetrievalError, NoCredentialsError | |
import json | |
def get_secret(secret_name): | |
region_name = "us-east-1" |
This file contains 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
#!/usr/bin/env bash | |
#!/bin/bash | |
if [ $# -lt 1 ]; then | |
echo usage is "hsi_file_sorter.script <name_of_file_containing_HPSS_file_names>" | |
exit | |
fi |
This file contains 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
var binsize = slider.value; | |
var fluxalph = ((binsize == 0) ? 1. : 0.1); | |
for (var i = 0; i < toggle.labels.length; i++) { | |
var fluxsource = eval("obs" + i).data_source; | |
var binsource = eval("bin" + i).data_source; | |
var fluxerrsource = eval("obserr" + i).data_source; | |
var binerrsource = eval("binerr" + i).data_source; |
This file contains 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
%% $Log: apj.bst,v $ | |
%% Revision 1.4 2002/06/18 16:37:48 alberto | |
%% Add comma after first author in two-author reference | |
%% Fix courtesy of Tim Robishaw <robishaw@astron.berkeley.edu> | |
%% | |
%% Revision 1.3 2000/04/20 22:17:50 jbaker | |
%% Fixed INBOOK bug, now works essentially like BOOK. | |
%% | |
%% Revision 1.2 1998/08/30 22:35:45 jbaker |
This file contains 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
Starting python tests... | |
============================================================================================================= test session starts ============================================================================================================= | |
platform linux2 -- Python 2.7.14, pytest-3.4.0, py-1.5.2, pluggy-0.6.0 | |
rootdir: /global/scratch/dagoldst/GalSim-1.5.1/tests, inifile: | |
plugins: xdist-1.22.1, timeout-1.2.1, forked-0.2 | |
timeout: 60.0s method: signal | |
gw0 I / gw1 I / gw2 I / gw3 I / gw4 I / gw5 I / gw6 I / gw7 I / gw8 I / gw9 I / gw10 I / gw11 I / gw12 I / gw13 I / gw14 I / gw15 I / gw16 I / gw17 I / gw18 I / gw19 I | |
gw0 [527] / gw1 [527] / gw2 [527] / gw3 [527] / gw4 [527] / gw5 [527] / gw6 [527] / gw7 [527] / gw8 [527] / gw9 [527] / gw10 [527] / gw11 [527] / gw12 [527] / gw13 [527] / gw14 [527] / gw15 [527] / gw16 [527] / gw17 [527] / gw18 [527] / gw19 [527] | |
scheduling tests via LoadScheduling |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains 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": "markdown", | |
"metadata": {}, | |
"source": [ | |
"### CS70 Worksheet 4A Problem 2.4" | |
] | |
}, | |
{ |
This file contains 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": 321, | |
"metadata": { | |
"collapsed": false | |
}, | |
"outputs": [ | |
{ |
This file contains 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
# Z, Eff | |
[(0.014285714285714285, 1.0), | |
(0.042857142857142858, nan), | |
(0.071428571428571425, nan), | |
(0.10000000000000001, 0.86082474226804129), | |
(0.12857142857142856, 0.93023255813953487), | |
(0.15714285714285714, 0.95454545454545459), | |
(0.18571428571428572, 0.95608108108108103), | |
(0.21428571428571427, 0.96601941747572817), |
NewerOlder