Skip to content

Commit

Permalink
Update misc/graph.rb
Browse files Browse the repository at this point in the history
Co-authored-by: Takashi Kokubun <[email protected]>
  • Loading branch information
maximecb and k0kubun authored Oct 7, 2024
1 parent 166d5b7 commit 0a51d87
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions misc/graph.rb
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,6 @@ def render_graph(json_path, png_path, title_font_size: 16.0, legend_font_size: 1
json_path = ARGV.first
abort parser.help if json_path.nil?

# For compatibility as this script used to take the .csv as input
if json_path.end_with? '.csv'
png_path = json_path.sub(/\.csv\z/, '.json')
end

png_path = json_path.sub(/\.json\z/, '.png')
render_graph(json_path, png_path, **args)

Expand Down

0 comments on commit 0a51d87

Please sign in to comment.