Module Expr Str Calculate-Insertion-of-color. Import alias sublime ImportFrom ColorHelper.lib alias csscolors Import alias ColorHelper.color_helper_util identifier util ClassDef InsertCalc bases NameLoad object body Expr Str Convert. FunctionDef __init__ arguments args NameParam self NameParam view NameParam point NameParam target_color NameParam convert NameParam allowed_colors NameParam use_hex_argb defaults body Expr Str Initialize. Assign AttributeStore NameLoad self attr convert_rgb NameLoad False Assign AttributeStore NameLoad self attr convert_hsl NameLoad False Assign AttributeStore NameLoad self attr convert_hwb NameLoad False Assign AttributeStore NameLoad self attr convert_gray NameLoad False Assign AttributeStore NameLoad self attr allowed_colors NameLoad allowed_colors Assign AttributeStore NameLoad self attr alpha NameLoad None Assign AttributeStore NameLoad self attr force_alpha NameLoad False Assign AttributeStore NameLoad self attr use_hex_argb NameLoad use_hex_argb Assign AttributeStore NameLoad self attr alpha_hex NameLoad None Assign AttributeStore NameLoad self attr view NameLoad view Assign AttributeStore NameLoad self attr start BinOpSub NameLoad point Num 50 Assign AttributeStore NameLoad self attr end BinOpAdd NameLoad point Num 50 Assign AttributeStore NameLoad self attr point NameLoad point Assign AttributeStore NameLoad self attr region Call AttributeLoad NameLoad sublime attr Region NameLoad point Assign AttributeStore NameLoad self attr format_override NameLoad True Assign NameStore visible Call AttributeLoad AttributeLoad NameLoad self attr view attr visible_region If CompareLt AttributeLoad NameLoad self attr start Call AttributeLoad NameLoad visible attr begin body Assign AttributeStore NameLoad self attr start Call AttributeLoad NameLoad visible attr begin If CompareGt AttributeLoad NameLoad self attr end Call AttributeLoad NameLoad visible attr end body Assign AttributeStore NameLoad self attr end Call AttributeLoad NameLoad visible attr end Assign AttributeStore NameLoad self attr web_color NameLoad None Assign AttributeStore NameLoad self attr color IfExp CompareGt Call NameLoad len NameLoad target_color Num 7 SubscriptLoad NameLoad target_color Slice Num -2 NameLoad target_color If CompareEq NameLoad convert Str name body TryExcept body If CompareGt Call NameLoad len NameLoad target_color Num 7 body Assign NameStore target_color SubscriptLoad NameLoad target_color Slice Num -2 Assign AttributeStore NameLoad self attr web_color Call AttributeLoad NameLoad csscolors attr hex2name NameLoad target_color handlers ExceptHandler body Pass Assign AttributeStore NameLoad self attr force_alpha NameLoad True orelse If CompareIn NameLoad convert TupleLoad Str gray Str graya body Assign AttributeStore NameLoad self attr convert_gray NameLoad True Assign AttributeStore NameLoad self attr force_alpha CompareEq NameLoad convert Str graya orelse If CompareIn NameLoad convert TupleLoad Str hex Str hexa Str ahex body Assign AttributeStore NameLoad self attr force_alpha CompareIn NameLoad convert TupleLoad Str hexa Str ahex orelse If CompareIn NameLoad convert TupleLoad Str rgb Str rgba body Assign AttributeStore NameLoad self attr convert_rgb NameLoad True Assign AttributeStore NameLoad self attr force_alpha CompareEq NameLoad convert Str rgba orelse If CompareIn NameLoad convert TupleLoad Str hsl Str hsla body Assign AttributeStore NameLoad self attr convert_hsl NameLoad True Assign AttributeStore NameLoad self attr force_alpha CompareEq NameLoad convert Str hsla orelse If CompareIn NameLoad convert TupleLoad Str hwb Str hwba body Assign AttributeStore NameLoad self attr convert_hwb NameLoad True Assign AttributeStore NameLoad self attr force_alpha CompareEq NameLoad convert Str hwba decorator_list FunctionDef replacement arguments args NameParam self NameParam m defaults body Expr Str See-if-match-is-a-convert-replacement-of-an-existing-color. Assign NameStore found NameLoad True If BoolOpAnd Call AttributeLoad NameLoad m attr group Str webcolors CompareIn Str webcolors AttributeLoad NameLoad self attr allowed_colors body Assign AttributeStore NameLoad self attr region Call AttributeLoad NameLoad sublime attr Region BinOpAdd Call AttributeLoad NameLoad m attr start Str webcolors AttributeLoad NameLoad self attr start BinOpAdd Call AttributeLoad NameLoad m attr end Str webcolors AttributeLoad NameLoad self attr start orelse If BoolOpAnd Call AttributeLoad NameLoad m attr group Str hexa AttributeLoad NameLoad self attr use_hex_argb CompareIn Str hexa AttributeLoad NameLoad self attr allowed_colors body Assign AttributeStore NameLoad self attr region Call AttributeLoad NameLoad sublime attr Region BinOpAdd Call AttributeLoad NameLoad m attr start Str hexa AttributeLoad NameLoad self attr start BinOpAdd Call AttributeLoad NameLoad m attr end Str hexa AttributeLoad NameLoad self attr start Assign NameStore content Call AttributeLoad NameLoad m attr group Str hexa_content Assign AttributeStore NameLoad self attr alpha_hex SubscriptLoad NameLoad content Slice Num 0 Num 2 Assign AttributeStore NameLoad self attr alpha Call AttributeLoad NameLoad util attr fmt_float BinOpDiv Call NameLoad float Call NameLoad int AttributeLoad NameLoad self attr alpha_hex Num 16 Num 255.0 Num 3 orelse If BoolOpAnd Call AttributeLoad NameLoad m attr group Str hexa CompareIn Str hexa AttributeLoad NameLoad self attr allowed_colors body Assign AttributeStore NameLoad self attr region Call AttributeLoad NameLoad sublime attr Region BinOpAdd Call AttributeLoad NameLoad m attr start Str hexa AttributeLoad NameLoad self attr start BinOpAdd Call AttributeLoad NameLoad m attr end Str hexa AttributeLoad NameLoad self attr start Assign NameStore content Call AttributeLoad NameLoad m attr group Str hexa_content Assign AttributeStore NameLoad self attr alpha_hex SubscriptLoad NameLoad content Slice Num -2 Assign AttributeStore NameLoad self attr alpha Call AttributeLoad NameLoad util attr fmt_float BinOpDiv Call NameLoad float Call NameLoad int AttributeLoad NameLoad self attr alpha_hex Num 16 Num 255.0 Num 3 orelse If BoolOpAnd Call AttributeLoad NameLoad m attr group Str hex CompareIn Str hex AttributeLoad NameLoad self attr allowed_colors body Assign AttributeStore NameLoad self attr region Call AttributeLoad NameLoad sublime attr Region BinOpAdd Call AttributeLoad NameLoad m attr start Str hex AttributeLoad NameLoad self attr start BinOpAdd Call AttributeLoad NameLoad m attr end Str hex AttributeLoad NameLoad self attr start orelse If BoolOpAnd Call AttributeLoad NameLoad m attr group Str hexa_compressed AttributeLoad NameLoad self attr use_hex_argb CompareIn Str hexa_compressed AttributeLoad NameLoad self attr allowed_colors body Assign AttributeStore NameLoad self attr region Call AttributeLoad NameLoad sublime attr Region BinOpAdd Call AttributeLoad NameLoad m attr start Str hexa_compressed AttributeLoad NameLoad self attr start BinOpAdd Call AttributeLoad NameLoad m attr end Str hexa_compressed AttributeLoad NameLoad self attr start Assign NameStore content Call AttributeLoad NameLoad m attr group Str hexa_compressed_content Assign AttributeStore NameLoad self attr alpha_hex BinOpMult SubscriptLoad NameLoad content Slice Num 0 Num 1 Num 2 Assign AttributeStore NameLoad self attr alpha Call AttributeLoad NameLoad util attr fmt_float BinOpDiv Call NameLoad float Call NameLoad int AttributeLoad NameLoad self attr alpha_hex Num 16 Num 255.0 Num 3 orelse If BoolOpAnd Call AttributeLoad NameLoad m attr group Str hexa_compressed CompareIn Str hexa_compressed AttributeLoad NameLoad self attr allowed_colors body Assign AttributeStore NameLoad self attr region Call AttributeLoad NameLoad sublime attr Region BinOpAdd Call AttributeLoad NameLoad m attr start Str hexa_compressed AttributeLoad NameLoad self attr start BinOpAdd Call AttributeLoad NameLoad m attr end Str hexa_compressed AttributeLoad NameLoad self attr start Assign NameStore content Call AttributeLoad NameLoad m attr group Str hexa_compressed_content Assign AttributeStore NameLoad self attr alpha_hex BinOpMult SubscriptLoad NameLoad content Slice Num -1 Num 2 Assign AttributeStore NameLoad self attr alpha Call AttributeLoad NameLoad util attr fmt_float BinOpDiv Call NameLoad float Call NameLoad int AttributeLoad NameLoad self attr alpha_hex Num 16 Num 255.0 Num 3 orelse If BoolOpAnd Call AttributeLoad NameLoad m attr group Str hex_compressed CompareIn Str hex_compressed AttributeLoad NameLoad self attr allowed_colors body Assign AttributeStore NameLoad self attr region Call AttributeLoad NameLoad sublime attr Region BinOpAdd Call AttributeLoad NameLoad m attr start Str hex_compressed AttributeLoad NameLoad self attr start BinOpAdd Call AttributeLoad NameLoad m attr end Str hex_compressed AttributeLoad NameLoad self attr start orelse If BoolOpAnd Call AttributeLoad NameLoad m attr group Str rgb CompareIn Str rgb AttributeLoad NameLoad self attr allowed_colors body Assign AttributeStore NameLoad self attr region Call AttributeLoad NameLoad sublime attr Region BinOpAdd Call AttributeLoad NameLoad m attr start Str rgb AttributeLoad NameLoad self attr start BinOpAdd Call AttributeLoad NameLoad m attr end Str rgb AttributeLoad NameLoad self attr start orelse If BoolOpAnd Call AttributeLoad NameLoad m attr group Str rgba CompareIn Str rgba AttributeLoad NameLoad self attr allowed_colors body Assign AttributeStore NameLoad self attr region Call AttributeLoad NameLoad sublime attr Region BinOpAdd Call AttributeLoad NameLoad m attr start Str rgba AttributeLoad NameLoad self attr start BinOpAdd Call AttributeLoad NameLoad m attr end Str rgba AttributeLoad NameLoad self attr start Assign NameStore content ListComp Call AttributeLoad NameLoad x attr strip comprehension NameStore x Call AttributeLoad Call AttributeLoad NameLoad m attr group Str rgba_content attr split Str , Assign NameStore temp Call NameLoad float SubscriptLoad NameLoad content Index Num 3 If BoolOpOr CompareLt NameLoad temp Num 0.0 CompareGt NameLoad temp Num 1.0 body Assign SubscriptStore NameLoad content Index Num 3 Call AttributeLoad NameLoad util attr fmt_float Call AttributeLoad NameLoad util attr clamp Call NameLoad float NameLoad temp Num 0.0 Num 1.0 Num 3 Assign AttributeStore NameLoad self attr alpha SubscriptLoad NameLoad content Index Num 3 Assign AttributeStore NameLoad self attr alpha_hex BinOpMod Str %02x Call AttributeLoad NameLoad util attr round_int BinOpMult Call NameLoad float AttributeLoad NameLoad self attr alpha Num 255.0 orelse If BoolOpAnd Call AttributeLoad NameLoad m attr group Str gray CompareIn Str gray AttributeLoad NameLoad self attr allowed_colors body Assign AttributeStore NameLoad self attr region Call AttributeLoad NameLoad sublime attr Region BinOpAdd Call AttributeLoad NameLoad m attr start Str gray AttributeLoad NameLoad self attr start BinOpAdd Call AttributeLoad NameLoad m attr end Str gray AttributeLoad NameLoad self attr start orelse If BoolOpAnd Call AttributeLoad NameLoad m attr group Str graya CompareIn Str graya AttributeLoad NameLoad self attr allowed_colors body Assign AttributeStore NameLoad self attr region Call AttributeLoad NameLoad sublime attr Region BinOpAdd Call AttributeLoad NameLoad m attr start Str graya AttributeLoad NameLoad self attr start BinOpAdd Call AttributeLoad NameLoad m attr end Str graya AttributeLoad NameLoad self attr start Assign NameStore content ListComp Call AttributeLoad NameLoad x attr strip comprehension NameStore x Call AttributeLoad Call AttributeLoad NameLoad m attr group Str graya_content attr split Str , If Call AttributeLoad SubscriptLoad NameLoad content Index Num 1 attr endswith Str % body Assign SubscriptStore NameLoad content Index Num 1 Call AttributeLoad NameLoad util attr fmt_float BinOpDiv Call AttributeLoad NameLoad util attr clamp Call NameLoad float Call AttributeLoad SubscriptLoad NameLoad content Index Num 1 attr strip Str % Num 0.0 Num 100.0 Num 100.0 Num 3 orelse Assign NameStore temp Call NameLoad float SubscriptLoad NameLoad content Index Num 1 If BoolOpOr CompareLt NameLoad temp Num 0.0 CompareGt NameLoad temp Num 1.0 body Assign SubscriptStore NameLoad content Index Num 1 Call AttributeLoad NameLoad util attr fmt_float Call AttributeLoad NameLoad util attr clamp Call NameLoad float NameLoad temp Num 0.0 Num 1.0 Num 3 Assign AttributeStore NameLoad self attr alpha SubscriptLoad NameLoad content Index Num 1 Assign AttributeStore NameLoad self attr alpha_hex BinOpMod Str %02x Call AttributeLoad NameLoad util attr round_int BinOpMult Call NameLoad float AttributeLoad NameLoad self attr alpha Num 255.0 orelse If BoolOpAnd Call AttributeLoad NameLoad m attr group Str hsl CompareIn Str hsl AttributeLoad NameLoad self attr allowed_colors body Assign AttributeStore NameLoad self attr region Call AttributeLoad NameLoad sublime attr Region BinOpAdd Call AttributeLoad NameLoad m attr start Str hsl AttributeLoad NameLoad self attr start BinOpAdd Call AttributeLoad NameLoad m attr end Str hsl AttributeLoad NameLoad self attr start orelse If BoolOpAnd Call AttributeLoad NameLoad m attr group Str hsla CompareIn Str hsla AttributeLoad NameLoad self attr allowed_colors body Assign AttributeStore NameLoad self attr region Call AttributeLoad NameLoad sublime attr Region BinOpAdd Call AttributeLoad NameLoad m attr start Str hsla AttributeLoad NameLoad self attr start BinOpAdd Call AttributeLoad NameLoad m attr end Str hsla AttributeLoad NameLoad self attr start Assign NameStore content ListComp Call AttributeLoad Call AttributeLoad NameLoad x attr strip attr rstrip Str % comprehension NameStore x Call AttributeLoad Call AttributeLoad NameLoad m attr group Str hsla_content attr split Str , Assign NameStore temp Call NameLoad float SubscriptLoad NameLoad content Index Num 3 If BoolOpOr CompareLt NameLoad temp Num 0.0 CompareGt NameLoad temp Num 1.0 body Assign SubscriptStore NameLoad content Index Num 3 Call AttributeLoad NameLoad util attr fmt_float Call AttributeLoad NameLoad util attr clamp Call NameLoad float NameLoad temp Num 0.0 Num 1.0 Num 3 Assign AttributeStore NameLoad self attr alpha SubscriptLoad NameLoad content Index Num 3 Assign AttributeStore NameLoad self attr alpha_hex BinOpMod Str %02x Call AttributeLoad NameLoad util attr round_int BinOpMult Call NameLoad float AttributeLoad NameLoad self attr alpha Num 255.0 orelse If BoolOpAnd Call AttributeLoad NameLoad m attr group Str hwb CompareIn Str hwb AttributeLoad NameLoad self attr allowed_colors body Assign AttributeStore NameLoad self attr region Call AttributeLoad NameLoad sublime attr Region BinOpAdd Call AttributeLoad NameLoad m attr start Str hwb AttributeLoad NameLoad self attr start BinOpAdd Call AttributeLoad NameLoad m attr end Str hwb AttributeLoad NameLoad self attr start orelse If BoolOpAnd Call AttributeLoad NameLoad m attr group Str hwba CompareIn Str hwba AttributeLoad NameLoad self attr allowed_colors body Assign AttributeStore NameLoad self attr region Call AttributeLoad NameLoad sublime attr Region BinOpAdd Call AttributeLoad NameLoad m attr start Str hwba AttributeLoad NameLoad self attr start BinOpAdd Call AttributeLoad NameLoad m attr end Str hwba AttributeLoad NameLoad self attr start Assign NameStore content ListComp Call AttributeLoad Call AttributeLoad NameLoad x attr strip attr rstrip Str % comprehension NameStore x Call AttributeLoad Call AttributeLoad NameLoad m attr group Str hwba_content attr split Str , Assign NameStore temp Call NameLoad float SubscriptLoad NameLoad content Index Num 3 If BoolOpOr CompareLt NameLoad temp Num 0.0 CompareGt NameLoad temp Num 1.0 body Assign SubscriptStore NameLoad content Index Num 3 Call AttributeLoad NameLoad util attr fmt_float Call AttributeLoad NameLoad util attr clamp Call NameLoad float NameLoad temp Num 0.0 Num 1.0 Num 3 Assign AttributeStore NameLoad self attr alpha SubscriptLoad NameLoad content Index Num 3 Assign AttributeStore NameLoad self attr alpha_hex BinOpMod Str %02x Call AttributeLoad NameLoad util attr round_int BinOpMult Call NameLoad float AttributeLoad NameLoad self attr alpha Num 255.0 orelse Assign NameStore found NameLoad False Return NameLoad found decorator_list FunctionDef completion arguments args NameParam self NameParam m defaults body Expr Str See-if-match-is-completing-an-color. Assign NameStore found NameLoad True If BoolOpAnd Call AttributeLoad NameLoad m attr group Str hash BoolOpOr CompareIn Str hex AttributeLoad NameLoad self attr allowed_colors CompareIn Str hexa AttributeLoad NameLoad self attr allowed_colors body Assign AttributeStore NameLoad self attr region Call AttributeLoad NameLoad sublime attr Region BinOpAdd Call AttributeLoad NameLoad m attr start Str hash AttributeLoad NameLoad self attr start BinOpAdd Call AttributeLoad NameLoad m attr end Str hash AttributeLoad NameLoad self attr start orelse If BoolOpAnd Call AttributeLoad NameLoad m attr group Str hash BoolOpOr CompareIn Str hex_compressed AttributeLoad NameLoad self attr allowed_colors CompareIn Str hexa_compressed AttributeLoad NameLoad self attr allowed_colors body Assign AttributeStore NameLoad self attr region Call AttributeLoad NameLoad sublime attr Region BinOpAdd Call AttributeLoad NameLoad m attr start Str hash AttributeLoad NameLoad self attr start BinOpAdd Call AttributeLoad NameLoad m attr end Str hash AttributeLoad NameLoad self attr start orelse If BoolOpAnd Call AttributeLoad NameLoad m attr group Str rgb_open CompareIn Str rgb AttributeLoad NameLoad self attr allowed_colors body Assign NameStore offset IfExp CompareEq Call AttributeLoad AttributeLoad NameLoad self attr view attr substr AttributeLoad NameLoad self attr point Str ) Num 1 Num 0 Assign AttributeStore NameLoad self attr region Call AttributeLoad NameLoad sublime attr Region BinOpAdd Call AttributeLoad NameLoad m attr start Str rgb_open AttributeLoad NameLoad self attr start BinOpAdd BinOpAdd Call AttributeLoad NameLoad m attr end Str rgb_open AttributeLoad NameLoad self attr start NameLoad offset orelse If BoolOpAnd Call AttributeLoad NameLoad m attr group Str rgba_open CompareIn Str rgba AttributeLoad NameLoad self attr allowed_colors body Assign NameStore offset IfExp CompareEq Call AttributeLoad AttributeLoad NameLoad self attr view attr substr AttributeLoad NameLoad self attr point Str ) Num 1 Num 0 Assign AttributeStore NameLoad self attr region Call AttributeLoad NameLoad sublime attr Region BinOpAdd Call AttributeLoad NameLoad m attr start Str rgba_open AttributeLoad NameLoad self attr start BinOpAdd BinOpAdd Call AttributeLoad NameLoad m attr end Str rgba_open AttributeLoad NameLoad self attr start NameLoad offset Assign AttributeStore NameLoad self attr alpha Str 1 Assign AttributeStore NameLoad self attr alpha_hex Str ff orelse If BoolOpAnd Call AttributeLoad NameLoad m attr group Str gray_open BoolOpOr CompareIn Str gray AttributeLoad NameLoad self attr allowed_colors CompareIn Str graya AttributeLoad NameLoad self attr allowed_colors body Assign NameStore offset IfExp CompareEq Call AttributeLoad AttributeLoad NameLoad self attr view attr substr AttributeLoad NameLoad self attr point Str ) Num 1 Num 0 Assign AttributeStore NameLoad self attr region Call AttributeLoad NameLoad sublime attr Region BinOpAdd Call AttributeLoad NameLoad m attr start Str gray_open AttributeLoad NameLoad self attr start BinOpAdd BinOpAdd Call AttributeLoad NameLoad m attr end Str gray_open AttributeLoad NameLoad self attr start NameLoad offset orelse If BoolOpAnd Call AttributeLoad NameLoad m attr group Str hsl_open CompareIn Str hsl AttributeLoad NameLoad self attr allowed_colors body Assign NameStore offset IfExp CompareEq Call AttributeLoad AttributeLoad NameLoad self attr view attr substr AttributeLoad NameLoad self attr point Str ) Num 1 Num 0 Assign AttributeStore NameLoad self attr region Call AttributeLoad NameLoad sublime attr Region BinOpAdd Call AttributeLoad NameLoad m attr start Str hsl_open AttributeLoad NameLoad self attr start BinOpAdd BinOpAdd Call AttributeLoad NameLoad m attr end Str hsl_open AttributeLoad NameLoad self attr start NameLoad offset orelse If BoolOpAnd Call AttributeLoad NameLoad m attr group Str hsla_open CompareIn Str hsla AttributeLoad NameLoad self attr allowed_colors body Assign AttributeStore NameLoad self attr offset IfExp CompareEq Call AttributeLoad AttributeLoad NameLoad self attr view attr substr AttributeLoad NameLoad self attr point Str ) Num 1 Num 0 Assign AttributeStore NameLoad self attr region Call AttributeLoad NameLoad sublime attr Region BinOpAdd Call AttributeLoad NameLoad m attr start Str hsla_open AttributeLoad NameLoad self attr start BinOpAdd BinOpAdd Call AttributeLoad NameLoad m attr end Str hsla_open AttributeLoad NameLoad self attr start NameLoad offset Assign AttributeStore NameLoad self attr alpha Str 1 Assign AttributeStore NameLoad self attr alpha_hex Str ff orelse If BoolOpAnd Call AttributeLoad NameLoad m attr group Str hwb_open BoolOpOr CompareIn Str hwb AttributeLoad NameLoad self attr allowed_colors CompareIn Str hwba AttributeLoad NameLoad self attr allowed_colors body Assign NameStore offset IfExp CompareEq Call AttributeLoad AttributeLoad NameLoad self attr view attr substr AttributeLoad NameLoad self attr point Str ) Num 1 Num 0 Assign AttributeStore NameLoad self attr region Call AttributeLoad NameLoad sublime attr Region BinOpAdd Call AttributeLoad NameLoad m attr start Str hwb_open AttributeLoad NameLoad self attr start BinOpAdd BinOpAdd Call AttributeLoad NameLoad m attr end Str hwb_open AttributeLoad NameLoad self attr start NameLoad offset orelse Assign NameStore found NameLoad False Return NameLoad found decorator_list FunctionDef convert_alpha arguments args NameParam self defaults body Expr Str Setup-conversion-alpha. If BoolOpAnd AttributeLoad NameLoad self attr force_alpha CompareIs AttributeLoad NameLoad self attr alpha NameLoad None body Assign AttributeStore NameLoad self attr alpha Str 1 Assign AttributeStore NameLoad self attr alpha_hex Str ff orelse If UnaryOpNot AttributeLoad NameLoad self attr force_alpha body Assign AttributeStore NameLoad self attr alpha NameLoad None Assign AttributeStore NameLoad self attr alpha_hex NameLoad None decorator_list FunctionDef calc arguments args NameParam self defaults body Expr Str Calculate-how-we-are-to-insert-the-target-color. Assign NameStore bfr Call AttributeLoad AttributeLoad NameLoad self attr view attr substr Call AttributeLoad NameLoad sublime attr Region AttributeLoad NameLoad self attr start AttributeLoad NameLoad self attr end Assign NameStore ref BinOpSub AttributeLoad NameLoad self attr point AttributeLoad NameLoad self attr start Assign NameStore found NameLoad False For NameStore m Call AttributeLoad AttributeLoad NameLoad util attr COLOR_ALL_RE attr finditer NameLoad bfr body If BoolOpAnd CompareGtE NameLoad ref Call AttributeLoad NameLoad m attr start Num 0 CompareLt NameLoad ref Call AttributeLoad NameLoad m attr end Num 0 body Assign NameStore found Call AttributeLoad NameLoad self attr replacement NameLoad m orelse If CompareEq NameLoad ref Call AttributeLoad NameLoad m attr end Num 0 body Assign NameStore found Call AttributeLoad NameLoad self attr completion NameLoad m orelse If CompareLt NameLoad ref Call AttributeLoad NameLoad m attr start Num 0 body Break If NameLoad found body Break Expr Call AttributeLoad NameLoad self attr convert_alpha Return NameLoad found decorator_list decorator_list ClassDef PickerInsertCalc bases NameLoad object body Expr Str Calculate-and-insert-color. FunctionDef __init__ arguments args NameParam self NameParam view NameParam point NameParam allowed_colors defaults body Expr Str Initialize-insertion-object. Assign AttributeStore NameLoad self attr view NameLoad view Assign AttributeStore NameLoad self attr region Call AttributeLoad NameLoad sublime attr Region NameLoad point Assign AttributeStore NameLoad self attr allowed_colors NameLoad allowed_colors Assign AttributeStore NameLoad self attr start BinOpSub NameLoad point Num 50 Assign AttributeStore NameLoad self attr end BinOpAdd NameLoad point Num 50 Assign AttributeStore NameLoad self attr point NameLoad point Assign NameStore visible Call AttributeLoad AttributeLoad NameLoad self attr view attr visible_region If CompareLt AttributeLoad NameLoad self attr start Call AttributeLoad NameLoad visible attr begin body Assign AttributeStore NameLoad self attr start Call AttributeLoad NameLoad visible attr begin If CompareGt AttributeLoad NameLoad self attr end Call AttributeLoad NameLoad visible attr end body Assign AttributeStore NameLoad self attr end Call AttributeLoad NameLoad visible attr end decorator_list FunctionDef replacement arguments args NameParam self NameParam m defaults body Expr Str See-if-match-is-a-replacement-of-an-existing-color. Assign NameStore found NameLoad True If BoolOpAnd Call AttributeLoad NameLoad m attr group Str webcolors CompareIn Str webcolors AttributeLoad NameLoad self attr allowed_colors body Assign AttributeStore NameLoad self attr region Call AttributeLoad NameLoad sublime attr Region BinOpAdd Call AttributeLoad NameLoad m attr start Str webcolors AttributeLoad NameLoad self attr start BinOpAdd Call AttributeLoad NameLoad m attr end Str webcolors AttributeLoad NameLoad self attr start orelse If BoolOpAnd Call AttributeLoad NameLoad m attr group Str hexa CompareIn Str hexa AttributeLoad NameLoad self attr allowed_colors body Assign AttributeStore NameLoad self attr region Call AttributeLoad NameLoad sublime attr Region BinOpAdd Call AttributeLoad NameLoad m attr start Str hexa AttributeLoad NameLoad self attr start BinOpAdd Call AttributeLoad NameLoad m attr end Str hexa AttributeLoad NameLoad self attr start orelse If BoolOpAnd Call AttributeLoad NameLoad m attr group Str hex CompareIn Str hex AttributeLoad NameLoad self attr allowed_colors body Assign AttributeStore NameLoad self attr region Call AttributeLoad NameLoad sublime attr Region BinOpAdd Call AttributeLoad NameLoad m attr start Str hex AttributeLoad NameLoad self attr start BinOpAdd Call AttributeLoad NameLoad m attr end Str hex AttributeLoad NameLoad self attr start orelse If BoolOpAnd Call AttributeLoad NameLoad m attr group Str hexa_compressed CompareIn Str hexa_compressed AttributeLoad NameLoad self attr allowed_colors body Assign AttributeStore NameLoad self attr region Call AttributeLoad NameLoad sublime attr Region BinOpAdd Call AttributeLoad NameLoad m attr start Str hexa_compressed AttributeLoad NameLoad self attr start BinOpAdd Call AttributeLoad NameLoad m attr end Str hexa_compressed AttributeLoad NameLoad self attr start orelse If BoolOpAnd Call AttributeLoad NameLoad m attr group Str hex_compressed CompareIn Str hex_compressed AttributeLoad NameLoad self attr allowed_colors body Assign AttributeStore NameLoad self attr region Call AttributeLoad NameLoad sublime attr Region BinOpAdd Call AttributeLoad NameLoad m attr start Str hex_compressed AttributeLoad NameLoad self attr start BinOpAdd Call AttributeLoad NameLoad m attr end Str hex_compressed AttributeLoad NameLoad self attr start orelse If BoolOpAnd Call AttributeLoad NameLoad m attr group Str rgb CompareIn Str rgb AttributeLoad NameLoad self attr allowed_colors body Assign AttributeStore NameLoad self attr region Call AttributeLoad NameLoad sublime attr Region BinOpAdd Call AttributeLoad NameLoad m attr start Str rgb AttributeLoad NameLoad self attr start BinOpAdd Call AttributeLoad NameLoad m attr end Str rgb AttributeLoad NameLoad self attr start orelse If BoolOpAnd Call AttributeLoad NameLoad m attr group Str rgba CompareIn Str rgba AttributeLoad NameLoad self attr allowed_colors body Assign AttributeStore NameLoad self attr region Call AttributeLoad NameLoad sublime attr Region BinOpAdd Call AttributeLoad NameLoad m attr start Str rgba AttributeLoad NameLoad self attr start BinOpAdd Call AttributeLoad NameLoad m attr end Str rgba AttributeLoad NameLoad self attr start orelse If BoolOpAnd Call AttributeLoad NameLoad m attr group Str gray CompareIn Str gray AttributeLoad NameLoad self attr allowed_colors body Assign AttributeStore NameLoad self attr region Call AttributeLoad NameLoad sublime attr Region BinOpAdd Call AttributeLoad NameLoad m attr start Str gray AttributeLoad NameLoad self attr start BinOpAdd Call AttributeLoad NameLoad m attr end Str gray AttributeLoad NameLoad self attr start orelse If BoolOpAnd Call AttributeLoad NameLoad m attr group Str graya CompareIn Str graya AttributeLoad NameLoad self attr allowed_colors body Assign AttributeStore NameLoad self attr region Call AttributeLoad NameLoad sublime attr Region BinOpAdd Call AttributeLoad NameLoad m attr start Str graya AttributeLoad NameLoad self attr start BinOpAdd Call AttributeLoad NameLoad m attr end Str graya AttributeLoad NameLoad self attr start orelse If BoolOpAnd Call AttributeLoad NameLoad m attr group Str hsl CompareIn Str hsl AttributeLoad NameLoad self attr allowed_colors body Assign AttributeStore NameLoad self attr region Call AttributeLoad NameLoad sublime attr Region BinOpAdd Call AttributeLoad NameLoad m attr start Str hsl AttributeLoad NameLoad self attr start BinOpAdd Call AttributeLoad NameLoad m attr end Str hsl AttributeLoad NameLoad self attr start orelse If BoolOpAnd Call AttributeLoad NameLoad m attr group Str hsla CompareIn Str hsla AttributeLoad NameLoad self attr allowed_colors body Assign AttributeStore NameLoad self attr region Call AttributeLoad NameLoad sublime attr Region BinOpAdd Call AttributeLoad NameLoad m attr start Str hsla AttributeLoad NameLoad self attr start BinOpAdd Call AttributeLoad NameLoad m attr end Str hsla AttributeLoad NameLoad self attr start orelse If BoolOpAnd Call AttributeLoad NameLoad m attr group Str hwb CompareIn Str hwb AttributeLoad NameLoad self attr allowed_colors body Assign AttributeStore NameLoad self attr region Call AttributeLoad NameLoad sublime attr Region BinOpAdd Call AttributeLoad NameLoad m attr start Str hwb AttributeLoad NameLoad self attr start BinOpAdd Call AttributeLoad NameLoad m attr end Str hwb AttributeLoad NameLoad self attr start orelse If BoolOpAnd Call AttributeLoad NameLoad m attr group Str hwba CompareIn Str hwba AttributeLoad NameLoad self attr allowed_colors body Assign AttributeStore NameLoad self attr region Call AttributeLoad NameLoad sublime attr Region BinOpAdd Call AttributeLoad NameLoad m attr start Str hwba AttributeLoad NameLoad self attr start BinOpAdd Call AttributeLoad NameLoad m attr end Str hwba AttributeLoad NameLoad self attr start orelse Assign NameStore found NameLoad False Return NameLoad found decorator_list FunctionDef completion arguments args NameParam self NameParam m defaults body Expr Str See-if-match-is-completing-an-color. Assign NameStore found NameLoad True If BoolOpAnd Call AttributeLoad NameLoad m attr group Str hash BoolOpOr CompareIn Str hex AttributeLoad NameLoad self attr allowed_colors CompareIn Str hexa AttributeLoad NameLoad self attr allowed_colors body Assign AttributeStore NameLoad self attr region Call AttributeLoad NameLoad sublime attr Region BinOpAdd Call AttributeLoad NameLoad m attr start Str hash AttributeLoad NameLoad self attr start BinOpAdd Call AttributeLoad NameLoad m attr end Str hash AttributeLoad NameLoad self attr start orelse If BoolOpAnd Call AttributeLoad NameLoad m attr group Str hash BoolOpOr CompareIn Str hex_copressed AttributeLoad NameLoad self attr allowed_colors CompareIn Str hexa_copressed AttributeLoad NameLoad self attr allowed_colors body Assign AttributeStore NameLoad self attr region Call AttributeLoad NameLoad sublime attr Region BinOpAdd Call AttributeLoad NameLoad m attr start Str hash AttributeLoad NameLoad self attr start BinOpAdd Call AttributeLoad NameLoad m attr end Str hash AttributeLoad NameLoad self attr start orelse If BoolOpAnd Call AttributeLoad NameLoad m attr group Str rgb_open CompareIn Str rgb AttributeLoad NameLoad self attr allowed_colors body Assign NameStore offset IfExp CompareEq Call AttributeLoad AttributeLoad NameLoad self attr view attr substr AttributeLoad NameLoad self attr point Str ) Num 1 Num 0 Assign AttributeStore NameLoad self attr region Call AttributeLoad NameLoad sublime attr Region BinOpAdd Call AttributeLoad NameLoad m attr start Str rgb_open AttributeLoad NameLoad self attr start BinOpAdd BinOpAdd Call AttributeLoad NameLoad m attr end Str rgb_open AttributeLoad NameLoad self attr start NameLoad offset orelse If BoolOpAnd Call AttributeLoad NameLoad m attr group Str rgba_open CompareIn Str rgba AttributeLoad NameLoad self attr allowed_colors body Assign NameStore offset IfExp CompareEq Call AttributeLoad AttributeLoad NameLoad self attr view attr substr AttributeLoad NameLoad self attr point Str ) Num 1 Num 0 Assign AttributeStore NameLoad self attr region Call AttributeLoad NameLoad sublime attr Region BinOpAdd Call AttributeLoad NameLoad m attr start Str rgba_open AttributeLoad NameLoad self attr start BinOpAdd BinOpAdd Call AttributeLoad NameLoad m attr end Str rgba_open AttributeLoad NameLoad self attr start NameLoad offset orelse If BoolOpAnd Call AttributeLoad NameLoad m attr group Str gray_open BoolOpOr CompareIn Str gray AttributeLoad NameLoad self attr allowed_colors CompareIn Str graya AttributeLoad NameLoad self attr allowed_colors body Assign NameStore offset IfExp CompareEq Call AttributeLoad AttributeLoad NameLoad self attr view attr substr AttributeLoad NameLoad self attr point Str ) Num 1 Num 0 Assign AttributeStore NameLoad self attr region Call AttributeLoad NameLoad sublime attr Region BinOpAdd Call AttributeLoad NameLoad m attr start Str gray_open AttributeLoad NameLoad self attr start BinOpAdd BinOpAdd Call AttributeLoad NameLoad m attr end Str gray_open AttributeLoad NameLoad self attr start NameLoad offset orelse If BoolOpAnd Call AttributeLoad NameLoad m attr group Str hsl_open CompareIn Str hsl AttributeLoad NameLoad self attr allowed_colors body Assign NameStore offset IfExp CompareEq Call AttributeLoad AttributeLoad NameLoad self attr view attr substr AttributeLoad NameLoad self attr point Str ) Num 1 Num 0 Assign AttributeStore NameLoad self attr region Call AttributeLoad NameLoad sublime attr Region BinOpAdd Call AttributeLoad NameLoad m attr start Str hsl_open AttributeLoad NameLoad self attr start BinOpAdd BinOpAdd Call AttributeLoad NameLoad m attr end Str hsl_open AttributeLoad NameLoad self attr start NameLoad offset orelse If BoolOpAnd Call AttributeLoad NameLoad m attr group Str hsla_open CompareIn Str hsla AttributeLoad NameLoad self attr allowed_colors body Assign AttributeStore NameLoad self attr offset IfExp CompareEq Call AttributeLoad AttributeLoad NameLoad self attr view attr substr AttributeLoad NameLoad self attr point Str ) Num 1 Num 0 Assign AttributeStore NameLoad self attr region Call AttributeLoad NameLoad sublime attr Region BinOpAdd Call AttributeLoad NameLoad m attr start Str hsla_open AttributeLoad NameLoad self attr start BinOpAdd BinOpAdd Call AttributeLoad NameLoad m attr end Str hsla_open AttributeLoad NameLoad self attr start NameLoad offset orelse If BoolOpAnd Call AttributeLoad NameLoad m attr group Str hwb_open BoolOpOr CompareIn Str hwb AttributeLoad NameLoad self attr allowed_colors CompareIn Str hwba AttributeLoad NameLoad self attr allowed_colors body Assign NameStore offset IfExp CompareEq Call AttributeLoad AttributeLoad NameLoad self attr view attr substr AttributeLoad NameLoad self attr point Str ) Num 1 Num 0 Assign AttributeStore NameLoad self attr region Call AttributeLoad NameLoad sublime attr Region BinOpAdd Call AttributeLoad NameLoad m attr start Str hwb_open AttributeLoad NameLoad self attr start BinOpAdd BinOpAdd Call AttributeLoad NameLoad m attr end Str hwb_open AttributeLoad NameLoad self attr start NameLoad offset orelse Assign NameStore found NameLoad False Return NameLoad found decorator_list FunctionDef calc arguments args NameParam self defaults body Expr Str Calculate-how-we-are-to-insert-the-target-color. Assign NameStore bfr Call AttributeLoad AttributeLoad NameLoad self attr view attr substr Call AttributeLoad NameLoad sublime attr Region AttributeLoad NameLoad self attr start AttributeLoad NameLoad self attr end Assign NameStore ref BinOpSub AttributeLoad NameLoad self attr point AttributeLoad NameLoad self attr start Assign NameStore found NameLoad False For NameStore m Call AttributeLoad AttributeLoad NameLoad util attr COLOR_ALL_RE attr finditer NameLoad bfr body If BoolOpAnd CompareGtE NameLoad ref Call AttributeLoad NameLoad m attr start Num 0 CompareLt NameLoad ref Call AttributeLoad NameLoad m attr end Num 0 body Assign NameStore found Call AttributeLoad NameLoad self attr replacement NameLoad m orelse If CompareEq NameLoad ref Call AttributeLoad NameLoad m attr end Num 0 body Assign NameStore found Call AttributeLoad NameLoad self attr completion NameLoad m orelse If CompareLt NameLoad ref Call AttributeLoad NameLoad m attr start Num 0 body Break If NameLoad found body Break Return NameLoad found decorator_list decorator_list 
Module Import alias sys alias os Import alias re Import alias math Import alias logging Import alias time Import alias traceback Import alias numpy alias numpy.ma ImportFrom ginga.util alias wcsmod alias io_fits alias iohelper ImportFrom ginga.util alias wcs alias iqcalc ImportFrom ginga.BaseImage alias BaseImage alias ImageError alias Header ImportFrom ginga.misc alias Bunch ImportFrom ginga alias trcalc Import alias ginga.util.six identifier six ImportFrom ginga.util.six.moves alias map alias zip ClassDef AstroHeader bases NameLoad Header body Pass decorator_list ClassDef AstroImage bases NameLoad BaseImage body Expr Str Abstraction-of-an-astronomical-data-(image).----NOTE:-this-module-is-NOT-thread-safe! Assign NameStore wcsClass NameLoad None Assign NameStore ioClass NameLoad None FunctionDef set_wcsClass arguments args NameParam cls NameParam klass defaults body Assign AttributeStore NameLoad cls attr wcsClass NameLoad klass decorator_list NameLoad classmethod FunctionDef set_ioClass arguments args NameParam cls NameParam klass defaults body Assign AttributeStore NameLoad cls attr ioClass NameLoad klass decorator_list NameLoad classmethod FunctionDef __init__ arguments args NameParam self NameParam data_np NameParam metadata NameParam logger NameParam name NameParam wcsclass NameParam ioclass NameParam inherit_primary_header defaults NameLoad None NameLoad None NameLoad None NameLoad None NameLoad wcsClass NameLoad ioClass NameLoad False body Expr Call AttributeLoad NameLoad BaseImage attr __init__ NameLoad self keyword data_np NameLoad data_np keyword metadata NameLoad metadata keyword logger NameLoad logger keyword name NameLoad name If CompareIs NameLoad wcsclass NameLoad None body Assign NameStore wcsclass AttributeLoad NameLoad wcsmod attr WCS Assign AttributeStore NameLoad self attr wcs Call NameLoad wcsclass AttributeLoad NameLoad self attr logger If CompareIs NameLoad ioclass NameLoad None body Assign NameStore ioclass AttributeLoad NameLoad io_fits attr fitsLoaderClass Assign AttributeStore NameLoad self attr io Call NameLoad ioclass AttributeLoad NameLoad self attr logger Assign AttributeStore NameLoad self attr inherit_primary_header NameLoad inherit_primary_header If AttributeLoad NameLoad self attr inherit_primary_header body Assign AttributeStore NameLoad self attr _primary_hdr Call NameLoad AstroHeader orelse Assign AttributeStore NameLoad self attr _primary_hdr NameLoad None If CompareIsNot NameLoad metadata NameLoad None body Assign NameStore header Call AttributeLoad NameLoad self attr get_header Expr Call AttributeLoad AttributeLoad NameLoad self attr wcs attr load_header NameLoad header Assign AttributeStore NameLoad self attr naxispath ListLoad Assign AttributeStore NameLoad self attr revnaxis ListLoad Assign AttributeStore NameLoad self attr _md_data NameLoad None decorator_list FunctionDef load_hdu arguments args NameParam self NameParam hdu NameParam fobj NameParam naxispath defaults NameLoad None NameLoad None body Expr Call AttributeLoad NameLoad self attr clear_metadata Assign NameStore ahdr Call AttributeLoad NameLoad self attr get_header Assign NameStore loader Call AttributeLoad NameLoad io_fits attr PyFitsFileHandler AttributeLoad NameLoad self attr logger Assign TupleStore NameStore _data NameStore naxispath Call AttributeLoad NameLoad loader attr load_hdu NameLoad hdu NameLoad ahdr keyword naxispath NameLoad naxispath Assign AttributeStore NameLoad self attr _md_data NameLoad _data If CompareIs NameLoad naxispath NameLoad None body Assign NameStore naxispath ListLoad If CompareEq Call NameLoad len NameLoad naxispath Num 0 body Assign NameStore naxispath BinOpMult ListLoad Num 0 BinOpSub Call NameLoad len AttributeLoad NameLoad _data attr shape Num 2 Expr Call AttributeLoad NameLoad self attr set_naxispath NameLoad naxispath If BoolOpAnd AttributeLoad NameLoad self attr inherit_primary_header CompareIsNot NameLoad fobj NameLoad None body Expr Call AttributeLoad AttributeLoad NameLoad self attr io attr fromHDU SubscriptLoad NameLoad fobj Index Num 0 AttributeLoad NameLoad self attr _primary_hdr Expr Call AttributeLoad AttributeLoad NameLoad self attr wcs attr load_header AttributeLoad NameLoad hdu attr header keyword fobj NameLoad fobj decorator_list FunctionDef load_file arguments args NameParam self NameParam filepath NameParam numhdu NameParam naxispath NameParam allow_numhdu_override defaults NameLoad None NameLoad None NameLoad True body Expr Call AttributeLoad AttributeLoad NameLoad self attr logger attr debug BinOpMod Str Loading-file-'%s'-... NameLoad filepath Expr Call AttributeLoad NameLoad self attr clear_metadata Assign NameStore ahdr Call AttributeLoad NameLoad self attr get_header Assign NameStore info Call AttributeLoad NameLoad iohelper attr get_fileinfo NameLoad filepath If CompareIs NameLoad numhdu NameLoad None body Assign NameStore numhdu AttributeLoad NameLoad info attr numhdu Assign TupleStore NameStore _data NameStore numhdu_ NameStore naxispath Call AttributeLoad AttributeLoad NameLoad self attr io attr load_file AttributeLoad NameLoad info attr filepath NameLoad ahdr keyword numhdu NameLoad numhdu keyword naxispath NameLoad naxispath keyword phdr AttributeLoad NameLoad self attr _primary_hdr Assign AttributeStore NameLoad self attr _md_data NameLoad _data If CompareIs NameLoad naxispath NameLoad None body Assign NameStore naxispath ListLoad If CompareEq Call NameLoad len NameLoad naxispath Num 0 body Assign NameStore naxispath BinOpMult ListLoad Num 0 BinOpSub Call NameLoad len AttributeLoad NameLoad _data attr shape Num 2 If UnaryOpNot CompareIs AttributeLoad NameLoad self attr name NameLoad None body Expr Call AttributeLoad NameLoad self attr set keyword name AttributeLoad NameLoad self attr name orelse Assign NameStore name Call AttributeLoad NameLoad self attr get Str name NameLoad None If CompareIs NameLoad name NameLoad None body Assign NameStore name AttributeLoad NameLoad info attr name If CompareNotIn Str [ NameLoad name body If BoolOpOr CompareIs NameLoad numhdu NameLoad None NameLoad allow_numhdu_override body Assign NameStore numhdu NameLoad numhdu_ AugAssignAdd NameStore name Call AttributeLoad NameLoad iohelper attr get_hdu_suffix NameLoad numhdu Expr Call AttributeLoad NameLoad self attr set keyword name NameLoad name Expr Call AttributeLoad NameLoad self attr set keyword path NameLoad filepath keyword idx NameLoad numhdu Expr Call AttributeLoad NameLoad self attr set_naxispath NameLoad naxispath Expr Call AttributeLoad AttributeLoad NameLoad self attr wcs attr load_header NameLoad ahdr decorator_list FunctionDef load_buffer arguments args NameParam self NameParam data NameParam dims NameParam dtype NameParam byteswap NameParam metadata defaults NameLoad False NameLoad None body Assign NameStore data Call AttributeLoad NameLoad numpy attr fromstring NameLoad data keyword dtype NameLoad dtype If NameLoad byteswap body Expr Call AttributeLoad NameLoad data attr byteswap NameLoad True Assign NameStore data Call AttributeLoad NameLoad data attr reshape NameLoad dims Expr Call AttributeLoad NameLoad self attr set_data NameLoad data keyword metadata NameLoad metadata decorator_list FunctionDef get_mddata arguments args NameParam self defaults body Return AttributeLoad NameLoad self attr _md_data decorator_list FunctionDef set_naxispath arguments args NameParam self NameParam naxispath defaults body Expr Str Choose-a-slice-out-of-multidimensional-data. Assign NameStore revnaxis Call NameLoad list NameLoad naxispath Expr Call AttributeLoad NameLoad revnaxis attr reverse Assign NameStore view BinOpAdd NameLoad revnaxis ListLoad Call NameLoad slice NameLoad None Call NameLoad slice NameLoad None Assign NameStore data SubscriptLoad Call AttributeLoad NameLoad self attr get_mddata Index NameLoad view Assert CompareEq Call NameLoad len AttributeLoad NameLoad data attr shape Num 2 Call NameLoad ImageError BinOpMod Str naxispath-does-not-lead-to-a-2D-slice:-%s Call NameLoad str NameLoad naxispath Assign AttributeStore NameLoad self attr naxispath NameLoad naxispath Assign AttributeStore NameLoad self attr revnaxis NameLoad revnaxis Expr Call AttributeLoad NameLoad self attr set_data NameLoad data decorator_list FunctionDef set_wcs arguments args NameParam self NameParam wcs defaults body Assign AttributeStore NameLoad self attr wcs NameLoad wcs decorator_list FunctionDef set_io arguments args NameParam self NameParam io defaults body Assign AttributeStore NameLoad self attr io NameLoad io decorator_list FunctionDef get_data_size arguments args NameParam self defaults body Return Call AttributeLoad NameLoad self attr get_size decorator_list FunctionDef get_header arguments args NameParam self NameParam create defaults NameLoad True body TryExcept body Assign NameStore hdr SubscriptLoad AttributeLoad NameLoad self attr metadata Index Str header If BoolOpAnd AttributeLoad NameLoad self attr inherit_primary_header CompareIsNot AttributeLoad NameLoad self attr _primary_hdr NameLoad None body Assign NameStore displayhdr Call NameLoad AstroHeader For NameStore key AttributeLoad NameLoad hdr attr keyorder body Assign NameStore card Call AttributeLoad NameLoad hdr attr get_card NameLoad key Assign NameStore bnch Call AttributeLoad NameLoad displayhdr attr __setitem__ AttributeLoad NameLoad card attr key AttributeLoad NameLoad card attr value Assign AttributeStore NameLoad bnch attr comment AttributeLoad NameLoad card attr comment For NameStore key AttributeLoad AttributeLoad NameLoad self attr _primary_hdr attr keyorder body If CompareNotIn NameLoad key NameLoad hdr body Assign NameStore card Call AttributeLoad AttributeLoad NameLoad self attr _primary_hdr attr get_card NameLoad key Assign NameStore bnch Call AttributeLoad NameLoad displayhdr attr __setitem__ AttributeLoad NameLoad card attr key AttributeLoad NameLoad card attr value Assign AttributeStore NameLoad bnch attr comment AttributeLoad NameLoad card attr comment orelse Assign NameStore displayhdr NameLoad hdr handlers ExceptHandler type NameLoad KeyError name NameStore e body If UnaryOpNot NameLoad create body Raise NameLoad e Assign NameStore hdr Call NameLoad AstroHeader Assign SubscriptStore AttributeLoad NameLoad self attr metadata Index Str header NameLoad hdr Assign NameStore displayhdr NameLoad hdr Return NameLoad displayhdr decorator_list FunctionDef get_keyword arguments args NameParam self NameParam kwd defaults vararg args body Expr Str Get-an-item-from-the-fits-header,-if-any. TryExcept body Assign NameStore kwds Call AttributeLoad NameLoad self attr get_header Return SubscriptLoad NameLoad kwds Index NameLoad kwd handlers ExceptHandler type NameLoad KeyError body If CompareGt Call NameLoad len NameLoad args Num 0 body Return SubscriptLoad NameLoad args Index Num 0 Raise Call NameLoad KeyError NameLoad kwd decorator_list FunctionDef get_keywords_list arguments args NameParam self defaults vararg args body Return Call NameLoad list Call NameLoad map AttributeLoad NameLoad self attr get_keyword NameLoad args decorator_list FunctionDef set_keyword arguments args NameParam self NameParam kwd NameParam value NameParam create defaults NameLoad True body Assign NameStore kwds Call AttributeLoad NameLoad self attr get_header keyword create NameLoad create Assign NameStore kwd Call AttributeLoad NameLoad kwd attr upper If UnaryOpNot NameLoad create body Assign NameStore prev SubscriptLoad NameLoad kwds Index NameLoad kwd Assign SubscriptStore NameLoad kwds Index NameLoad kwd NameLoad value decorator_list FunctionDef update_keywords arguments args NameParam self NameParam keyDict defaults body Assign NameStore hdr Call AttributeLoad NameLoad self attr get_header For TupleStore NameStore kwd NameStore val Call AttributeLoad NameLoad keyDict attr items body Assign SubscriptStore NameLoad hdr Index Call AttributeLoad NameLoad kwd attr upper NameLoad val If Call NameLoad hasattr NameLoad self Str wcs body Expr Call AttributeLoad AttributeLoad NameLoad self attr wcs attr load_header NameLoad hdr decorator_list FunctionDef set_keywords arguments args NameParam self defaults kwarg kwds body Expr Str Set-an-item-in-the-fits-header,-if-any. Return Call AttributeLoad NameLoad self attr update_keywords NameLoad kwds decorator_list FunctionDef update_data arguments args NameParam self NameParam data_np NameParam metadata NameParam astype defaults NameLoad None NameLoad None body Expr Str DO-NOT-USE:-this-method-will-be-deprecated! Expr Call AttributeLoad NameLoad self attr set_data Call AttributeLoad NameLoad data_np attr copy keyword metadata NameLoad metadata keyword astype NameLoad astype decorator_list FunctionDef update_metadata arguments args NameParam self NameParam keyDict defaults body For TupleStore NameStore key NameStore val Call AttributeLoad NameLoad keyDict attr items body Assign SubscriptStore AttributeLoad NameLoad self attr metadata Index NameLoad key NameLoad val If Call NameLoad hasattr NameLoad self Str wcs body Assign NameStore header Call AttributeLoad NameLoad self attr get_header Expr Call AttributeLoad AttributeLoad NameLoad self attr wcs attr load_header NameLoad header decorator_list FunctionDef clear_metadata arguments args NameParam self defaults body Assign AttributeStore NameLoad self attr metadata Dict decorator_list FunctionDef transfer arguments args NameParam self NameParam other NameParam astype defaults NameLoad None body Assign NameStore data Call AttributeLoad NameLoad self attr _get_data Expr Call AttributeLoad NameLoad other attr update_data NameLoad data keyword astype NameLoad astype Expr Call AttributeLoad NameLoad other attr update_metadata AttributeLoad NameLoad self attr metadata decorator_list FunctionDef copy arguments args NameParam self NameParam astype defaults NameLoad None body Assign NameStore data Call AttributeLoad NameLoad self attr _get_data Assign NameStore other Call NameLoad AstroImage NameLoad data keyword logger AttributeLoad NameLoad self attr logger Expr Call AttributeLoad NameLoad self attr transfer NameLoad other keyword astype NameLoad astype Return NameLoad other decorator_list FunctionDef save_as_file arguments args NameParam self NameParam filepath defaults kwarg kwdargs body Assign NameStore data Call AttributeLoad NameLoad self attr _get_data Assign NameStore header Call AttributeLoad NameLoad self attr get_header Expr Call AttributeLoad AttributeLoad NameLoad self attr io attr save_as_file NameLoad filepath NameLoad data NameLoad header NameLoad kwdargs decorator_list FunctionDef pixtocoords arguments args NameParam self NameParam x NameParam y NameParam system NameParam coords defaults NameLoad None Str data body Assign NameStore args BinOpAdd ListLoad NameLoad x NameLoad y AttributeLoad NameLoad self attr revnaxis Return Call AttributeLoad AttributeLoad NameLoad self attr wcs attr pixtocoords NameLoad args keyword system NameLoad system keyword coords NameLoad coords decorator_list FunctionDef spectral_coord arguments args NameParam self NameParam coords defaults Str data body Assign NameStore args BinOpAdd ListLoad Num 0 Num 0 AttributeLoad NameLoad self attr revnaxis Return Call AttributeLoad AttributeLoad NameLoad self attr wcs attr spectral_coord NameLoad args keyword coords NameLoad coords decorator_list FunctionDef pixtoradec arguments args NameParam self NameParam x NameParam y NameParam format NameParam coords defaults Str deg Str data body Assign NameStore args BinOpAdd ListLoad NameLoad x NameLoad y AttributeLoad NameLoad self attr revnaxis Assign TupleStore NameStore ra_deg NameStore dec_deg Call AttributeLoad AttributeLoad NameLoad self attr wcs attr pixtoradec NameLoad args keyword coords NameLoad coords If CompareEq NameLoad format Str deg body Return TupleLoad NameLoad ra_deg NameLoad dec_deg Return Call AttributeLoad NameLoad wcs attr deg2fmt NameLoad ra_deg NameLoad dec_deg NameLoad format decorator_list FunctionDef radectopix arguments args NameParam self NameParam ra_deg NameParam dec_deg NameParam format NameParam coords defaults Str deg Str data body If CompareNotEq NameLoad format Str deg body Assign NameStore ra_deg Call AttributeLoad NameLoad wcs attr lon_to_deg NameLoad ra_deg Assign NameStore dec_deg Call AttributeLoad NameLoad wcs attr lat_to_deg NameLoad dec_deg Return Call AttributeLoad AttributeLoad NameLoad self attr wcs attr radectopix NameLoad ra_deg NameLoad dec_deg keyword coords NameLoad coords keyword naxispath AttributeLoad NameLoad self attr revnaxis decorator_list FunctionDef get_starsep_XY arguments args NameParam self NameParam x1 NameParam y1 NameParam x2 NameParam y2 defaults body Assign TupleStore NameStore ra_org NameStore dec_org Call AttributeLoad NameLoad self attr pixtoradec NameLoad x1 NameLoad y1 Assign TupleStore NameStore ra_dst NameStore dec_dst Call AttributeLoad NameLoad self attr pixtoradec NameLoad x2 NameLoad y2 Return Call AttributeLoad NameLoad wcs attr get_starsep_RaDecDeg NameLoad ra_org NameLoad dec_org NameLoad ra_dst NameLoad dec_dst decorator_list FunctionDef calc_radius_xy arguments args NameParam self NameParam x NameParam y NameParam radius_deg defaults body Expr Str Calculate-a-radius-(in-pixels)-from-the-point-(x,-y)-to-a-circle--------defined-by-radius-in-degrees. Assign TupleStore NameStore ra_deg NameStore dec_deg Call AttributeLoad NameLoad self attr pixtoradec NameLoad x NameLoad y Assign TupleStore NameStore ra2_deg NameStore dec2_deg Call AttributeLoad NameLoad wcs attr add_offset_radec NameLoad ra_deg NameLoad dec_deg Num 0.0 Num 1.0 Assign TupleStore NameStore x2 NameStore y2 Call AttributeLoad NameLoad self attr radectopix NameLoad ra2_deg NameLoad dec2_deg Assign NameStore px_per_deg_e Call AttributeLoad NameLoad math attr sqrt BinOpAdd BinOpPow Call AttributeLoad NameLoad math attr fabs BinOpSub NameLoad x2 NameLoad x Num 2 BinOpPow Call AttributeLoad NameLoad math attr fabs BinOpSub NameLoad y2 NameLoad y Num 2 Assign NameStore radius_px BinOpMult NameLoad px_per_deg_e NameLoad radius_deg Return NameLoad radius_px decorator_list FunctionDef calc_radius_deg2pix arguments args NameParam self NameParam ra_deg NameParam dec_deg NameParam delta_deg NameParam equinox defaults NameLoad None body Assign TupleStore NameStore x NameStore y Call AttributeLoad NameLoad self attr radectopix NameLoad ra_deg NameLoad dec_deg keyword equinox NameLoad equinox Return Call AttributeLoad NameLoad self attr calc_radius_xy NameLoad x NameLoad y NameLoad delta_deg decorator_list FunctionDef add_offset_xy arguments args NameParam self NameParam x NameParam y NameParam delta_deg_x NameParam delta_deg_y defaults body Assign TupleStore NameStore ra_deg NameStore dec_deg Call AttributeLoad NameLoad self attr pixtoradec NameLoad x NameLoad y Assign TupleStore NameStore ra2_deg NameStore dec2_deg Call AttributeLoad NameLoad wcs attr add_offset_radec NameLoad ra_deg NameLoad dec_deg NameLoad delta_deg_x NameLoad delta_deg_y Assign TupleStore NameStore x2 NameStore y2 Call AttributeLoad NameLoad self attr radectopix NameLoad ra2_deg NameLoad dec2_deg Return TupleLoad NameLoad x2 NameLoad y2 decorator_list FunctionDef calc_radius_center arguments args NameParam self NameParam delta_deg defaults body Return Call AttributeLoad NameLoad self attr calc_radius_xy Call NameLoad float BinOpDiv AttributeLoad NameLoad self attr width Num 2.0 Call NameLoad float BinOpDiv AttributeLoad NameLoad self attr height Num 2.0 NameLoad delta_deg decorator_list FunctionDef calc_compass arguments args NameParam self NameParam x NameParam y NameParam len_deg_e NameParam len_deg_n defaults body Assign TupleStore NameStore xe NameStore ye Call AttributeLoad NameLoad self attr add_offset_xy NameLoad x NameLoad y NameLoad len_deg_e Num 0.0 Assign NameStore xe Call NameLoad int Call NameLoad round NameLoad xe Assign NameStore ye Call NameLoad int Call NameLoad round NameLoad ye Assign TupleStore NameStore xn NameStore yn Call AttributeLoad NameLoad self attr add_offset_xy NameLoad x NameLoad y Num 0.0 NameLoad len_deg_n Assign NameStore xn Call NameLoad int Call NameLoad round NameLoad xn Assign NameStore yn Call NameLoad int Call NameLoad round NameLoad yn Return TupleLoad NameLoad x NameLoad y NameLoad xn NameLoad yn NameLoad xe NameLoad ye decorator_list FunctionDef calc_compass_radius arguments args NameParam self NameParam x NameParam y NameParam radius_px defaults body Assign TupleStore NameStore xe NameStore ye Call AttributeLoad NameLoad self attr add_offset_xy NameLoad x NameLoad y Num 1.0 Num 0.0 Assign TupleStore NameStore xn NameStore yn Call AttributeLoad NameLoad self attr add_offset_xy NameLoad x NameLoad y Num 0.0 Num 1.0 Assign NameStore px_per_deg_e Call AttributeLoad NameLoad math attr sqrt BinOpAdd BinOpPow Call AttributeLoad NameLoad math attr fabs BinOpSub NameLoad ye NameLoad y Num 2 BinOpPow Call AttributeLoad NameLoad math attr fabs BinOpSub NameLoad xe NameLoad x Num 2 Assign NameStore px_per_deg_n Call AttributeLoad NameLoad math attr sqrt BinOpAdd BinOpPow Call AttributeLoad NameLoad math attr fabs BinOpSub NameLoad yn NameLoad y Num 2 BinOpPow Call AttributeLoad NameLoad math attr fabs BinOpSub NameLoad xn NameLoad x Num 2 Assign NameStore len_deg_e BinOpDiv NameLoad radius_px NameLoad px_per_deg_e Assign NameStore len_deg_n BinOpDiv NameLoad radius_px NameLoad px_per_deg_n Return Call AttributeLoad NameLoad self attr calc_compass NameLoad x NameLoad y NameLoad len_deg_e NameLoad len_deg_n decorator_list FunctionDef calc_compass_center arguments args NameParam self defaults body Assign NameStore x BinOpDiv Call NameLoad float AttributeLoad NameLoad self attr width Num 2.0 Assign NameStore y BinOpDiv Call NameLoad float AttributeLoad NameLoad self attr height Num 2.0 Assign NameStore radius_px BinOpDiv Call NameLoad float Call NameLoad min AttributeLoad NameLoad self attr width AttributeLoad NameLoad self attr height Num 4.0 Return Call AttributeLoad NameLoad self attr calc_compass_radius NameLoad x NameLoad y NameLoad radius_px decorator_list FunctionDef get_wcs_rotation_deg arguments args NameParam self defaults body Assign NameStore header Call AttributeLoad NameLoad self attr get_header Assign TupleStore NameStore rot NameStore cdelt1 NameStore cdelt2 Call AttributeLoad NameLoad wcs attr get_rotation_and_scale NameLoad header Return NameLoad rot decorator_list FunctionDef rotate arguments args NameParam self NameParam deg NameParam update_wcs defaults NameLoad False body Expr Call AttributeLoad Call NameLoad super NameLoad AstroImage NameLoad self attr rotate NameLoad deg decorator_list FunctionDef mosaic_inline arguments args NameParam self NameParam imagelist NameParam bg_ref NameParam trim_px NameParam merge NameParam allow_expand NameParam expand_pad_deg NameParam max_expand_pct NameParam update_minmax NameParam suppress_callback defaults NameLoad None NameLoad None NameLoad False NameLoad True Num 0.01 NameLoad None NameLoad True NameLoad False body Expr Str Drops-new-images-into-the-current-image-(if-there-is-room),--------relocating-them-according-the-WCS-between-the-two-images. Assign NameStore header Call AttributeLoad NameLoad self attr get_header Assign TupleStore TupleStore NameStore xrot_ref NameStore yrot_ref TupleStore NameStore cdelt1_ref NameStore cdelt2_ref Call AttributeLoad NameLoad wcs attr get_xy_rotation_and_scale NameLoad header Assign NameStore ref_rot NameLoad yrot_ref Assign TupleStore NameStore scale_x NameStore scale_y TupleLoad Call AttributeLoad NameLoad math attr fabs NameLoad cdelt1_ref Call AttributeLoad NameLoad math attr fabs NameLoad cdelt2_ref Assign NameStore mydata Call AttributeLoad NameLoad self attr _get_data Assign NameStore count Num 1 For NameStore image NameLoad imagelist body Assign NameStore name Call AttributeLoad NameLoad image attr get Str name BinOpMod Str image%d NameLoad count AugAssignAdd NameStore count Num 1 Assign NameStore data_np Call AttributeLoad NameLoad image attr _get_data Assign TupleStore NameStore ctr_x NameStore ctr_y Call AttributeLoad NameLoad trcalc attr get_center NameLoad data_np Assign TupleStore NameStore ra NameStore dec Call AttributeLoad NameLoad image attr pixtoradec NameLoad ctr_x NameLoad ctr_y Assign TupleStore NameStore ht NameStore wd SubscriptLoad AttributeLoad NameLoad data_np attr shape Slice Num 2 If NameLoad trim_px body Assign TupleStore NameStore xlo NameStore xhi TupleLoad NameLoad trim_px BinOpSub NameLoad wd NameLoad trim_px Assign TupleStore NameStore ylo NameStore yhi TupleLoad NameLoad trim_px BinOpSub NameLoad ht NameLoad trim_px Assign NameStore data_np SubscriptLoad NameLoad data_np ExtSlice Slice NameLoad ylo NameLoad yhi Slice NameLoad xlo NameLoad xhi Ellipsis Assign TupleStore NameStore ht NameStore wd SubscriptLoad AttributeLoad NameLoad data_np attr shape Slice Num 2 If CompareIsNot NameLoad bg_ref NameLoad None body Assign NameStore bg Call AttributeLoad NameLoad iqcalc attr get_median NameLoad data_np Assign NameStore bg_inc BinOpSub NameLoad bg_ref NameLoad bg Assign NameStore data_np BinOpAdd NameLoad data_np NameLoad bg_inc If NameLoad update_minmax body Assign NameStore maxval Call AttributeLoad NameLoad numpy attr nanmax NameLoad data_np Assign NameStore minval Call AttributeLoad NameLoad numpy attr nanmin NameLoad data_np Assign AttributeStore NameLoad self attr maxval Call NameLoad max AttributeLoad NameLoad self attr maxval NameLoad maxval Assign AttributeStore NameLoad self attr minval Call NameLoad min AttributeLoad NameLoad self attr minval NameLoad minval Assign NameStore header Call AttributeLoad NameLoad image attr get_header Assign TupleStore TupleStore NameStore xrot NameStore yrot TupleStore NameStore cdelt1 NameStore cdelt2 Call AttributeLoad NameLoad wcs attr get_xy_rotation_and_scale NameLoad header Expr Call AttributeLoad AttributeLoad NameLoad self attr logger attr debug BinOpMod Str image(%s)-xrot=%f-yrot=%f-cdelt1=%f-cdelt2=%f TupleLoad NameLoad name NameLoad xrot NameLoad yrot NameLoad cdelt1 NameLoad cdelt2 If BoolOpOr UnaryOpNot Call AttributeLoad NameLoad numpy attr isclose Call AttributeLoad NameLoad math attr fabs NameLoad cdelt1 NameLoad scale_x UnaryOpNot Call AttributeLoad NameLoad numpy attr isclose Call AttributeLoad NameLoad math attr fabs NameLoad cdelt2 NameLoad scale_y body Assign NameStore nscale_x BinOpDiv Call AttributeLoad NameLoad math attr fabs NameLoad cdelt1 NameLoad scale_x Assign NameStore nscale_y BinOpDiv Call AttributeLoad NameLoad math attr fabs NameLoad cdelt2 NameLoad scale_y Expr Call AttributeLoad AttributeLoad NameLoad self attr logger attr debug BinOpMod Str scaling-piece-by-x(%f),-y(%f) TupleLoad NameLoad nscale_x NameLoad nscale_y Assign TupleStore NameStore data_np TupleStore NameStore ascale_x NameStore ascale_y Call AttributeLoad NameLoad trcalc attr get_scaled_cutout_basic NameLoad data_np Num 0 Num 0 BinOpSub NameLoad wd Num 1 BinOpSub NameLoad ht Num 1 NameLoad nscale_x NameLoad nscale_y Assign TupleStore NameStore rot_dx NameStore rot_dy TupleLoad BinOpSub NameLoad xrot NameLoad xrot_ref BinOpSub NameLoad yrot NameLoad yrot_ref Assign NameStore flip_x NameLoad False Assign NameStore flip_y NameLoad False If Call AttributeLoad NameLoad numpy attr isclose Call AttributeLoad NameLoad math attr fabs NameLoad rot_dx Num 180.0 body Assign NameStore flip_x UnaryOpNot NameLoad flip_x Assign NameStore rot_dx Num 0.0 If Call AttributeLoad NameLoad numpy attr isclose Call AttributeLoad NameLoad math attr fabs NameLoad rot_dy Num 180.0 body Assign NameStore flip_y UnaryOpNot NameLoad flip_y Assign NameStore rot_dy Num 0.0 Expr Call AttributeLoad AttributeLoad NameLoad self attr logger attr debug BinOpMod Str flip_x=%s-flip_y=%s TupleLoad NameLoad flip_x NameLoad flip_y If BoolOpOr NameLoad flip_x NameLoad flip_y body Assign NameStore rotdata Call AttributeLoad NameLoad trcalc attr transform NameLoad data_np keyword flip_x NameLoad flip_x keyword flip_y NameLoad flip_y orelse Assign NameStore rotdata NameLoad data_np If UnaryOpNot Call AttributeLoad NameLoad numpy attr isclose NameLoad rot_dy Num 0.0 body Assign NameStore rot_deg NameLoad rot_dy Expr Call AttributeLoad AttributeLoad NameLoad self attr logger attr debug BinOpMod Str rotating-%s-by-%f-deg TupleLoad NameLoad name NameLoad rot_deg Assign NameStore rotdata Call AttributeLoad NameLoad trcalc attr rotate NameLoad rotdata NameLoad rot_deg Assign TupleStore NameStore ht NameStore wd SubscriptLoad AttributeLoad NameLoad rotdata attr shape Slice Num 2 Assign TupleStore NameStore ctr_x NameStore ctr_y Call AttributeLoad NameLoad trcalc attr get_center NameLoad rotdata Assign TupleStore NameStore x0 NameStore y0 Call AttributeLoad NameLoad self attr radectopix NameLoad ra NameLoad dec Assign TupleStore NameStore x0 NameStore y0 TupleLoad Call NameLoad int Call NameLoad round NameLoad x0 Call NameLoad int Call NameLoad round NameLoad y0 Expr Call AttributeLoad AttributeLoad NameLoad self attr logger attr debug BinOpMod Str Fitting-image-'%s'-into-mosaic-at-%d,%d TupleLoad NameLoad name NameLoad x0 NameLoad y0 Assign TupleStore NameStore my_ctr_x NameStore my_ctr_y Call AttributeLoad NameLoad trcalc attr get_center NameLoad mydata Assign TupleStore NameStore off_x NameStore off_y TupleLoad BinOpSub NameLoad x0 NameLoad my_ctr_x BinOpSub NameLoad y0 NameLoad my_ctr_y Expr Call AttributeLoad AttributeLoad NameLoad self attr logger attr debug BinOpMod Str centering-offsets:-%d,%d TupleLoad NameLoad off_x NameLoad off_y Assign TupleStore NameStore xlo NameStore xhi TupleLoad BinOpSub NameLoad x0 NameLoad ctr_x BinOpSub BinOpAdd NameLoad x0 NameLoad wd NameLoad ctr_x Assign TupleStore NameStore ylo NameStore yhi TupleLoad BinOpSub NameLoad y0 NameLoad ctr_y BinOpSub BinOpAdd NameLoad y0 NameLoad ht NameLoad ctr_y Assert CompareEq BinOpSub NameLoad xhi NameLoad xlo NameLoad wd Call NameLoad Exception BinOpMod Str Width-differential-%d-!=-%d TupleLoad BinOpSub NameLoad xhi NameLoad xlo NameLoad wd Assert CompareEq BinOpSub NameLoad yhi NameLoad ylo NameLoad ht Call NameLoad Exception BinOpMod Str Height-differential-%d-!=-%d TupleLoad BinOpSub NameLoad yhi NameLoad ylo NameLoad ht Assign TupleStore NameStore mywd NameStore myht Call AttributeLoad NameLoad self attr get_size If BoolOpOr CompareLt NameLoad xlo Num 0 CompareGt NameLoad xhi NameLoad mywd CompareLt NameLoad ylo Num 0 CompareGt NameLoad yhi NameLoad myht body If UnaryOpNot NameLoad allow_expand body Raise Call NameLoad Exception Str New-piece-doesn't-fit-on-image-and-allow_expand=False Assign NameStore expand_x Call NameLoad max Call NameLoad int BinOpDiv NameLoad expand_pad_deg NameLoad scale_x Num 0 Assign NameStore expand_y Call NameLoad max Call NameLoad int BinOpDiv NameLoad expand_pad_deg NameLoad scale_y Num 0 Assign TupleStore NameStore nx1_off NameStore nx2_off TupleLoad Num 0 Num 0 If CompareLt NameLoad xlo Num 0 body Assign NameStore nx1_off BinOpAdd Call NameLoad abs NameLoad xlo NameLoad expand_x If CompareGt NameLoad xhi NameLoad mywd body Assign NameStore nx2_off BinOpAdd BinOpSub NameLoad xhi NameLoad mywd NameLoad expand_x Assign TupleStore NameStore xlo NameStore xhi TupleLoad BinOpAdd NameLoad xlo NameLoad nx1_off BinOpAdd NameLoad xhi NameLoad nx1_off Assign TupleStore NameStore ny1_off NameStore ny2_off TupleLoad Num 0 Num 0 If CompareLt NameLoad ylo Num 0 body Assign NameStore ny1_off BinOpAdd Call NameLoad abs NameLoad ylo NameLoad expand_y If CompareGt NameLoad yhi NameLoad myht body Assign NameStore ny2_off BinOpAdd BinOpSub NameLoad yhi NameLoad myht NameLoad expand_y Assign TupleStore NameStore ylo NameStore yhi TupleLoad BinOpAdd NameLoad ylo NameLoad ny1_off BinOpAdd NameLoad yhi NameLoad ny1_off Assign NameStore new_wd BinOpAdd BinOpAdd NameLoad mywd NameLoad nx1_off NameLoad nx2_off Assign NameStore new_ht BinOpAdd BinOpAdd NameLoad myht NameLoad ny1_off NameLoad ny2_off Assign NameStore old_area BinOpMult NameLoad mywd NameLoad myht Assign NameStore new_area BinOpMult NameLoad new_wd NameLoad new_ht Assign NameStore expand_pct BinOpDiv NameLoad new_area NameLoad old_area If BoolOpAnd CompareIsNot NameLoad max_expand_pct NameLoad None CompareGt NameLoad expand_pct NameLoad max_expand_pct body Raise Call NameLoad Exception BinOpMod Str New-area-exceeds-current-one-by-%.2f-%%;increase-max_expand_pct-(%.2f)-to-allow TupleLoad BinOpMult NameLoad expand_pct Num 100 NameLoad max_expand_pct Assign NameStore new_data Call AttributeLoad NameLoad numpy attr zeros TupleLoad NameLoad new_ht NameLoad new_wd Assign SubscriptStore NameLoad new_data ExtSlice Slice NameLoad ny1_off BinOpAdd NameLoad ny1_off NameLoad myht Slice NameLoad nx1_off BinOpAdd NameLoad nx1_off NameLoad mywd NameLoad mydata Assign AttributeStore NameLoad self attr _data NameLoad new_data Assign NameStore mydata NameLoad new_data If BoolOpOr CompareGt NameLoad nx1_off Num 0 CompareGt NameLoad ny1_off Num 0 body Assign TupleStore NameStore crpix1 NameStore crpix2 Call AttributeLoad NameLoad self attr get_keywords_list Str CRPIX1 Str CRPIX2 Assign NameStore kwds Call NameLoad dict keyword CRPIX1 BinOpAdd NameLoad crpix1 NameLoad nx1_off keyword CRPIX2 BinOpAdd NameLoad crpix2 NameLoad ny1_off Expr Call AttributeLoad NameLoad self attr update_keywords NameLoad kwds TryExcept body If NameLoad merge body AugAssignAdd SubscriptStore NameLoad mydata ExtSlice Slice NameLoad ylo NameLoad yhi Slice NameLoad xlo NameLoad xhi Ellipsis SubscriptLoad NameLoad rotdata ExtSlice Slice Num 0 NameLoad ht Slice Num 0 NameLoad wd Ellipsis orelse Assign NameStore idx CompareEq SubscriptLoad NameLoad mydata ExtSlice Slice NameLoad ylo NameLoad yhi Slice NameLoad xlo NameLoad xhi Ellipsis Num 0.0 Assign SubscriptStore SubscriptLoad NameLoad mydata ExtSlice Slice NameLoad ylo NameLoad yhi Slice NameLoad xlo NameLoad xhi Ellipsis Index NameLoad idx SubscriptLoad SubscriptLoad NameLoad rotdata ExtSlice Slice Num 0 NameLoad ht Slice Num 0 NameLoad wd Ellipsis Index NameLoad idx handlers ExceptHandler type NameLoad Exception name NameStore e body Expr Call AttributeLoad AttributeLoad NameLoad self attr logger attr error BinOpMod Str Error-fitting-tile:-%s Call NameLoad str NameLoad e Raise If UnaryOpNot NameLoad suppress_callback body Expr Call AttributeLoad NameLoad self attr make_callback Str modified Return TupleLoad NameLoad xlo NameLoad ylo NameLoad xhi NameLoad yhi decorator_list FunctionDef info_xy arguments args NameParam self NameParam data_x NameParam data_y NameParam settings defaults body TryExcept body Assign NameStore value Call AttributeLoad NameLoad self attr get_data_xy Call NameLoad int BinOpAdd NameLoad data_x Num 0.5 Call NameLoad int BinOpAdd NameLoad data_y Num 0.5 handlers ExceptHandler type NameLoad Exception name NameStore e body Assign NameStore value NameLoad None Assign NameStore system Call AttributeLoad NameLoad settings attr get Str wcs_coords NameLoad None Assign NameStore format Call AttributeLoad NameLoad settings attr get Str wcs_display Str sexagesimal Assign TupleStore NameStore ra_lbl NameStore dec_lbl TupleLoad Call AttributeLoad NameLoad six attr unichr Num 945 Call AttributeLoad NameLoad six attr unichr Num 948 Assign NameStore ts Call AttributeLoad NameLoad time attr time TryExcept body If CompareIs AttributeLoad NameLoad self attr wcs NameLoad None body Expr Call AttributeLoad AttributeLoad NameLoad self attr logger attr debug Str No-WCS-for-this-image Assign NameStore ra_txt NameStore dec_txt Str NO-WCS orelse If CompareEq AttributeLoad AttributeLoad NameLoad self attr wcs attr coordsys Str raw body Expr Call AttributeLoad AttributeLoad NameLoad self attr logger attr debug Str No-coordinate-system-determined Assign NameStore ra_txt NameStore dec_txt Str NO-WCS orelse If CompareEq AttributeLoad AttributeLoad NameLoad self attr wcs attr coordsys Str pixel body Assign NameStore args BinOpAdd ListLoad NameLoad data_x NameLoad data_y AttributeLoad NameLoad self attr revnaxis Assign TupleStore NameStore x NameStore y Call AttributeLoad AttributeLoad NameLoad self attr wcs attr pixtosystem NameLoad args keyword system NameLoad system keyword coords Str data Assign NameStore ra_txt BinOpMod Str %+.3f NameLoad x Assign NameStore dec_txt BinOpMod Str %+.3f NameLoad y Assign TupleStore NameStore ra_lbl NameStore dec_lbl TupleLoad Str X Str Y orelse Assign NameStore args BinOpAdd ListLoad NameLoad data_x NameLoad data_y AttributeLoad NameLoad self attr revnaxis Assign TupleStore NameStore lon_deg NameStore lat_deg Call AttributeLoad AttributeLoad NameLoad self attr wcs attr pixtosystem NameLoad args keyword system NameLoad system keyword coords Str data If CompareEq NameLoad format Str sexagesimal body If CompareIn NameLoad system TupleLoad Str galactic Str ecliptic body Assign TupleStore NameStore sign NameStore deg NameStore min NameStore sec Call AttributeLoad NameLoad wcs attr degToDms NameLoad lon_deg keyword isLatitude NameLoad False Assign NameStore ra_txt BinOpMod Str +%03d:%02d:%06.3f TupleLoad NameLoad deg NameLoad min NameLoad sec orelse Assign TupleStore NameStore deg NameStore min NameStore sec Call AttributeLoad NameLoad wcs attr degToHms NameLoad lon_deg Assign NameStore ra_txt BinOpMod Str %02d:%02d:%06.3f TupleLoad NameLoad deg NameLoad min NameLoad sec Assign TupleStore NameStore sign NameStore deg NameStore min NameStore sec Call AttributeLoad NameLoad wcs attr degToDms NameLoad lat_deg If CompareLt NameLoad sign Num 0 body Assign NameStore sign Str - orelse Assign NameStore sign Str + Assign NameStore dec_txt BinOpMod Str %s%02d:%02d:%06.3f TupleLoad NameLoad sign NameLoad deg NameLoad min NameLoad sec orelse Assign NameStore ra_txt BinOpMod Str %+10.7f NameLoad lon_deg Assign NameStore dec_txt BinOpMod Str %+10.7f NameLoad lat_deg If CompareEq NameLoad system Str galactic body Assign TupleStore NameStore ra_lbl NameStore dec_lbl TupleLoad Str l Str b orelse If CompareEq NameLoad system Str ecliptic body Assign TupleStore NameStore ra_lbl NameStore dec_lbl TupleLoad Call AttributeLoad NameLoad six attr unichr Num 955 Call AttributeLoad NameLoad six attr unichr Num 946 orelse If CompareEq NameLoad system Str helioprojective body Assign NameStore ra_txt BinOpMod Str %+5.3f BinOpMult NameLoad lon_deg Num 3600 Assign NameStore dec_txt BinOpMod Str %+5.3f BinOpMult NameLoad lat_deg Num 3600 Assign TupleStore NameStore ra_lbl NameStore dec_lbl TupleLoad Str x-Solar Str y-Solar handlers ExceptHandler type NameLoad Exception name NameStore e body Expr Call AttributeLoad AttributeLoad NameLoad self attr logger attr warning BinOpMod Str Bad-coordinate-conversion:-%s Call NameLoad str NameLoad e Assign NameStore ra_txt Str BAD-WCS Assign NameStore dec_txt Str BAD-WCS TryExcept body Assign TupleStore NameStore type_ NameStore value_ NameStore tb Call AttributeLoad NameLoad sys attr exc_info Assign NameStore tb_str Call AttributeLoad Str null attr join Call AttributeLoad NameLoad traceback attr format_tb NameLoad tb Expr Call AttributeLoad AttributeLoad NameLoad self attr logger attr error BinOpMod Str Traceback:%s NameLoad tb_str handlers ExceptHandler type NameLoad Exception body Assign NameStore tb_str Str Traceback-information-unavailable. Expr Call AttributeLoad AttributeLoad NameLoad self attr logger attr error NameLoad tb_str Assign NameStore te BinOpSub Call AttributeLoad NameLoad time attr time NameLoad ts Assign NameStore info Call AttributeLoad NameLoad Bunch attr Bunch keyword itype Str astro keyword data_x NameLoad data_x keyword data_y NameLoad data_y keyword x NameLoad data_x keyword y NameLoad data_y keyword ra_txt NameLoad ra_txt keyword dec_txt NameLoad dec_txt keyword ra_lbl NameLoad ra_lbl keyword dec_lbl NameLoad dec_lbl keyword value NameLoad value Return NameLoad info decorator_list decorator_list 
