roughly working again, now dev docker exists

This commit is contained in:
Aron Petau 2025-12-28 19:59:31 +01:00
parent a77a0c0393
commit 155ab39368
26 changed files with 1976 additions and 235 deletions

0
archive/__init__.py Normal file
View file

View file

@ -107,10 +107,14 @@ def generate_error_rate_plot(applications_file: str):
ax3.xaxis.set_major_formatter(mdates.DateFormatter('%Y-%m-%d'))
ax3.legend(title='Company', loc='upper right', fontsize='small')
fig.autofmt_xdate()
plot_path = os.path.join(DATA_DIR, 'error_rate.png')
tmp_path = os.path.join(DATA_DIR, 'error_rate.tmp.png')
# Write plot to the same directory as applications_file
out_dir = os.path.dirname(os.path.abspath(applications_file))
os.makedirs(out_dir, exist_ok=True)
plot_path = os.path.join(out_dir, 'error_rate.png')
tmp_path = os.path.join(out_dir, 'error_rate.tmp.png')
fig.savefig(tmp_path, format='png')
plt.close(fig)
try: