Module ImportFrom alias alias Import alias ImportFrom alias Import alias identifier ImportFrom alias identifier ImportFrom alias alias alias alias alias ImportFrom alias ImportFrom alias alias alias alias ImportFrom alias alias ImportFrom alias alias ImportFrom alias alias ImportFrom alias FunctionDef arguments args defaults vararg body Expr Str Return Call NameLoad GeneratorExp NameLoad comprehension NameStore NameLoad CompareIsNot NameLoad NameLoad decorator_list FunctionDef arguments args defaults vararg body Expr Str Return Call NameLoad GeneratorExp NameLoad comprehension NameStore NameLoad CompareIsNot NameLoad NameLoad decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Dict Assign SubscriptStore AttributeLoad NameLoad attr Index Str Call NameLoad keyword Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Raise Call NameLoad Str decorator_list NameLoad FunctionDef arguments args NameParam defaults vararg kwarg body Expr Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Str attr Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body If Call AttributeLoad NameLoad attr body Raise Call NameLoad BinOpMod Str NameLoad If CompareIn NameLoad ListLoad Str Str Str body Expr Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Str attr NameLoad NameLoad Return orelse If CompareIn NameLoad ListLoad Str Str body For NameStore AttributeLoad NameLoad attr body Expr Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body If CompareIn NameLoad ListLoad Str Str Str Str Str body Return Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Str NameLoad orelse Return Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Num For NameStore AttributeLoad NameLoad attr body If CompareIsNot AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad attr NameLoad body AugAssignAdd NameStore AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return BinOpPow BinOpDiv Call AttributeLoad NameLoad attr BinOpMult BinOpMult BinOpMult Num NameLoad BinOpPow AttributeLoad NameLoad attr Num NameLoad Num decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str Assign TupleStore NameStore NameStore TupleLoad ListLoad ListLoad For NameStore AttributeLoad NameLoad attr body If CompareIsNot AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad attr NameLoad body If CompareIs NameLoad NameLoad body Raise Call NameLoad Str Assign TupleStore NameStore NameStore Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad attr keyword NameLoad orelse Assign TupleStore NameStore NameStore Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr ListComp Call AttributeLoad NameLoad attr comprehension NameStore NameLoad Assign NameStore Call AttributeLoad NameLoad attr ListComp Call AttributeLoad NameLoad attr comprehension NameStore NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Assign NameStore SubscriptLoad NameLoad Index BinOpBitAnd CompareGtE NameLoad NameLoad CompareLtE NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr For NameStore Call NameLoad Call NameLoad AttributeLoad NameLoad attr body AugAssignAdd NameStore Call NameLoad SubscriptLoad NameLoad Index NameLoad SubscriptLoad NameLoad Index NameLoad NameLoad keyword NameLoad keyword Num Return TupleLoad NameLoad NameLoad decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore NameLoad attr ListLoad Assign AttributeStore NameLoad attr ListLoad Assign AttributeStore NameLoad attr ListLoad Expr Call AttributeLoad NameLoad attr NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults vararg kwarg body Raise Call NameLoad Str decorator_list FunctionDef arguments args NameParam defaults vararg kwarg body Raise Call NameLoad Str decorator_list FunctionDef arguments args NameParam defaults vararg kwarg body Raise Call NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam defaults ListLoad body Expr Str Assign NameStore Call NameLoad Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults Num ListLoad ListLoad body Expr Str Assign NameStore NameLoad For NameStore AttributeLoad NameLoad attr body If CompareIs NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Str Assign NameStore NameLoad If UnaryOpNot NameLoad body Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad For TupleStore NameStore NameStore Call NameLoad NameLoad body Assign NameStore Call NameLoad NameLoad Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr AugAssignMult AttributeStore NameLoad attr BinOpPow BinOpDiv NameLoad NameLoad UnaryOpUSub NameLoad Assign AttributeStore NameLoad attr SubscriptLoad NameLoad Index NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body For NameStore AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr For NameStore AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr For NameStore AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body For TupleStore NameStore NameStore Call NameLoad AttributeLoad NameLoad attr body If CompareGt AttributeLoad NameLoad attr Num body Assign NameStore BinOpMult Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr ListLoad AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call NameLoad BinOpMod Str TupleLoad BinOpAdd NameLoad Num NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr For TupleStore NameStore NameStore Call NameLoad AttributeLoad NameLoad attr body If CompareGt AttributeLoad NameLoad attr Num body If CompareIs AttributeLoad NameLoad attr NameLoad body Raise Call NameLoad BinOpMod Str NameLoad Assign NameStore SubscriptLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Index Num Assign NameStore SubscriptLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Index Num Assign TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword ListLoad NameLoad NameLoad If Call AttributeLoad NameLoad attr CompareGt NameLoad Num body AugAssignAdd NameStore BinOpMult Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad For TupleStore NameStore NameStore Call NameLoad AttributeLoad NameLoad attr body If Call AttributeLoad NameLoad attr body If CompareIs AttributeLoad NameLoad attr NameLoad body Raise Call NameLoad BinOpMod Str NameLoad Assign NameStore SubscriptLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Index Num Assign NameStore SubscriptLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Index Num Assign TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword ListLoad NameLoad NameLoad If Call AttributeLoad NameLoad attr CompareGt NameLoad Num body AugAssignAdd NameStore BinOpMult Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Import alias identifier Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Slice Num Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Num Num Num Expr Call AttributeLoad NameLoad attr BinOpSub BinOpDiv SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Slice Num SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Num Num BinOpSub SubscriptLoad NameLoad Slice Num SubscriptLoad NameLoad Slice Num keyword Str Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body If BoolOpAnd CompareEq Call NameLoad AttributeLoad NameLoad attr Num CompareEq Call NameLoad AttributeLoad NameLoad attr Num CompareEq Call NameLoad AttributeLoad NameLoad attr Num body Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr orelse Assign NameStore BinOpAdd BinOpAdd ListComp AttributeLoad NameLoad attr comprehension NameStore AttributeLoad NameLoad attr ListComp AttributeLoad NameLoad attr comprehension NameStore AttributeLoad NameLoad attr ListComp AttributeLoad NameLoad attr comprehension NameStore AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad Assign NameStore ListLoad AttributeLoad AttributeLoad NameLoad attr attr AugAssignAdd NameStore BinOpAdd BinOpAdd ListComp AttributeLoad NameLoad attr comprehension NameStore AttributeLoad NameLoad attr ListComp AttributeLoad NameLoad attr comprehension NameStore AttributeLoad NameLoad attr ListComp AttributeLoad NameLoad attr comprehension NameStore AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad If CompareGtE NameLoad NameLoad body Return TupleLoad NameLoad NameLoad orelse Return TupleLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad Num body Expr Str Assign AttributeStore NameLoad attr Dict Str Str Str Str Str Str Str Str Str Str NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad Num body Expr Str Assign AttributeStore NameLoad attr Dict Str Str Str Str Str Str Str NameLoad NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad Num body If CompareIs AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Raise Call NameLoad Str If CompareIs NameLoad Str body Assign TupleStore NameStore NameStore NameStore TupleLoad NameLoad NameLoad NameLoad orelse If CompareIs NameLoad Str body Assign TupleStore NameStore NameStore NameStore TupleLoad NameLoad NameLoad NameLoad orelse Raise Call NameLoad BinOpMod Str NameLoad If CompareIs NameLoad NameLoad body If BoolOpAnd CompareEq Call NameLoad AttributeLoad NameLoad attr Num CompareEq Call NameLoad AttributeLoad NameLoad attr Num body Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr orelse Assign NameStore BinOpAdd BinOpAdd ListComp AttributeLoad NameLoad attr comprehension NameStore AttributeLoad NameLoad attr ListComp AttributeLoad NameLoad attr comprehension NameStore AttributeLoad NameLoad attr ListComp AttributeLoad NameLoad attr comprehension NameStore AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad If CompareIs NameLoad NameLoad body Assign NameStore ListLoad BinOpMult Num AttributeLoad AttributeLoad NameLoad attr attr AugAssignAdd NameStore BinOpAdd BinOpAdd ListComp AttributeLoad NameLoad attr comprehension NameStore AttributeLoad NameLoad attr ListComp AttributeLoad NameLoad attr comprehension NameStore AttributeLoad NameLoad attr ListComp AttributeLoad NameLoad attr comprehension NameStore AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad If CompareLt NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Str Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore BinOpMult Num AttributeLoad AttributeLoad NameLoad attr attr If Call AttributeLoad NameLoad attr NameLoad body Raise Call NameLoad Str If Call AttributeLoad NameLoad attr NameLoad body Raise Call NameLoad Str If CompareEq NameLoad Num body Raise Call NameLoad BinOpMod Str NameLoad Assign NameStore ListLoad BinOpDiv AttributeLoad AttributeLoad NameLoad attr attr Num NameLoad Assign NameStore BinOpAdd BinOpMult Call AttributeLoad NameLoad attr Num Call AttributeLoad NameLoad attr BinOpDiv BinOpSub NameLoad NameLoad NameLoad Num NameLoad NameLoad Assign SubscriptStore NameLoad Index Num NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore BinOpMult NameLoad BinOpSub BinOpPow BinOpDiv NameLoad NameLoad BinOpDiv Num NameLoad Num If CompareLtE SubscriptLoad NameLoad Index Num Num body Assign NameStore BinOpSub NameLoad NameLoad orelse Assign NameStore BinOpSub Call AttributeLoad NameLoad attr Num NameLoad NameLoad NameLoad Assign NameStore Call NameLoad NameLoad NameLoad If CompareGt BinOpMult NameLoad BinOpAdd Num NameLoad BinOpAdd NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad Assign NameStore BinOpMult NameLoad NameLoad Assign NameStore BinOpAdd BinOpMult Call AttributeLoad NameLoad attr ListLoad Num Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr BinOpDiv NameLoad NameLoad Call AttributeLoad NameLoad attr BinOpDiv BinOpSub NameLoad NameLoad NameLoad BinOpSub NameLoad Num NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr ListLoad Num NameLoad If CompareIs NameLoad Str body Assign NameStore Call AttributeLoad NameLoad attr Num NameLoad BinOpAdd NameLoad Num Assign NameStore BinOpAdd NameLoad BinOpDiv Call AttributeLoad NameLoad attr BinOpMult Num NameLoad Num orelse If CompareIs NameLoad Str body If UnaryOpNot NameLoad body Assign NameStore NameLoad If BoolOpAnd CompareIs NameLoad NameLoad CompareGt Call NameLoad AttributeLoad NameLoad attr Num body Assign NameStore AttributeLoad NameLoad attr For NameStore AttributeLoad NameLoad attr body Assign NameStore Call NameLoad NameLoad Call AttributeLoad NameLoad attr NameLoad If CompareIsNot NameLoad NameLoad body If CompareEq BinOpMod NameLoad Num Num body Assign NameStore BinOpDiv NameLoad Num Assign NameStore Call AttributeLoad NameLoad attr BinOpMult NameLoad Num BinOpMult NameLoad Num Num Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr NameLoad BinOpSub NameLoad Num Assign NameStore Call AttributeLoad NameLoad attr ListLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr ListLoad UnaryOpUSub SubscriptLoad NameLoad Slice Num NameLoad orelse Assign NameStore BinOpDiv BinOpSub NameLoad Num Num Assign NameStore Call AttributeLoad NameLoad attr BinOpMult NameLoad Num BinOpMult NameLoad Num Num Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr NameLoad BinOpSub NameLoad Num Assign NameStore Call AttributeLoad NameLoad attr ListLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr ListLoad UnaryOpUSub SubscriptLoad NameLoad Slice Num Num NameLoad orelse Assign NameStore Call AttributeLoad NameLoad attr UnaryOpUSub NameLoad NameLoad BinOpAdd NameLoad Num Assign NameStore Call AttributeLoad NameLoad attr Num BinOpMult Num NameLoad BinOpAdd NameLoad Num If CompareIs NameLoad Str body Return Call NameLoad NameLoad NameLoad NameLoad orelse Return Call NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults Num Num body Expr Str Assign NameStore AttributeLoad SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Str attr If CompareIs AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Raise Call NameLoad Str Assign NameStore BinOpMult BinOpMult BinOpMult NameLoad AttributeLoad AttributeLoad NameLoad attr attr NameLoad BinOpSub BinOpDiv Num AttributeLoad AttributeLoad NameLoad attr attr BinOpDiv Num NameLoad Assign NameStore BinOpDiv BinOpDiv BinOpMult Num NameLoad NameLoad NameLoad Assign NameStore BinOpPow BinOpDiv NameLoad BinOpMult BinOpMult BinOpMult Num NameLoad BinOpPow AttributeLoad AttributeLoad NameLoad attr attr Num NameLoad Num Assign NameStore BinOpMult NameLoad BinOpPow BinOpAdd Num NameLoad Num Assign SubscriptStore AttributeLoad AttributeLoad NameLoad attr attr Index Str Call NameLoad keyword Str keyword AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Str attr BinOpAdd BinOpDiv NameLoad Num BinOpMult NameLoad NameLoad Assign AttributeStore SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Str attr NameLoad Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr NameLoad Num Slice Num Assign NameStore BinOpDiv BinOpMult NameLoad Num NameLoad Assign NameStore Call AttributeLoad NameLoad attr Num AttributeLoad NameLoad attr Assign SubscriptStore AttributeLoad AttributeLoad NameLoad attr attr Index Str Call NameLoad keyword Str keyword AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Str attr BinOpDiv NameLoad Num Assign AttributeStore SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Str attr TupleLoad NameLoad NameLoad AugAssignMult AttributeStore SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Str attr BinOpSub Num NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str If CompareIs AttributeLoad NameLoad attr NameLoad body Raise Call NameLoad Str Assign NameStore Call NameLoad If Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr orelse Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr For TupleStore NameStore NameStore Call NameLoad AttributeLoad NameLoad attr body If CompareGtE AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Str orelse If CompareEq AttributeLoad NameLoad attr Num body Expr Call AttributeLoad NameLoad attr Str orelse If UnaryOpNot AttributeLoad NameLoad attr body Raise Call NameLoad BinOpMod Str BinOpAdd NameLoad Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword NameLoad For TupleStore NameStore NameStore Call NameLoad AttributeLoad NameLoad attr body If CompareGtE AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Str orelse If BoolOpAnd Call NameLoad NameLoad NameLoad CompareEq AttributeLoad NameLoad attr Num body Expr Call AttributeLoad NameLoad attr Str orelse If BoolOpAnd Call NameLoad NameLoad NameLoad CompareEq AttributeLoad NameLoad attr Num body Expr Call AttributeLoad NameLoad attr Str orelse If UnaryOpNot AttributeLoad NameLoad attr body Raise Call NameLoad Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword NameLoad If CompareIsNot AttributeLoad NameLoad attr NameLoad body If CompareEq AttributeLoad AttributeLoad NameLoad attr attr Num body Expr Call AttributeLoad NameLoad attr Str orelse If CompareEq AttributeLoad AttributeLoad NameLoad attr attr Num body Expr Call AttributeLoad NameLoad attr Str orelse If UnaryOpNot AttributeLoad AttributeLoad NameLoad attr attr body Raise Call NameLoad Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad For TupleStore NameStore NameStore Call NameLoad AttributeLoad NameLoad attr body If CompareEq AttributeLoad NameLoad attr Num body Expr Call AttributeLoad NameLoad attr Str orelse If UnaryOpNot AttributeLoad NameLoad attr body Raise Call NameLoad Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword NameLoad If CompareGt AttributeLoad SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Str attr Num body If CompareNotIn SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Str AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Str If BoolOpAnd CompareIn Str AttributeLoad AttributeLoad NameLoad attr attr CompareGt AttributeLoad SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Str attr Num body If CompareNotIn SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Str AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Str If BoolOpAnd CompareIn Str AttributeLoad AttributeLoad NameLoad attr attr CompareGt AttributeLoad SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Str attr Num body If CompareNotIn SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Str AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Str For TupleStore NameStore NameStore Call NameLoad AttributeLoad NameLoad attr body If Call NameLoad NameLoad NameLoad body If CompareGtE AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Str orelse If CompareEq AttributeLoad NameLoad attr Num body Expr Call AttributeLoad NameLoad attr Str orelse If CompareEq AttributeLoad NameLoad attr Num body Expr Call AttributeLoad NameLoad attr Str orelse Expr Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword BinOpMod Str NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad body Expr Str Assign AttributeStore NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad decorator_list decorator_list
N/A __future__ print_function division N/A collections copy deepcopy N/A numpy np astropy log logger densities FlaredDisk AlphaDisk PowerLawEnvelope UlrichEnvelope AmbientMedium util.interpolate interp1d_fast_loglog util.constants pi sigma c G sources SphericalSource SpotSource util.functions FreezableClass virtual_file grid SphericalPolarGrid CylindricalPolarGrid N/A Model _min_none N/A N/A N/A args N/A N/A Minimum of several arguments, ignoring None values N/A N/A min N/A x N/A x args N/A x None N/A _max_none N/A N/A N/A args N/A N/A Maximum of several arguments, ignoring None values N/A N/A max N/A x N/A x args N/A x None N/A Star N/A FreezableClass N/A __init__ N/A N/A self N/A N/A N/A N/A self sources N/A N/A N/A N/A self sources N/A star N/A SphericalSource name star N/A N/A self mass None N/A N/A self radius None N/A N/A self limb False N/A N/A N/A self _freeze N/A read N/A N/A self filename N/A N/A N/A N/A Exception Can only call ``read`` for Model, not AnalyticalYSOModel N/A classmethod add_spot N/A N/A self N/A args kwargs N/A N/A N/A N/A N/A N/A self sources N/A star add_spot N/A SpotSource args kwargs N/A __setattr__ N/A N/A self attribute value N/A N/A N/A N/A N/A self isfinal N/A N/A N/A Exception N/A Attribute %s can no longer be changed attribute N/A N/A attribute N/A luminosity temperature spectrum N/A N/A N/A N/A N/A N/A self sources N/A star __setattr__ attribute value N/A N/A N/A N/A attribute N/A radius limb N/A N/A source N/A self sources N/A N/A N/A N/A N/A N/A self sources N/A source __setattr__ attribute value N/A N/A N/A FreezableClass __setattr__ self attribute value N/A __getattr__ N/A N/A self attribute N/A N/A N/A N/A attribute N/A luminosity temperature spectrum radius limb N/A N/A N/A getattr N/A N/A self sources N/A star attribute N/A N/A N/A N/A FreezableClass __getattr__ self attribute N/A total_luminosity N/A N/A self N/A N/A N/A Return the total luminosity of the star, including accretion N/A ltot 0.0 N/A source N/A self sources N/A N/A N/A N/A N/A N/A self sources N/A source luminosity None N/A N/A ltot N/A N/A N/A self sources N/A source luminosity N/A ltot N/A effective_temperature N/A N/A self N/A N/A N/A Return the effective temperature of the star, including accretion N/A N/A N/A N/A N/A self total_luminosity N/A N/A N/A 4.0 pi N/A N/A self radius 2.0 sigma 0.25 N/A total_spectrum N/A N/A self bnu_range N/A None N/A N/A 
        Return the total spectrum of the star, including accretion

        Parameters
        ----------
        bnu_range : tuple
            Range of frequencies to cover for sources that have Planck spectra
         N/A N/A nu_all fnu_all N/A N/A N/A N/A source N/A self sources N/A N/A N/A N/A N/A N/A self sources N/A source temperature None N/A N/A N/A bnu_range None N/A N/A N/A ValueError bnu_range is needed for sources with Planck spectra N/A N/A nu fnu N/A N/A N/A N/A self sources N/A source get_spectrum nu_range bnu_range N/A N/A N/A nu fnu N/A N/A N/A N/A self sources N/A source get_spectrum N/A N/A N/A nu_all append nu N/A N/A N/A fnu_all append fnu N/A nu_min N/A N/A np min N/A N/A N/A nu min N/A nu nu_all N/A nu_max N/A N/A np max N/A N/A N/A nu max N/A nu nu_all N/A nu_common N/A N/A np unique N/A N/A np sort N/A N/A np hstack nu_all N/A nu_common N/A nu_common N/A N/A N/A nu_common nu_min N/A nu_common nu_max N/A fnu_total N/A N/A np zeros N/A nu_common shape N/A i N/A range N/A len N/A self sources N/A N/A fnu_total N/A interp1d_fast_loglog N/A nu_all N/A i N/A fnu_all N/A i nu_common bounds_error False fill_value 0.0 N/A N/A nu_common fnu_total N/A N/A AnalyticalYSOModel N/A Model N/A __init__ N/A N/A self name N/A None N/A N/A Initialize an analytical YSO model N/A N/A self star N/A Star N/A N/A self disks N/A N/A N/A self envelopes N/A N/A N/A self ambients N/A N/A N/A N/A Model __init__ self name name N/A add_density_grid N/A N/A self N/A args kwargs N/A N/A N/A NotImplementedError add_density_grid cannot be used for AnalyticalYSOModel N/A use_quantities N/A N/A self N/A args kwargs N/A N/A N/A NotImplementedError use_quantities cannot be used for AnalyticalYSOModel N/A use_geometry N/A N/A self N/A args kwargs N/A N/A N/A NotImplementedError use_geometry cannot be used for AnalyticalYSOModel N/A add_ambient_medium N/A N/A self subtract N/A N/A N/A N/A 
        Add an ambient density medium to the model

        Parameters
        ----------
        subtract : list
            Components to subtract from the ambient density medium (see
            notes below).

        Returns
        -------
        ambient : :class:`~hyperion.densities.AmbientMedium`
            An :class:`~hyperion.densities.AmbientMedium` instance.

        Examples
        --------

        To add an ambient medium to the model, you can do::

            >>> ambient = m.add_ambient_medium()

        then set the ambient medium properties using e.g.::

            >>> from hyperion.util.constants import au, pc
            >>> ambient.rho = 1.e-20  # cgs
            >>> ambient.rmin = 0.1 * au  # cm
            >>> ambient.rmax = pc  # cm

        See the :class:`~hyperion.densities.AmbientMedium` documentation
        to see which parameters can be set.

        Notes
        -----

        By default, the ambient medium simply adds a constant density ``rho`` of
        dust to the whole model between the inner and outer radius. However, it
        is possible to pass components that should be subtracted from the
        constant density using the ``subtract=`` argument. In the following
        example::

            >>> e = m.add_power_law_envelope()
            >>> m.add_ambient_medium(subtract=[e])

        the ambient medium does not simply add a constant density ``rho`` of
        dust everywhere, but it adds dust such that the density never falls
        below ``rho`` between ``rmin`` and ``rmax`` - that is, it subtracts the
        density of component ``e`` from the ``rho``, with a minimum of zero. In
        regions where the density of component of ``e`` is larger than ``rho``,
        no dust is added.
         N/A ambient N/A AmbientMedium N/A N/A ambient star N/A self star N/A N/A ambient subtract subtract N/A N/A N/A N/A self ambients append ambient N/A ambient N/A add_flared_disk N/A N/A self N/A N/A N/A 
        Add a flared disk to the model

        Returns
        -------
        disk : :class:`~hyperion.densities.FlaredDisk`
            A :class:`~hyperion.densities.FlaredDisk` instance.

        Examples
        --------

        To add a flared disk to the model, you can do::

            >>> disk = m.add_flared_disk()

        then set the disk properties using e.g.::

            >>> disk.mass = 1.e30  # g
            >>> disk.rmin = 1e10  # cm
            >>> disk.rmax = 1e14  # cm

        See the :class:`~hyperion.densities.FlaredDisk` documentation
        to see which parameters can be set.
         N/A disk N/A FlaredDisk N/A N/A disk star N/A self star N/A N/A N/A N/A self disks append disk N/A disk N/A add_alpha_disk N/A N/A self N/A N/A N/A 
        Add an alpha disk to the geometry

        This is similar to a flared disk, but with accretion luminosity. See
        :class:`~hyperion.densities.AlphaDisk` for more details.

        Returns
        -------
        disk : :class:`~hyperion.densities.AlphaDisk`
            A :class:`~hyperion.densities.AlphaDisk` instance.

        Examples
        --------

        To add an alpha disk to the model, you can do::

            >>> disk = m.add_alpha_disk()

        then set the disk properties using e.g.::

            >>> disk.mass = 1.e30  # g
            >>> disk.rmin = 1e10  # cm
            >>> disk.rmax = 1e14  # cm

        See the :class:`~hyperion.densities.AlphaDisk` documentation
        to see which parameters can be set.
         N/A disk N/A AlphaDisk N/A N/A disk star N/A self star N/A N/A N/A N/A self disks append disk N/A disk N/A add_settled_disks N/A N/A self reference_disk reference_size eta sizes dust_files N/A 0.0 N/A N/A N/A N/A 
        Automatically create disks with varying degrees of settling

        .. warning:: this function is still experimental, and will be documented once stable
         N/A exists False N/A disk N/A self disks N/A N/A N/A disk reference_disk N/A N/A N/A N/A logger warn Reference disk already exists, not re-adding N/A exists True N/A N/A exists N/A N/A N/A N/A logger warn Reference disk does not exist, adding N/A N/A N/A N/A self disks append reference_disk N/A N/A i size N/A enumerate sizes N/A N/A disk N/A deepcopy reference_disk N/A N/A disk star N/A self star N/A N/A disk h_0 N/A N/A size reference_size N/A eta N/A N/A disk dust N/A dust_files N/A i N/A N/A N/A N/A self disks append disk N/A add_ulrich_envelope N/A N/A self N/A N/A N/A 
        Add an infalling rotationally flatted envelope to the model

        Returns
        -------
        env : :class:`~hyperion.densities.UlrichEnvelope`
            An :class:`~hyperion.densities.UlrichEnvelope` instance.

        Examples
        --------

        To add an infalling envelope to the model, you can do::

            >>> env = m.add_ulrich_envelope()

        then set the envelope properties using e.g.::

            >>> from hyperion.util.constants import msun, yr, au
            >>> env.mdot = 1.e-6 * msun / yr  # g/s
            >>> env.rmin = 0.1 * au  # cm
            >>> env.rmax = 10000. * au  # cm

        See the :class:`~hyperion.densities.UlrichEnvelope` documentation
        to see which parameters can be set.
         N/A envelope N/A UlrichEnvelope N/A N/A envelope star N/A self star N/A N/A N/A N/A self envelopes append envelope N/A envelope N/A add_power_law_envelope N/A N/A self N/A N/A N/A 
        Add a spherically symmetric power-law envelope to the model

        Returns
        -------
        env : :class:`~hyperion.densities.PowerLawEnvelope`
            A :class:`~hyperion.densities.PowerLawEnvelope` instance.

        Examples
        --------

        To add a power-law envelope to the model, you can do::

            >>> env = m.add_power_law_envelope()

        then set the envelope properties using e.g.::

            >>> from hyperion.util.constants import msun, au
            >>> env.mass = 0.1 * msun  # g/s
            >>> env.rmin = 0.1 * au  # cm
            >>> env.rmax = 10000. * au  # cm

        See the :class:`~hyperion.densities.PowerLawEnvelope` documentation
        to see which parameters can be set.
         N/A envelope N/A PowerLawEnvelope N/A N/A envelope star N/A self star N/A N/A N/A N/A self envelopes append envelope N/A envelope N/A _check_all_set N/A N/A self N/A N/A N/A disk N/A self disks N/A N/A N/A N/A disk _check_all_set N/A envelope N/A self envelopes N/A N/A N/A N/A envelope _check_all_set N/A ambient N/A self ambients N/A N/A N/A N/A ambient _check_all_set N/A print_midplane_tau N/A N/A self wavelength N/A N/A N/A N/A i disk N/A enumerate N/A self disks N/A N/A N/A N/A disk mass 0.0 N/A N/A tau N/A N/A N/A disk midplane_cumulative_density N/A N/A np array N/A N/A disk rmax N/A N/A N/A disk dust interp_chi_wav wavelength N/A N/A print N/A Disk %i: %.5e N/A N/A i 1 tau N/A get_midplane_tau N/A N/A self r N/A N/A N/A N/A N/A self _check_all_set N/A tau_midplane N/A N/A np zeros N/A r shape N/A N/A i disk N/A enumerate N/A self disks N/A N/A N/A N/A disk mass 0.0 N/A N/A N/A N/A disk dust None N/A N/A N/A Exception N/A Disk %i dust not set i N/A nu_min N/A N/A N/A N/A disk dust optical_properties nu N/A 0 N/A nu_max N/A N/A N/A N/A disk dust optical_properties nu N/A -1 N/A N/A nu fnu N/A N/A N/A self star total_spectrum bnu_range N/A nu_min nu_max N/A N/A N/A np any N/A fnu 0.0 N/A N/A tau_midplane N/A N/A N/A disk midplane_cumulative_density r N/A N/A N/A disk dust chi_nu_spectrum nu fnu N/A N/A i envelope N/A enumerate N/A self envelopes N/A N/A N/A N/A envelope exists N/A N/A N/A N/A envelope dust None N/A N/A N/A Exception N/A envelope %i dust not set i N/A nu_min N/A N/A N/A N/A envelope dust optical_properties nu N/A 0 N/A nu_max N/A N/A N/A N/A envelope dust optical_properties nu N/A -1 N/A N/A nu fnu N/A N/A N/A self star total_spectrum bnu_range N/A nu_min nu_max N/A N/A N/A np any N/A fnu 0.0 N/A N/A tau_midplane N/A N/A N/A envelope midplane_cumulative_density r N/A N/A N/A envelope dust chi_nu_spectrum nu fnu N/A tau_midplane N/A plot_midplane_tau N/A N/A self filename N/A N/A N/A matplotlib.pyplot plt N/A tau_midplane N/A N/A self get_midplane_tau N/A N/A N/A self grid r_wall N/A 1 N/A fig N/A N/A plt figure N/A ax N/A N/A fig add_subplot 1 1 1 N/A N/A N/A ax loglog N/A N/A N/A N/A N/A self grid r N/A 1 N/A N/A N/A self grid r N/A 1 1.0 N/A N/A tau_midplane N/A 1 N/A tau_midplane N/A -1 drawstyle steps-mid N/A N/A N/A fig savefig filename N/A radial_range N/A N/A self N/A N/A N/A N/A N/A N/A len N/A self disks 0 N/A N/A len N/A self envelopes 0 N/A N/A len N/A self ambients 0 N/A N/A rmin N/A N/A self star radius N/A N/A rmin_values N/A N/A N/A N/A disk rmin N/A disk N/A self disks N/A N/A envelope rmin N/A envelope N/A self envelopes N/A N/A ambient rmin N/A ambient N/A self ambients N/A rmin N/A _min_none rmin_values N/A rmax_values N/A N/A N/A self star radius N/A rmax_values N/A N/A N/A N/A disk rmax N/A disk N/A self disks N/A N/A envelope rmax N/A envelope N/A self envelopes N/A N/A ambient rmax N/A ambient N/A self ambients N/A rmax N/A _max_none rmax_values N/A N/A rmax rmin N/A N/A N/A rmin rmax N/A N/A N/A N/A N/A self star radius N/A N/A self star radius N/A set_cylindrical_polar_grid_auto N/A N/A self n_w n_z n_phi wmin wmax zmin zmax min_spacing N/A None None None None 1e-08 N/A N/A 
        Set the grid to be cylindrical polar with automated resolution.

        Parameters
        ----------
        n_w, n_z, n_phi : int
            Number of cells to use in the radial, vertical, and azimuthal
            directions.
        wmax : float, optional
            The maximum radius to extend out to. If not specified, this is
            set to the maximum  cylindrical radius of the dust geometry in the
            mid-plane.
        zmax : float, optional
            The maximum height above and below the midplane to extend to. If
            not specified, this is set to the maximum cylindrical radius of
            the dust geometry.
        min_spacing : float, optional
            The minimum spacing (in relative terms) for the inner cell walls.
            The spacing from rmin to the next cell wall cannot be smaller than
            rmin * (1 + min_spacing).
         N/A N/A self grid N/A grid_type n1 n2 n3 rmin rmax zmin zmax min_spacing cylindrical n_w n_z n_phi wmin wmax zmin zmax min_spacing N/A set_spherical_polar_grid_auto N/A N/A self n_r n_theta n_phi rmax min_spacing N/A None 1e-08 N/A N/A 
        Set the grid to be spherical polar with automated resolution.

        Parameters
        ----------
        n_r, n_theta, n_phi : int
            Number of cells to use in the radial, theta, and azimuthal
            directions.
        rmax : float, optional
            The maximum radius to extend out to. If not specified, this is
            set to the maximum spherical radius of the dust geometry in the
            mid-plane. Note that if you are including a disk with a
            cylindrical outer edge, this should be set to a value larger
            than the disk radius, otherwise the disk will be truncated with
            a spherical edge.
        min_spacing : float, optional
            The minimum spacing (in relative terms) for the inner cell walls.
            The spacing from rmin to the next cell wall cannot be smaller than
            rmin * (1 + min_spacing).
         N/A N/A self grid N/A grid_type n1 n2 n3 rmax min_spacing spherical n_r n_theta n_phi rmax min_spacing N/A _set_polar_grid_auto N/A N/A self n1 n2 n3 grid_type zmin zmax rmin rmax min_spacing N/A None None None None None None None None 1e-08 N/A N/A N/A N/A N/A self star radius None N/A N/A N/A Exception The central source radius need to be defined before the grid can be set up N/A N/A grid_type spherical N/A N/A N/A n_r n_theta n_phi N/A n1 n2 n3 N/A N/A N/A grid_type cylindrical N/A N/A N/A n_r n_z n_phi N/A n1 n2 n3 N/A N/A N/A Exception N/A Unknown grid type: %s grid_type N/A N/A rmin None N/A N/A N/A N/A N/A len N/A self disks 0 N/A N/A len N/A self envelopes 0 N/A N/A rmin N/A N/A self star radius N/A N/A rmin_values N/A N/A N/A N/A disk rmin N/A disk N/A self disks N/A N/A envelope rmin N/A envelope N/A self envelopes N/A N/A ambient rmin N/A ambient N/A self ambients N/A rmin N/A _min_none rmin_values N/A N/A rmax None N/A N/A rmax_values N/A N/A 2.0 N/A N/A self star radius N/A rmax_values N/A N/A N/A N/A disk rmax N/A disk N/A self disks N/A N/A envelope rmax N/A envelope N/A self envelopes N/A N/A ambient rmax N/A ambient N/A self ambients N/A rmax N/A _max_none rmax_values N/A N/A rmax rmin N/A N/A N/A N/A logger warn Grid rmax < rmin, model will consist only of central star N/A rmin N/A N/A self star radius N/A rmax N/A 2.0 N/A N/A self star radius N/A N/A N/A np isnan rmin N/A N/A N/A Exception R_min is NaN N/A N/A N/A np isnan rmax N/A N/A N/A Exception R_max is NaN N/A N/A rmin 0 N/A N/A N/A ValueError N/A R_min is 0, so cannot set up the grid cell walls automatically. Use set_%s_polar_grid() instead to specify the cell wall positions. grid_type N/A r_wall N/A N/A N/A N/A self star radius 2.0 rmin N/A r N/A N/A N/A N/A np logspace -20.0 N/A N/A np log10 N/A N/A rmax rmin rmin 100000 rmin rmin N/A N/A r N/A 0 rmin N/A tau_midplane N/A N/A self get_midplane_tau r N/A r_next_real N/A rmin N/A N/A N/A rmax rmin N/A 1.0 n_r 1.0 N/A N/A N/A tau_midplane N/A -1 0.1 N/A N/A r_next_tau N/A rmax rmin N/A N/A r_next_tau N/A N/A N/A np interp 0.1 tau_midplane r rmin N/A rnext N/A min r_next_real r_next_tau N/A N/A N/A rmin N/A 1.0 min_spacing N/A rnext rmin N/A N/A N/A N/A logger warn N/A N/A Spacing of inner radial cells is too small, resetting to {0} format min_spacing N/A rnext N/A rmin min_spacing N/A r_wall N/A N/A N/A N/A np hstack N/A 0.0 N/A N/A np logspace N/A N/A np log10 N/A rnext rmin N/A N/A np log10 N/A N/A rmax rmin rmin N/A n_r 1 rmin rmin N/A r_wall N/A N/A np hstack N/A 0.0 r_wall N/A N/A grid_type spherical N/A N/A t_wall N/A N/A np linspace 0 pi N/A n_theta 1 N/A t_wall N/A t_wall N/A N/A N/A np sin N/A 2 t_wall 6.0 N/A N/A N/A grid_type cylindrical N/A N/A N/A zmax N/A N/A zmax rmax N/A N/A N/A zmin None N/A N/A len N/A self disks 0 N/A N/A zmin N/A np inf N/A disk N/A self disks N/A N/A zmin N/A min zmin N/A N/A disk scale_height_at rmin N/A N/A zmin None N/A N/A N/A N/A n_z 2 0 N/A N/A n_zn N/A n_z 2 N/A z_wall1 N/A N/A np linspace N/A zmin 0.1 N/A zmin 0.9 10 N/A z_wall2 N/A N/A np logspace N/A N/A np log10 zmin N/A N/A np log10 zmax N/A n_zn 10 N/A z_wall N/A N/A np hstack N/A z_wall1 z_wall2 N/A z_wall N/A N/A np hstack N/A N/A N/A z_wall N/A -1 z_wall N/A N/A n_zn N/A N/A n_z 1 2 N/A z_wall1 N/A N/A np linspace N/A zmin 0.1 N/A zmin 0.9 10 N/A z_wall2 N/A N/A np logspace N/A N/A np log10 zmin N/A N/A np log10 zmax N/A n_zn 10 N/A z_wall N/A N/A np hstack N/A z_wall1 z_wall2 N/A z_wall N/A N/A np hstack N/A N/A N/A z_wall N/A -1 0.0 z_wall N/A N/A z_wall N/A N/A np linspace N/A zmax zmax N/A n_z 1 N/A p_wall N/A N/A np linspace 0.0 N/A 2.0 pi N/A n_phi 1 N/A N/A grid_type spherical N/A N/A N/A SphericalPolarGrid r_wall t_wall p_wall N/A N/A N/A CylindricalPolarGrid r_wall z_wall p_wall N/A setup_magnetospheric_accretion N/A N/A self mdot rtrunc fspot xwav_min xwav_max N/A 0.001 0.01 N/A N/A 
        Set up the model for magnetospheric accretion

        Parameters
        ----------
        mdot : float
            The accretion rate onto the star in cgs
        rtrunc : float
            The magnetospheric truncation radius of the disk in cgs
        fspot : float
            The spot coverage fraction. Photons will be emitted uniformly from
            the star, the coverage fraction ``fspot`` will determine the
            spectrum of the hot spot emission (smaller covering fractions will
            lead to a hotter spectrum).

        Notes
        -----
        This method only takes into account the hot spot and X-ray emission
        from the stellar surface. To simulate the viscous accretion luminosity
        in the disk, add an :class:`~hyperion.densities.AlphaDisk` to the
        model using :meth:`~hyperion.model.AnalyticalYSOModel.add_alpha_disk`
        and set the accretion rate or luminosity accordingly.
         N/A lstar N/A N/A N/A N/A self star sources N/A star luminosity N/A N/A N/A N/A self star mass None N/A N/A N/A Exception Stellar mass is not set N/A lshock N/A N/A N/A G N/A N/A self star mass mdot N/A N/A 1 N/A N/A self star radius N/A 1 rtrunc N/A fluxratio N/A N/A N/A 0.5 lshock lstar fspot N/A teff N/A N/A lstar N/A N/A N/A 4.0 pi N/A N/A N/A self star radius 2 sigma 0.25 N/A tshock N/A teff N/A N/A 1 fluxratio 0.25 N/A N/A N/A N/A self star sources N/A uv N/A SphericalSource name uv radius N/A N/A self star radius N/A N/A N/A N/A N/A self star sources N/A uv luminosity N/A N/A lshock 2.0 N/A lstar fspot N/A N/A N/A N/A N/A self star sources N/A uv temperature tshock N/A wav N/A N/A N/A np logspace N/A N/A np log10 xwav_min N/A N/A np log10 xwav_max 100 N/A -1 N/A nu N/A N/A c 10000.0 wav N/A fnu N/A N/A np repeat 1.0 N/A nu shape N/A N/A N/A N/A self star sources N/A xray N/A SphericalSource name xray radius N/A N/A self star radius N/A N/A N/A N/A N/A self star sources N/A xray luminosity N/A lshock 2.0 N/A N/A N/A N/A N/A self star sources N/A xray spectrum N/A nu fnu N/A N/A N/A N/A N/A self star sources N/A star luminosity N/A 1 fspot N/A to_model N/A N/A self merge_if_possible N/A True N/A N/A 
        Returns a Model instance of the current model

        The AnalyticalYSOModel class is dynamic in the sense that one can
        change the parameters relating to the density structure at any time.
        This method computes the Model instance corresponding to the current
        density structure and computes the optimal grid.

        Parameters
        ----------
        merge_if_possible : bool
            Whether to merge density arrays that have the same dust type
         N/A N/A N/A self grid None N/A N/A N/A Exception The coordinate grid needs to be defined N/A m N/A Model N/A N/A isinstance N/A self grid N/A collections Mapping N/A N/A N/A m grid N/A N/A self _set_polar_grid_auto N/A self grid N/A N/A N/A m grid N/A deepcopy N/A self grid N/A N/A m name N/A self name N/A N/A m conf N/A deepcopy N/A self conf N/A N/A m sources N/A deepcopy N/A self sources N/A N/A m binned_output N/A deepcopy N/A self binned_output N/A N/A m peeled_output N/A deepcopy N/A self peeled_output N/A N/A m _minimum_temperature N/A deepcopy N/A self _minimum_temperature N/A N/A m _minimum_specific_energy N/A deepcopy N/A self _minimum_specific_energy N/A N/A m _monochromatic N/A self _monochromatic N/A N/A m _frequencies N/A self _frequencies N/A g N/A virtual_file N/A N/A N/A self write_run_conf g N/A N/A N/A m read_run_conf g N/A N/A N/A g close N/A N/A i disk N/A enumerate N/A self disks N/A N/A N/A N/A disk rmin N/A disk rmax N/A N/A N/A N/A logger warn Disk rmin >= rmax, ignoring density contribution N/A N/A N/A N/A disk mass 0.0 N/A N/A N/A N/A logger warn Disk mass is zero, ignoring density contribution N/A N/A N/A N/A disk dust N/A N/A N/A Exception N/A Disk %i dust not set N/A i 1 N/A N/A N/A m add_density_grid N/A N/A disk density N/A m grid N/A disk dust merge_if_possible merge_if_possible N/A N/A i envelope N/A enumerate N/A self envelopes N/A N/A N/A N/A envelope rmin N/A envelope rmax N/A N/A N/A N/A logger warn Envelope rmin >= rmax, ignoring density contribution N/A N/A N/A N/A isinstance envelope UlrichEnvelope N/A N/A envelope rho_0 0.0 N/A N/A N/A N/A logger warn Ulrich envelope has zero density everywhere, ignoring density contribution N/A N/A N/A N/A isinstance envelope PowerLawEnvelope N/A N/A envelope mass 0.0 N/A N/A N/A N/A logger warn Power-law envelope has zero density everywhere, ignoring density contribution N/A N/A N/A N/A envelope dust N/A N/A N/A Exception Envelope dust not set N/A N/A N/A m add_density_grid N/A N/A envelope density N/A m grid N/A envelope dust merge_if_possible merge_if_possible N/A N/A N/A envelope cavity None N/A N/A N/A N/A N/A envelope cavity theta_0 0.0 N/A N/A N/A N/A logger warn Cavity opening angle is zero, ignoring density contribution N/A N/A N/A N/A N/A envelope cavity rho_0 0.0 N/A N/A N/A N/A logger warn Cavity density is zero, ignoring density contribution N/A N/A N/A N/A N/A envelope cavity dust N/A N/A N/A Exception Cavity dust not set N/A N/A N/A m add_density_grid N/A N/A N/A envelope cavity density N/A m grid N/A N/A envelope cavity dust merge_if_possible merge_if_possible N/A N/A i ambient N/A enumerate N/A self ambients N/A N/A N/A N/A ambient density 0.0 N/A N/A N/A N/A logger warn Ambient medium has zero density, ignoring density contribution N/A N/A N/A N/A ambient dust N/A N/A N/A Exception Ambient medium dust not set N/A N/A N/A m add_density_grid N/A N/A ambient density N/A m grid N/A ambient dust merge_if_possible merge_if_possible N/A N/A N/A N/A N/A N/A self star sources N/A star luminosity 0 N/A N/A N/A N/A N/A N/A self star sources N/A star N/A self sources N/A N/A N/A N/A m add_source N/A N/A N/A self star sources N/A star N/A N/A N/A uv N/A N/A self star sources N/A N/A N/A N/A N/A self star sources N/A uv luminosity 0.0 N/A N/A N/A N/A N/A N/A self star sources N/A uv N/A self sources N/A N/A N/A N/A m add_source N/A N/A N/A self star sources N/A uv N/A N/A N/A xray N/A N/A self star sources N/A N/A N/A N/A N/A self star sources N/A xray luminosity 0.0 N/A N/A N/A N/A N/A N/A self star sources N/A xray N/A self sources N/A N/A N/A N/A m add_source N/A N/A N/A self star sources N/A xray N/A N/A i disk N/A enumerate N/A self disks N/A N/A N/A isinstance disk AlphaDisk N/A N/A N/A N/A disk rmin N/A disk rmax N/A N/A N/A N/A logger warn Disk rmin >= rmax, ignoring accretion luminosity N/A N/A N/A N/A disk mass 0.0 N/A N/A N/A N/A logger warn Disk mass is zero, ignoring accretion luminosity N/A N/A N/A N/A disk lvisc 0.0 N/A N/A N/A N/A logger warn Disk viscous luminosity is zero, ignoring accretion luminosity N/A N/A N/A N/A m add_map_source luminosity N/A disk lvisc map N/A N/A disk accretion_luminosity N/A m grid name N/A accdisk%i i N/A m N/A write N/A N/A self filename compression copy absolute_paths wall_dtype physics_dtype overwrite merge_if_possible N/A None True True False float float True True N/A N/A 
        Write the model input parameters to an HDF5 file

        Parameters
        ----------
        filename : str
            The name of the input file to write. If no name is specified, the
            filename is constructed from the model name.
        compression : bool
            Whether to compress the datasets inside the HDF5 file.
        copy : bool
            Whether to copy all external content into the input file, or
            whether to just link to external content.
        absolute_paths : bool
            If copy=False, then if absolute_paths is True, absolute filenames
            are used in the link, otherwise the path relative to the input
            file is used.
        wall_dtype : type
            Numerical type to use for wall positions.
        physics_dtype : type
            Numerical type to use for physical grids.
        overwrite : bool
            Whether to overwrite any pre-existing file
        merge_if_possible : bool
            Whether to merge density arrays that have the same dust type
         N/A N/A self filename filename N/A m N/A N/A self to_model merge_if_possible merge_if_possible N/A N/A N/A m write filename filename compression compression copy copy absolute_paths absolute_paths wall_dtype wall_dtype physics_dtype physics_dtype overwrite overwrite N/A N/A