Module Import alias Import alias Import alias Import alias Import alias Import alias Import alias Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias Import alias Assign NameStore Str Assign NameStore NameLoad Expr Str Assign NameStore Call NameLoad ListLoad Str Str FunctionDef arguments args NameParam defaults body Expr Str Global identifier If CompareIs NameLoad NameLoad body Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Dict For NameStore Call AttributeLoad NameLoad attr Str ListLoad body Assign NameStore Call AttributeLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index Str attr Assign NameStore Call AttributeLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index Str attr Expr Call AttributeLoad SubscriptLoad NameLoad Index Str attr Assign SubscriptStore SubscriptLoad NameLoad Index Str Index Str NameLoad Assign SubscriptStore SubscriptLoad NameLoad Index Str Index Str NameLoad Assign SubscriptStore NameLoad Index NameLoad SubscriptLoad NameLoad Index Str Assign NameStore Call NameLoad For NameStore NameLoad body Assign NameStore Call AttributeLoad Call AttributeLoad Call AttributeLoad Call AttributeLoad NameLoad attr Str Dict attr Str Dict attr Str Str attr If CompareIn NameLoad NameLoad body Assign NameStore SubscriptLoad NameLoad Index NameLoad Assign SubscriptStore NameLoad Index Str BinOpAdd Call AttributeLoad NameLoad attr Str Num Num For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body If CompareIn NameLoad NameLoad body Continue TryExcept body Assign NameStore Call NameLoad NameLoad handlers ExceptHandler type NameLoad body Assign NameStore Call NameLoad Str If BoolOpOr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr NameLoad body Continue If CompareLt NameLoad Num body Print Str Assign SubscriptStore NameLoad Index NameLoad BinOpAdd Call AttributeLoad NameLoad attr NameLoad Num NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign SubscriptStore NameLoad Index Str Dict Str Call NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr NameLoad keyword AttributeLoad NameLoad attr TryExcept body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str If Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr Call NameLoad NameLoad Index Str orelse Assign NameStore Dict Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore Call NameLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore Call NameLoad keyword Call AttributeLoad NameLoad attr Str Call AttributeLoad AttributeLoad NameLoad attr attr Str keyword Call AttributeLoad NameLoad attr Str Call AttributeLoad AttributeLoad NameLoad attr attr Str keyword Call AttributeLoad NameLoad attr Str Call AttributeLoad AttributeLoad NameLoad attr attr Str keyword Call AttributeLoad NameLoad attr Str Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr keyword SubscriptLoad NameLoad Index Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr keyword Str keyword NameLoad Index Num Assign NameStore Call NameLoad NameLoad Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Assign NameStore Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr Index Str Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad Assign AttributeStore NameLoad attr SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Dict Str Str SubscriptLoad NameLoad Index Str NameLoad If UnaryOpNot NameLoad body Raise Call NameLoad BinOpMod Str TupleLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign SubscriptStore NameLoad Index Str Str Assign SubscriptStore NameLoad Index Str SubscriptLoad SubscriptLoad NameLoad Index Str Index Str If SubscriptLoad SubscriptLoad NameLoad Index Str Index Str body Assign SubscriptStore NameLoad Index Str SubscriptLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Index Num Assign SubscriptStore NameLoad Index Str Str Expr Call NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Dict Str Str SubscriptLoad NameLoad Index Str NameLoad If NameLoad body Assign SubscriptStore NameLoad Index Str Dict Str Str SubscriptLoad NameLoad Index Str NameLoad orelse Raise Call NameLoad BinOpMod Str TupleLoad NameLoad NameLoad Expr Call NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad keyword AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body Assign TupleStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr Assign NameStore BinOpMod Str TupleLoad AttributeLoad NameLoad attr Call NameLoad NameLoad Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad keyword AttributeLoad NameLoad attr keyword NameLoad Raise decorator_list
N/A N/A json N/A os N/A shutil N/A sys N/A tempfile N/A traceback N/A copy N/A math N/A requests girder.constants AccessType girder.utility config girder.utility.model_importer ModelImporter girder.plugins.jobs.constants JobStatus girder.plugins.minerva.utility.bsve.bsve_utility BsveUtility girder.plugins.minerva.utility.minerva_utility mM N/A girder_client N/A states_source https://gist.githubusercontent.com/jbeezley/ec21c4a016a84c5def74/raw/0eb947eccbba98c01caad6ac7fbc7f8fe8334231/us-states.geojson N/A _states None N/A 
{
    "type": "FeatureCollection",
    "features": [
        {
            "type": "Feature",
            "properties": {
                "name": "New York",
                "abbr": "NY"
            },
            "geometry": {
                "type": "MultiPolygon",
                "coordinates": [
                    [ # polygon 1
                        [ # outer ring
                           [], [], ...
                        ],
                        [ # inner ring 1
                            [], [], ...
                        ],
                        ...
                    ],
                    ...
                ]
            }
        },
        ...
    ]
 N/A ignored_properties N/A set N/A mmwr_week mmwr_year accumulate N/A N/A data N/A N/A N/A Accumulate data by state returning a geojson object.

    The argument is expected to be structured as follows:
        [
            {
                "location_1": {
                    "city": "New York City, NY", # city, state pair
                },
                "key1": "value1",
                "key2": "value2",
                ...
            }
        ]

    The state is parsed from the `reporting_area` key.  If any error occurs,
    the record is skipped.  For the remaining keys, the
    value is coerced as a number and accumulated into the states' properties.
    Any error in the conversion causes the key to be skipped.  An additional
    key is added to each state, `num_records` indicating the number of records
    existed for that state.

    Finally, any state for which no record was encountered is filtered out of
    the returned value.

    :param list data: A list of dicts containing mappings of keys to counts
    :returns dict: A geojson object with ``properties`` containing accumulated
        values.  The top level ``FeatureCollection`` property contains a list
        of list of keys available in the individual features.
     N/A _states N/A N/A _states None N/A N/A _states N/A N/A N/A N/A requests get states_source json N/A geojson N/A N/A copy deepcopy _states N/A states N/A N/A feature N/A N/A geojson get features N/A N/A N/A abbr N/A N/A N/A N/A feature N/A properties N/A abbr upper N/A name N/A N/A N/A N/A feature N/A properties N/A name upper N/A N/A N/A N/A feature N/A properties clear N/A N/A N/A feature N/A properties N/A abbr abbr N/A N/A N/A feature N/A properties N/A name name N/A N/A states N/A name N/A feature N/A properties N/A all_props N/A set N/A record data N/A N/A m N/A N/A N/A N/A N/A N/A N/A N/A record get location_1 N/A get human_address N/A get state upper N/A N/A m states N/A N/A props N/A states N/A m N/A N/A props N/A num_records N/A N/A N/A props get num_records 0 1 N/A N/A key value N/A N/A record iteritems N/A N/A N/A key ignored_properties N/A N/A N/A N/A N/A v N/A float value N/A N/A N/A Exception N/A N/A v N/A float NaN N/A N/A N/A N/A math isnan v N/A N/A math isinf v N/A N/A N/A N/A v 0 N/A N/A Encountered a negative value! N/A N/A props N/A key N/A N/A N/A props get key 0 v N/A N/A N/A all_props add key N/A N/A geojson N/A properties N/A values N/A list all_props N/A geojson N/A run N/A N/A job N/A N/A N/A job_model N/A N/A ModelImporter model job jobs N/A N/A N/A job_model updateJob job status N/A JobStatus RUNNING N/A N/A N/A configFile N/A N/A N/A os path join N/A N/A N/A os path dirname __file__ bsve.json N/A N/A N/A N/A os path exists configFile N/A N/A bsveConfig N/A N/A N/A json load N/A open configFile N/A bsve N/A N/A bsveConfig N/A N/A kwargs N/A job N/A kwargs N/A datasetId N/A str N/A N/A kwargs N/A dataset N/A _id N/A token N/A kwargs N/A token N/A params N/A kwargs N/A params N/A bsveUtility N/A BsveUtility user N/A N/A bsveConfig get USER_NAME N/A N/A N/A os environ get BSVE_USERNAME apikey N/A N/A bsveConfig get API_KEY N/A N/A N/A os environ get BSVE_APIKEY secret N/A N/A bsveConfig get SECRET_KEY N/A N/A N/A os environ get BSVE_SECRETKEY base N/A N/A bsveConfig get BASE_URL N/A data N/A accumulate N/A N/A bsveUtility soda_dump count N/A params N/A count N/A tmpdir N/A N/A tempfile mkdtemp N/A outFilepath N/A N/A N/A tempfile mkstemp suffix .json dir tmpdir N/A 1 N/A writer N/A open outFilepath w N/A N/A N/A writer write N/A N/A json dumps data N/A N/A N/A writer close N/A outFilename soda.geojson N/A humanFilepath N/A N/A N/A os path join tmpdir outFilename N/A N/A N/A shutil move outFilepath humanFilepath N/A girderPort N/A N/A N/A config getConfig N/A server.socket_port N/A client N/A N/A girder_client GirderClient port girderPort N/A N/A client token N/A token N/A _id N/A N/A N/A client uploadFileToItem datasetId humanFilepath N/A user_model N/A N/A ModelImporter model user N/A user N/A N/A user_model load N/A job N/A userId force True N/A item_model N/A N/A ModelImporter model item N/A dataset N/A N/A item_model load datasetId level N/A AccessType WRITE user user N/A minerva_metadata N/A mM dataset N/A file_model N/A N/A ModelImporter model file N/A existing N/A N/A file_model findOne N/A itemId name N/A dataset N/A _id outFilename N/A N/A existing N/A N/A N/A Exception N/A Cannot find file %s in dataset %s N/A outFilename datasetId N/A N/A N/A shutil rmtree tmpdir N/A N/A minerva_metadata N/A dataset_type geojson N/A N/A minerva_metadata N/A values N/A N/A data N/A properties N/A values N/A N/A N/A data N/A properties N/A values N/A N/A N/A minerva_metadata N/A colorByValue N/A N/A N/A data N/A properties N/A values N/A 0 N/A N/A minerva_metadata N/A colorScheme YlOrRd N/A N/A mM dataset minerva_metadata N/A existing N/A N/A file_model findOne N/A itemId name N/A dataset N/A _id outFilename N/A existing N/A N/A N/A minerva_metadata N/A geojson_file N/A _id name N/A existing N/A _id outFilename N/A N/A N/A Exception N/A Cannot find file %s in dataset %s N/A outFilename datasetId N/A N/A mM dataset minerva_metadata N/A N/A N/A job_model updateJob job status N/A JobStatus SUCCESS N/A N/A N/A Exception N/A N/A N/A t val tb N/A N/A sys exc_info N/A log N/A %s: %s
%s N/A N/A t __name__ N/A repr val N/A N/A traceback extract_tb tb N/A N/A N/A job_model updateJob job status N/A JobStatus ERROR log log N/A N/A