diff --git a/report/report.go b/report/report.go index cdbe039..a2880f1 100644 --- a/report/report.go +++ b/report/report.go @@ -14,9 +14,15 @@ import ( const ( outPrefix = "out/" + texDir = "tex/" picsDir = "pics/" ) +// GetPicsDirPrefix returns the path to the folder meant for tex files. +func GetTexDir() string { + return outPrefix + texDir +} + // GetPicsDirPrefix returns the path to the folder meant for plot pics. func GetPicsDir() string { return outPrefix + picsDir @@ -27,7 +33,7 @@ func Print() { fmt.Fprint(os.Stderr, "\n* printing the report...\n\n") // when run from the repo root - fname := "report/report.tex" + fname := GetTexDir() + "report.tex" fh, err := os.Open(fname) if err != nil { diff --git a/report/report.tex b/report/report.tex deleted file mode 100644 index f99de79..0000000 --- a/report/report.tex +++ /dev/null @@ -1,19 +0,0 @@ -% Code generated by go generate; DO NOT EDIT. -% This file was generated by robots at -% 2022-06-15 23:30:32.080901953 +0200 CEST m=+0.000320625 -% source: git.dotya.ml/wanderer/math-optim/report/report.tmpl - -% This file is a part of the math-optim project. -% project homepage: https://git.dotya.ml/wanderer/math-optim/ - -\begin{tabular}{ ||l|c|c|c|c|c|| } - func name & minS & maxS & meanS & medianS & stdDevS & \\ - 161.032187 & \\ - 125.034840 & \\ - 80321.000000 & \\ - 85.036243 & \\ - -4.466000 & \\ - 66.000800 & \\ -\end{tabular} - -% vim: ft=gotexttmpl.tex ts=2 bs=2