mario.Database.to_single_region
- Database.to_single_region(region, backup=True, inplace=True)
Extracts a single region from multi-region databases
Note
Following assumptions are considered (on flow matrices):
intermediate imports accounted as ‘Import’ in V
intermediate exports are accounted as ‘Intermediate exports’ in Y
final demand exports are accounted as ‘Final demand exports’ in Y
EY is accounted only for local final demand
- Parameters:
region (str) – the region to extract
backup (boolean) – if True, creates a backup of the database before changes
inplace (boolean) – if True, changes the database inplace otherwise, returns a new object
- Returns:
mario.Database – if inplace= True retunrs a new mario.Databases
None – if inplace= False, changes the database inplace