11import importlib .metadata
22from pathlib import Path
3-
4- import typer
53from typing import Annotated
4+
65import structlog
6+ import typer
77
8- from flowmapper .extraction import ecospold2_biosphere_extractor , simapro_csv_biosphere_extractor
9- from flowmapper .main import OutputFormat , flowmapper
8+ from flowmapper .extraction import (
9+ ecospold2_biosphere_extractor ,
10+ simapro_csv_biosphere_extractor ,
11+ )
12+ from flowmapper .main import flowmapper
1013
1114try :
1215 from pyinstrument import Profiler
@@ -44,10 +47,6 @@ def map(
4447 output_dir : Annotated [
4548 Path , typer .Option (help = "Directory to save mapping and diagnostics files" )
4649 ] = Path ("." ),
47- format : Annotated [
48- OutputFormat ,
49- typer .Option (help = "Mapping file output format" , case_sensitive = False ),
50- ] = "randonneur" ,
5150 default_transformations : Annotated [
5251 bool , typer .Option (help = "Include default context and unit transformations?" )
5352 ] = True ,
@@ -92,7 +91,7 @@ def map(
9291 "location" : "location" ,
9392 },
9493 }
95-
94+
9695 if profile :
9796 if Profiler is None :
9897 raise ImportError ("`pyinstrument` not installed" )
@@ -106,9 +105,14 @@ def map(
106105 mapping_target = generic_mapping ,
107106 source_id = source .stem ,
108107 target_id = target .stem ,
109- contributors = [{"title" : "flowmapper" , "roles" : ["author" ], "path" : "https://github.com/cmutel/flowmapper" }],
108+ contributors = [
109+ {
110+ "title" : "flowmapper" ,
111+ "roles" : ["author" ],
112+ "path" : "https://github.com/cmutel/flowmapper" ,
113+ }
114+ ],
110115 output_dir = output_dir ,
111- format = format ,
112116 default_transformations = default_transformations ,
113117 transformations = transformations ,
114118 unmatched_source = unmatched_source ,
0 commit comments