Skip to content

Commit

Permalink
Local plotting fix: create output folder if not exists
Browse files Browse the repository at this point in the history
  • Loading branch information
Coersi99 committed Jan 22, 2024
1 parent 807eb0a commit f4c244d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion local_plotting/plot.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,18 @@
from datetime import datetime
import plotly.graph_objects as go
import plotly.subplots as sp
import plotly.express as px
import os

def plot_data(build_data, branch, metrics_type):
'''Creates plotly graph as html file. Requires the build data as pandas data frames as well as user's arguments.'''
# Get current date and time
current_datetime = datetime.now().strftime('%Y%m%d_%H%M%S')

# Check if the "output" folder exists, and create it if not
output_folder = "output"
if not os.path.exists(output_folder):
os.makedirs(output_folder)

# Distinguish between different metrics types to be plotted
if metrics_type == "image_details":

Expand Down

0 comments on commit f4c244d

Please sign in to comment.