Coverage for bin.src/export-results.py : 87%
Hot-keys on this page
r m x p toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
|
#!/usr/bin/env python
log4j.rootLogger=INFO, A1 log4j.appender.A1=ConsoleAppender log4j.appender.A1.Target=System.err log4j.appender.A1.layout=PatternLayout """)
print("Usage: export-results <output_directory>", file=sys.stderr) exit(1)
# Load sources and print interesting columns
"coord_ra", "coord_dec", "flags_negative", "base_SdssCentroid_flag", "base_PixelFlags_flag_edge", "base_PixelFlags_flag_interpolated", "base_PixelFlags_flag_interpolatedCenter", "base_PixelFlags_flag_saturated", "base_PixelFlags_flag_saturatedCenter", "base_SdssCentroid_x", "base_SdssCentroid_y", "base_SdssCentroid_xErr", "base_SdssCentroid_yErr", "base_SdssShape_xx", "base_SdssShape_xy", "base_SdssShape_yy", "base_SdssShape_xxErr", "base_SdssShape_xyErr", "base_SdssShape_yyErr", "base_SdssShape_flag", "base_GaussianFlux_instFlux", "base_GaussianFlux_instFluxErr", "base_PsfFlux_instFlux", "base_PsfFlux_instFluxErr", "base_CircularApertureFlux_6_0_instFlux", "base_CircularApertureFlux_6_0_instFluxErr", "base_ClassificationExtendedness_value", )
dict(run=6377, filter=filter, field=399, camcol=4), ):
# If the column is not in the source table, we fill it # with a "-". We can therefore check optional columns # like ``flags_negative``. field, which = re.search(r"^(.*\.err)\.(xx|yy|xy)$", col).groups() key = srcs.schema.find(field).key key = key[0, 0] if which == "xx" else key[1, 1] if which == "yy" else key[0, 1]
v = srcs.get(key) else:
# To future proof the comparison, we use an explicit format for floating point types since a # default format could be ambiguous. else str(el) for el in vals])) |