Closed epogrebnyak closed 8 years ago
My screen output:
>python -m rowsystem.rowsystem
Self inspection:
6621
['CONSTR', 'CORP_DEBT', 'CORP_DEBT_OVERDUE', 'CORP_DEBT_OVERDUE_BUDGET', 'CORP_DEBT_OVERDUE_SUPPLIERS', 'CORP_DUE', 'CPI', 'CPI_ALCOHOL', 'CPI_FOOD', 'CPI_NONFOOD', 'CPI_SERVICES', 'GDP', 'I', 'IND_PROD', 'NONFINANCIALS_PROFIT_CONSTRUCTION', 'NONFINANCIALS_PROFIT_MANUF', 'NONFINANCIALS_PROFIT_MINING', 'NONFINANCIALS_PROFIT_POWER_GAS_WATER', 'NONFINANCIALS_PROFIT_TRANS_COMM', 'PRICE_EGGS', 'PRICE_INDEX_CONSTRUCTION', 'PRICE_INDEX_INVESTMENT', 'PROD_AUTO_BUS', 'PROD_AUTO_PSGR', 'PROD_AUTO_TRUCKS', 'PROD_AUTO_TRUCKS_AND_CHASSIS', 'PROD_BYCYCLES', 'PROD_COAL', 'PROD_E', 'PROD_EGGS', 'PROD_FOOTWEAR', 'PROD_GASOLINE', 'PROD_NATURAL_AND_ASSOC_GAS', 'PROD_OIL', 'PROD_RAILWAY_CARGO_WAGONS', 'PROD_RAILWAY_PSGR_WAGONS', 'PROD_STEEL', 'PROD_WOOD_INDUSTRIAL', 'PROD_WOOD_ROUGH', 'RETAIL_SALES', 'RUR_EUR', 'RUR_USD', 'SOC_EMPLOYED', 'SOC_PENSION', 'SOC_UNEMPLOYED', 'SOC_UNEMPLOYMENT', 'SOC_WAGE', 'SOC_WAGE_ARREARS', 'TRANS', 'TRANS_COM', 'TRANS_RAILLOAD', 'USLUGI']
['CORP_DEBT', 'CORP_DEBT_OVERDUE', 'CORP_DEBT_OVERDUE_BUDGET', 'CORP_DEBT_OVERDUE_SUPPLIERS', 'CORP_DUE', 'CPI', 'CPI_ALCOHOL', 'CPI_FOOD', 'CPI_NONFOOD', 'CPI_SERVICES', 'GDP', 'I', 'IND_PROD', 'NONFINANCIALS_PROFIT_CONSTRUCTION', 'NONFINANCIALS_PROFIT_MANUF', 'NONFINANCIALS_PROFIT_MINING', 'NONFINANCIALS_PROFIT_POWER_GAS_WATER', 'NONFINANCIALS_PROFIT_TRANS_COMM', 'PRICE_EGGS', 'PRICE_INDEX_CONSTRUCTION', 'PRICE_INDEX_INVESTMENT', 'PROD_AUTO_BUS', 'PROD_AUTO_PSGR', 'PROD_AUTO_TRUCKS', 'PROD_AUTO_TRUCKS_AND_CHASSIS', 'PROD_BYCYCLES', 'PROD_COAL', 'PROD_E', 'PROD_EGGS', 'PROD_FOOTWEAR', 'PROD_GASOLINE', 'PROD_NATURAL_AND_ASSOC_GAS', 'PROD_OIL', 'PROD_RAILWAY_CARGO_WAGONS', 'PROD_RAILWAY_PSGR_WAGONS', 'PROD_STEEL', 'PROD_WOOD_INDUSTRIAL', 'PROD_WOOD_ROUGH', 'RETAIL_SALES', 'RUR_EUR', 'RUR_USD', 'SOC_EMPLOYED', 'SOC_PENSION', 'SOC_UNEMPLOYED', 'SOC_UNEMPLOYMENT', 'SOC_WAGE', 'SOC_WAGE_ARREARS', 'TRANS', 'TRANS_COM', 'TRANS_RAILLOAD', 'USLUGI']
This is clearly result of import like RowSystem(config.CURRENT_MONTH_DATA_FOLDER)
but it is a mystery why and where it is executed.
@baor , @Pastafarianist - can you please look at this issue unless it isolved by then?
In repo root directory I run
python -m rowsystem.rowsystem
and get nonzero output from https://github.com/epogrebnyak/rosstat-kep-data/blob/master/rowsystem/rowsystem.py#L21-L24. This is very surprising and because I expectpython -m rowsystem.rowsystem
just to establish a class and no instances. To get nonzero output there must be an instance of RowSystem class with config.CURRENT_MONTH_DATA_FOLDER as input.