Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
perceptualrobots committed Nov 26, 2023
1 parent a4e6479 commit b0239a3
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
5 changes: 3 additions & 2 deletions nbs/04_hierarchy.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -1077,8 +1077,9 @@
" print(draw_file)\n",
" \n",
" if history:\n",
" for plot in plots:\n",
" fig = hierarchy.hierarchy_plots(title=plot['title'], plot_items=plot['plot_items'], figsize=plots_figsize, file=plots_dir+ sep +plot['title']+'.png')\n",
" if plots:\n",
" for plot in plots:\n",
" fig = hierarchy.hierarchy_plots(title=plot['title'], plot_items=plot['plot_items'], figsize=plots_figsize, file=plots_dir+ sep +plot['title']+'.png')\n",
"\n",
" score=hierarchy.get_error_collector().error()\n",
" \n",
Expand Down
2 changes: 1 addition & 1 deletion nbs/12_yaw_module.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -737,7 +737,7 @@
" time_yawing = get_time_yawing(nacelle_position_diff.to_list())\n",
" \n",
" if experiment and datatype=='test' :\n",
" experiment.log_html(open(model_file).read(), clear=True)\n",
" experiment.log_html(open(model_file, encoding='utf-8').read(), clear=True)\n",
" \n",
" if experiment :\n",
" experiment.log_curve(\n",
Expand Down
5 changes: 3 additions & 2 deletions pct/hierarchy.py
Original file line number Diff line number Diff line change
Expand Up @@ -999,8 +999,9 @@ def run_from_config(cls, config, min, render=False, error_collector_type=None,
print(draw_file)

if history:
for plot in plots:
fig = hierarchy.hierarchy_plots(title=plot['title'], plot_items=plot['plot_items'], figsize=plots_figsize, file=plots_dir+ sep +plot['title']+'.png')
if plots:
for plot in plots:
fig = hierarchy.hierarchy_plots(title=plot['title'], plot_items=plot['plot_items'], figsize=plots_figsize, file=plots_dir+ sep +plot['title']+'.png')

score=hierarchy.get_error_collector().error()

Expand Down
2 changes: 1 addition & 1 deletion pct/yaw_module.py
Original file line number Diff line number Diff line change
Expand Up @@ -613,7 +613,7 @@ def test_hpct_wind(file=None,plots=None,history=None,verbose=None,outdir=None,ea
time_yawing = get_time_yawing(nacelle_position_diff.to_list())

if experiment and datatype=='test' :
experiment.log_html(open(model_file).read(), clear=True)
experiment.log_html(open(model_file, encoding='utf-8').read(), clear=True)

if experiment :
experiment.log_curve(
Expand Down

0 comments on commit b0239a3

Please sign in to comment.