@@ -87,10 +87,11 @@ def display():
87
87
type = str , default = 'Surface' , show_default = True )
88
88
@click .option (
89
89
'--output-format' , '-of' , help = 'Text for the output format of the resulting '
90
- 'VisualizationSet File (.vsf). Choose from: json, pkl, vtkjs. Note that '
91
- 'ladybug-vtk must be installed in order for the vtkjs option to be usable. Also '
92
- 'note that the vtkjs option requires an explicit --output-file to be specified.' ,
93
- type = str , default = 'json' , show_default = True )
90
+ 'VisualizationSet File (.vsf). Choose from: vsf, pkl, vtkjs. Note that vsf .'
91
+ 'refers to the JSON version of the VisualizationSet file. Also not that '
92
+ 'ladybug-vtk must be installed in order for the vtkjs option to be usable. '
93
+ 'The vtkjs option also requires an explicit --output-file to be specified.' ,
94
+ type = str , default = 'vsf' , show_default = True )
94
95
@click .option (
95
96
'--output-file' , help = 'Optional file to output the JSON string of '
96
97
'the config object. By default, it will be printed out to stdout' ,
@@ -110,7 +111,7 @@ def model_to_vis_set(
110
111
room_text_labels = text_labels , face_text_labels = text_labels ,
111
112
grid_data_path = grid_data , grid_display_mode = grid_display_mode )
112
113
output_format = output_format .lower ()
113
- if output_format == ' json' :
114
+ if output_format in ( 'vsf' , ' json') :
114
115
output_file .write (json .dumps (vis_set .to_dict ()))
115
116
elif output_format == 'pkl' :
116
117
if output_file .name != '<stdout>' :
0 commit comments