@@ -43,23 +43,15 @@ def before_all(context):
4343 # for some Scenarios True would be better, may be dependend on the Scenario name as a workaround
4444
4545 # context.ifc_path = userdata.get("ifc", "")
46- context .ifcfile_basename = os .path .basename (
47- os .path .splitext (userdata ["ifc" ])[0 ]
48- )
46+ context .ifcfile_basename = os .path .basename (os .path .splitext (userdata ["ifc" ])[0 ])
4947 context .outpath = os .path .join (this_path , ".." )
5048 context .create_log = True
5149 context .create_smartview = True
5250
5351 if context .create_log is True :
5452 # set up log file
55- context .thelogfile = os .path .join (
56- context .outpath ,
57- context .ifcfile_basename + ".log"
58- )
59- create_logfile (
60- context .thelogfile ,
61- context .ifcfile_basename ,
62- )
53+ context .thelogfile = os .path .join (context .outpath , context .ifcfile_basename + ".log" )
54+ create_logfile (context .thelogfile , context .ifcfile_basename )
6355
6456 # we have to use a dict to preserve the contents
6557 # https://stackoverflow.com/a/67606164
@@ -103,15 +95,9 @@ def before_feature(context, feature):
10395 # TODO: refactor zoom smart view support into a decoupled module
10496 if context .create_smartview is True :
10597 smartview_name = context .ifcfile_basename + "_" + feature .name
106- context .smview_file = os .path .join (
107- context .outpath ,
108- smartview_name + ".bcsv"
109- )
98+ context .smview_file = os .path .join (context .outpath , smartview_name + ".bcsv" )
11099 # print("SmartView file: {}".format(context.smview_file))
111- create_zoom_set_of_smartviews (
112- context .smview_file ,
113- smartview_name ,
114- )
100+ create_zoom_set_of_smartviews (context .smview_file , smartview_name )
115101
116102 # print(context.skip_all_other_features)
117103 if context .skip_all_other_features ["skip" ] is True :
@@ -190,11 +176,7 @@ def after_step(context, step):
190176 ):
191177 # print("\nDBG: {}, {}\n".format(step.name, context.open_step_counter))
192178 # print(context.falseguids)
193- add_smartview (
194- context .smview_file ,
195- step .name ,
196- context .falseguids
197- )
179+ add_smartview (context .smview_file , step .name , context .falseguids )
198180
199181 # elecount
200182 if hasattr (context , "elemcount" ):
0 commit comments