Module ImportFrom alias Import alias identifier Import alias ImportFrom alias alias ClassDef bases body FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Str Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Str Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Str Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Str Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Str Assign NameStore SubscriptLoad NameLoad Index NameLoad Assign NameStore ListLoad Str Str Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Assign NameStore ListLoad Str Str Str Str Str Str Str Str Str Str Assert CompareEq Call NameLoad Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Str Assign NameStore SubscriptLoad NameLoad Index NameLoad Assign NameStore ListLoad Str Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Assign NameStore ListLoad Str Str Str Str Str Str Str Str Str Assert CompareEq Call NameLoad Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assert CompareEq Call AttributeLoad NameLoad attr Str ListLoad Str decorator_list FunctionDef arguments args NameParam defaults body Assert CompareEq Call AttributeLoad NameLoad attr Str ListLoad Str Str Str decorator_list FunctionDef arguments args NameParam defaults body With Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body With Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Assert CompareEq Call AttributeLoad NameLoad attr Str ListLoad Str Str Str decorator_list FunctionDef arguments args NameParam defaults body Assert CompareEq Call AttributeLoad NameLoad attr Str ListLoad Str Str Str Str Str Str decorator_list FunctionDef arguments args NameParam defaults body With Call AttributeLoad NameLoad attr NameLoad body Assert Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body With Call AttributeLoad NameLoad attr NameLoad body Assert Call AttributeLoad NameLoad attr ListLoad Str Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assert CompareIn Str NameLoad Assert CompareIn Str NameLoad Assert CompareEq Call NameLoad Call NameLoad Call AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assert CompareEq AttributeLoad SubscriptLoad NameLoad Index Str attr Num Assert CompareEq AttributeLoad AttributeLoad SubscriptLoad NameLoad Index Str attr attr Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assert CompareEq AttributeLoad SubscriptLoad NameLoad Index Str attr Num Assert CompareEq AttributeLoad SubscriptLoad NameLoad Index Str attr Num Assert CompareEq AttributeLoad SubscriptLoad NameLoad Index Str attr Num decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore ListLoad Str Str Str Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore ListLoad Str Str Str Str Str Str Str Str Str Str Assert CompareEq Call NameLoad AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore ListLoad Str Str Str Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assert CompareEq Call AttributeLoad AttributeLoad NameLoad attr attr ListLoad Str Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore ListLoad Str Str Str Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assert CompareEq SubscriptLoad AttributeLoad NameLoad attr Index TupleLoad Str Str Num Assert CompareEq SubscriptLoad AttributeLoad NameLoad attr Index TupleLoad Str Str Num Assert CompareEq SubscriptLoad AttributeLoad NameLoad attr Index TupleLoad Str Str Str Assert Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index TupleLoad Str Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore ListLoad Str Str Str Str Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assert CompareEq Call NameLoad SubscriptLoad NameLoad Index Str Num decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore ListLoad Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore ListLoad Str Str Str Str Str Str Str Assert CompareEq Call NameLoad AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore ListLoad Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad For NameStore Call AttributeLoad SubscriptLoad NameLoad Index Str attr body Assert BoolOpOr CompareIs NameLoad NameLoad Call NameLoad NameLoad NameLoad decorator_list decorator_list
N/A io StringIO N/A pandas pd N/A pytest calliope locations utils TestLocations N/A N/A sample_locations N/A N/A self N/A N/A N/A setup N/A StringIO 
        test:
            techs: ['demand', 'unmet_demand', 'ccgt']
            override:
                demand:
                    x_map: 'a: test'
                    constraints:
                        r: file=demand.csv
                        r_scale_to_peak: -10
                ccgt:
                    constraints:
                        e_cap.max: 10
        test1:
            within: test
            techs: ['csp']
         N/A N/A N/A N/A utils AttrDict from_yaml setup N/A N/A pytest fixture sample_unexploded_locations N/A N/A self N/A N/A N/A setup N/A StringIO 
        1,2,3:
            foo:
        a,b,c:
            foo:
        10--15:
            foo:
        10-20:
            foo:
        21--23,25,z:
            foo:
        x:
            foo:
        y:
            foo:
         N/A N/A N/A N/A utils AttrDict from_yaml setup N/A N/A pytest fixture sample_nested_locations N/A N/A self N/A N/A N/A setup N/A StringIO 
        1,2,3:
            techs: ['foo']
        foo:
            techs: ['foo']
        10,11,12:
            within: 1
            techs: ['foo']
        20,21,22:
            within: 2
            techs: ['foo']
        bar,baz:
            within: foo
            techs: ['foo']
        qux:
            within: bar
            techs: ['foo']
         N/A N/A N/A N/A utils AttrDict from_yaml setup N/A N/A pytest fixture sample_overlapping_locations N/A N/A self N/A N/A N/A setup N/A StringIO 
        1,2,3:
            techs: ['foo']
        1:
            override:
                bar: baz
         N/A N/A N/A N/A utils AttrDict from_yaml setup N/A N/A pytest fixture test_generate_location N/A N/A self sample_locations N/A N/A N/A location test N/A items N/A sample_locations N/A location N/A techs N/A demand unmet_demand ccgt N/A result N/A N/A locations _generate_location location items techs N/A wanted_cols N/A _level _location _override.ccgt.constraints.e_cap.max _override.demand.constraints.r _override.demand.constraints.r_scale_to_peak _override.demand.x_map _within ccgt demand unmet_demand N/A N/A N/A sorted N/A N/A result keys wanted_cols N/A test_generate_location_lacking_techs N/A N/A self sample_locations N/A N/A N/A location test N/A items N/A sample_locations N/A location N/A techs N/A unmet_demand ccgt N/A result N/A N/A locations _generate_location location items techs N/A wanted_cols N/A _level _location _override.ccgt.constraints.e_cap.max _override.demand.constraints.r _override.demand.constraints.r_scale_to_peak _override.demand.x_map _within ccgt unmet_demand N/A N/A N/A sorted N/A N/A result keys wanted_cols N/A test_explode_location_single N/A N/A self N/A N/A N/A N/A N/A N/A locations explode_locations a N/A a N/A test_explode_location_range N/A N/A self N/A N/A N/A N/A N/A N/A locations explode_locations 1--3 N/A 1 2 3 N/A test_explode_location_range_backwards N/A N/A self N/A N/A N/A N/A N/A pytest raises KeyError N/A N/A N/A N/A locations explode_locations 3--1 N/A test_explode_location_range_nonnumeric N/A N/A self N/A N/A N/A N/A N/A pytest raises ValueError N/A N/A N/A N/A locations explode_locations a--c N/A test_explore_location_list N/A N/A self N/A N/A N/A N/A N/A N/A locations explode_locations 1,2,3 N/A 1 2 3 N/A test_explode_location_mixed N/A N/A self N/A N/A N/A N/A N/A N/A locations explode_locations a,b,1--3,c N/A a b 1 2 3 c N/A test_explode_location_empty N/A N/A self N/A N/A N/A N/A N/A pytest raises KeyError N/A N/A N/A N/A locations explode_locations N/A test_explode_location_invalid N/A N/A self N/A N/A N/A N/A N/A pytest raises AssertionError N/A N/A N/A N/A locations explode_locations N/A a b N/A test_process_locations N/A N/A self sample_unexploded_locations N/A N/A N/A fixture sample_unexploded_locations N/A o N/A N/A locations process_locations fixture N/A N/A 10 o N/A N/A x o N/A N/A N/A len N/A list N/A N/A o keys 20 N/A test_process_locations_overlap N/A N/A self sample_overlapping_locations N/A N/A N/A fixture sample_overlapping_locations N/A o N/A N/A locations process_locations fixture N/A N/A N/A N/A o N/A 1 level 0 N/A N/A N/A N/A N/A o N/A 1 override bar baz N/A test_process_locations_levels N/A N/A self sample_nested_locations N/A N/A N/A fixture sample_nested_locations N/A o N/A N/A locations process_locations fixture N/A N/A N/A N/A o N/A 1 level 0 N/A N/A N/A N/A o N/A bar level 1 N/A N/A N/A N/A o N/A qux level 2 N/A test_generate_location_matrix_cols N/A N/A self sample_locations N/A N/A N/A techs N/A demand unmet_demand ccgt csp N/A df N/A N/A locations generate_location_matrix sample_locations techs N/A wanted_cols N/A _level _override.ccgt.constraints.e_cap.max _override.demand.constraints.r _override.demand.constraints.r_scale_to_peak _override.demand.x_map _within ccgt csp demand unmet_demand N/A N/A N/A sorted N/A df columns wanted_cols N/A test_generate_location_matrix_index N/A N/A self sample_locations N/A N/A N/A techs N/A demand unmet_demand ccgt csp N/A df N/A N/A locations generate_location_matrix sample_locations techs N/A N/A N/A N/A N/A df index tolist N/A test test1 N/A test_generate_location_matrix_values N/A N/A self sample_locations N/A N/A N/A techs N/A demand unmet_demand ccgt csp N/A df N/A N/A locations generate_location_matrix sample_locations techs N/A N/A N/A N/A df at N/A N/A test demand 1 N/A N/A N/A N/A df at N/A N/A test1 demand 0 N/A N/A N/A N/A df at N/A N/A test _override.demand.constraints.r file=demand.csv N/A N/A N/A pd isnull N/A N/A df at N/A N/A test1 _override.demand.constraints.r N/A test_generate_location_matrix_additional_techs N/A N/A self sample_locations N/A N/A N/A techs N/A demand unmet_demand ccgt csp foo N/A df N/A N/A locations generate_location_matrix sample_locations techs N/A N/A N/A sum N/A df N/A foo 0 N/A test_generate_location_matrix_missing_techs_cols N/A N/A self sample_locations N/A N/A N/A techs N/A ccgt N/A df N/A N/A locations generate_location_matrix sample_locations techs N/A wanted_cols N/A _level _override.ccgt.constraints.e_cap.max _override.demand.constraints.r _override.demand.constraints.r_scale_to_peak _override.demand.x_map _within ccgt N/A N/A N/A sorted N/A df columns wanted_cols N/A test_generate_location_matrix_within_only_strings N/A N/A self sample_nested_locations N/A N/A N/A techs N/A foo N/A df N/A N/A locations generate_location_matrix sample_nested_locations techs N/A i N/A N/A N/A df N/A _within tolist N/A N/A N/A N/A i None N/A isinstance i str N/A N/A