Weekly research update
Weekly research update
Purpose
This prompt turns one week of lab work into a one-page A4 update for your research advisor. The page opens with the week's result in one line. Then come what you did against last week's plan, one results figure, what did not work and the likely cause, next week's plan, and at most two questions your advisor can answer with yes or no. Python makes the figure and the numbers, LaTeX sets the page, and every result number in the report is read from the file the script writes. The AI also drafts a three-line email to send with the PDF.
The AI organizes, plots, writes, typesets and drafts the email. It does not report a measurement you did not make, and it does not drop or shrink a failed run. A cause stays "likely" until you have checked it.
Input
- Required: this week's measurements (a file or a table) and last week's plan. If the plan is missing, the AI asks one thing only: "Please send last week's update or plan, one line per item."
- Helpful: the sample log (condition, status, note), experiment conditions (substrate, treatment time, measurement range), next week's instrument bookings, and your lab's report template and due day. If your school, lab or instructor gave you a template, that template comes first.
- If you do not know why a sample was excluded or a run failed, the AI writes "reason [check needed]".
- Sentences you mark "keep as is" are not edited.
Output
1. `plot.py`, `weekly.tex`, the compiled `weekly.pdf` (one page), the figure `fig_week.pdf`, the number file `results.tex`, and a three-line email.
2. In the chat, only a "Please check" list of 3 to 7 lines: the headline number, how many samples were excluded and why, causes left as "likely", the questions, and the page count (is it one page?).
3. If the AI cannot run code where you are, it gives you the files and the commands. It does not say it built a PDF it never built.
Rules
1. Steps
1) Put the sample log in `samples.csv` (sample_id, temp_C, status, note) and the spectra in `absorbance.csv` (one column per sample).
2) Run `plot.py`. It writes the figure and `results.tex`. Read the printed means, n per condition and the excluded samples first.
3) Write the one-line result. It needs at least one number and its n.
4) Copy last week's plan into the table and fill in what was done and the status.
5) Write what did not work, next week's plan and the questions.
6) Compile twice and check that the PDF is one page. If it runs over, cut sentences.
7) Write the three-line email and attach the PDF.
2. The one-page frame
- A4, one page, always. Body 10 pt, line spacing 1.2, margins 14 mm top and 17 mm at the sides. If it runs over, cut sentences, not the font size. Never go below 9 pt.
- Order and length: header (title, name, period, recipient) 2 lines → result box, 1–2 lines → done-vs-plan table, 3–5 rows → one figure with 2 lines of notes → what did not work, 2–3 items → next week's plan, 2–4 items → questions, 2 at most → one line with the raw-data location.
- One results figure, full text width, two panels at most.
- The last line names the raw-data folder and the script that made the figure. Your advisor should never have to ask where the data is.
3. The result line and the plan table
- The result sits in one box at the top: "what was how much (n)" plus the single biggest problem.
- Plan table columns: Planned last week | Done | Status. Status is one of three words: Done, Partial, Not done. Partial and Not done get "x of y" and a reason.
- Work that was not in the plan goes on one separate line under the table.
4. The figure
- Axis labels carry quantity and unit. Absorbance has no unit, so the label is "Absorbance", without "a.u.".
- The caption states the conditions: material, substrate, treatment, measurement range, baseline. Give n for each condition.
- Five conditions get five line styles, and only the best one is drawn thick. Do not rely on color; the page will be printed in black and white.
- Excluded samples stay in the plot, marked ×.
- Figure text is 8 pt. The figure is made 7.0 in wide, about the A4 text width with 17 mm margins (6.9 in), so `width=\linewidth` keeps the text near 8 pt.
5. Failures and likely causes
- Report failures as numbers: how many out of how many, the value, and the percentage of the best condition.
- For an excluded sample, say what you saw (pinholes by eye, color change) and give its value next to the mean of the rest.
- Write causes as "Likely cause: … (unconfirmed)" and add how and when you will check. Not "will confirm by XRD" but "Check: XRD, Thu Dec 3".
- Reasons outside the experiment count too, such as an instrument that was fully booked.
6. Next week's plan and the questions
- Each plan line has a date (with weekday) and an output. No lines like "continue experiments".
- Two questions at most, each answerable with yes or no. Put your default choice in the question and, in parentheses, what you will do if the answer is no.
- If a plan line depends on a question, tag it "(depends on the answer to Q1)".
7. Wording and numbers
- In the report: short past-tense fragments ("2 of 3 films turned yellow."). In the email: full sentences, first person.
- Do not start a sentence with a numeral. "Films annealed at 120 °C had…", not "120 °C films had…". A label such as "160 °C:" at the start of a bullet is fine.
- Numbers from `results.tex` are macros, and a macro swallows the space after it. Write `\decN{} of \decOf{}`, which prints "2 of 3". `\decN of \decOf` prints "2of 3".
- Keep a non-breaking space between number and unit: `\WL~nm`, `\bestT~°C`.
- Before → after
- "This week I carried out annealing experiments and got several results." → "Films annealed at 120 °C had the highest absorbance at 700 nm (0.98 ± 0.03, n = 3)."
- "There were some problems with a few samples." → "160 °C: 2 of 3 films turned yellow. Absorbance at 700 nm 0.06 (6 % of the 120 °C value)."
- "I plan to do more experiments next week." → "Mon Nov 30 – Tue Dec 1: make 3 films each at 110, 120 and 130 °C."
- "What temperature should I use?" → "May I narrow next week's anneal to 110, 120 and 130 °C? (If no, I repeat this week's five conditions.)"
8. The email and the two files
- File name: date_weekly-update_name, for example `2026-11-27_weekly-update_Kim.pdf`. If your lab has a naming rule, use that.
- Email body, 3 lines: the result, what changes next week, a pointer to the questions. The numbers match the PDF exactly.
```text
Subject: [Weekly update] Nov 23–27: perovskite film absorbance vs. annealing temperature (Alex Kim)
Dear Professor [Name],
This week, films annealed at 120 °C had the highest absorbance at 700 nm, 0.98 ± 0.03 (n = 3).
At 160 °C, 2 of 3 films decomposed, so next week I plan to narrow the anneal to 110, 120 and 130 °C and measure again.
The attached one-page report ends with two questions you can answer with yes or no.
Best regards,
Alex Kim
```
The two files below were run end to end on a hypothetical case: an undergraduate researcher's weekly update on perovskite films annealed at 5 temperatures with 3 films each, absorbance measured by UV-Vis. The measurements, the sample log and the name Alex Kim are all hypothetical. When your data changes, edit only the reading part of `plot.py` and the sentences in `weekly.tex`.
- `plot.py`: run `python plot.py` with `absorbance.csv` and `samples.csv` in the same folder.
- `weekly.tex`: run `pdflatex weekly.tex` twice. On Overleaf the default compiler (pdfLaTeX) works; upload `results.tex` and `fig_week.pdf` with it.
9. Final check
- One page? Font not pushed below 9 pt to make it fit?
- Result at the top, with a number and its n?
- Every line of last week's plan has a status? Partial and Not done have numbers and a reason?
- Excluded samples listed with count, reason and value, and still visible in the figure?
- Each cause marked "unconfirmed", with a check date?
- Two questions at most, each answerable with yes or no?
- Email numbers match the PDF? No macro swallowed a space ("2of 3")?
- Did the AI say whether it compiled the PDF or only wrote the files?
Attachment 1 · plot.py (Python)
```python
plot.py - figure (fig_week.pdf) and numbers (results.tex) for the weekly update.
Every number in the report comes from this file.
Input: absorbance.csv (absorbance per wavelength, one column per sample),
samples.csv (sample log: temperature, status, note)
import csv
import matplotlib
matplotlib.use("Agg")
import matplotlib.pyplot as plt
import numpy as np
WL = 700 # comparison wavelength (nm): below the absorption edge, tracks film thickness and coverage
spec = np.genfromtxt("absorbance.csv", delimiter=",", names=True)
wl = spec["wavelength_nm"]
log = list(csv.DictReader(open("samples.csv", encoding="utf-8")))
temps = sorted({int(s["temp_C"]) for s in log})
i_wl = int(np.argmin(abs(wl - WL)))
ok = {T: [s["sample_id"] for s in log if int(s["temp_C"]) == T and s["status"] == "ok"] for T in temps}
bad = [s for s in log if s["status"] != "ok"] # excluded samples keep their values; we still report them
a = {T: np.array([spec[i][i_wl] for i in ok[T]]) for T in temps}
mean = {T: a[T].mean() for T in temps}
sd = {T: a[T].std(ddof=1) if len(a[T]) > 1 else float("nan") for T in temps}
best = max(temps, key=mean.get)
avg = {T: np.mean([spec[i] for i in ok[T]], axis=0) for T in temps}
red = wl >= WL # absorption edge: steepest drop after an 11 nm moving average
smooth = {T: np.convolve(avg[T], np.ones(11) / 11, mode="same") for T in temps}
edge = {T: wl[red][np.argmin(np.gradient(smooth[T][red], wl[red]))] for T in temps}
Figure: (a) mean spectrum per temperature, (b) absorbance at 700 nm.
Line styles differ so the plot still reads in black-and-white print.
plt.rcParams.update({"font.size": 8, "axes.linewidth": 0.7, "mathtext.fontset": "dejavusans"})
fig, (a1, a2) = plt.subplots(1, 2, figsize=(7.0, 2.5), gridspec_kw={"width_ratios": [1.35, 1], "wspace": 0.28})
styles = [(0, (1, 1.5)), "-.", "-", "--", (0, (5, 1, 1, 1, 1, 1))]
for T, ls in zip(temps, styles):
a1.plot(wl, avg[T], ls=ls, color="black" if T == best else "0.35", lw=1.6 if T == best else 0.9,
label=f"{T} °C (n = {len(ok[T])})")
a1.axvline(WL, color="0.6", lw=0.6, ls=":")
a1.set(xlabel="Wavelength (nm)", ylabel="Absorbance", xlim=(wl[0], wl[-1]), ylim=(0, None))
a1.legend(frameon=False, fontsize=7)
for T in temps:
a2.errorbar(T, mean[T], yerr=0 if np.isnan(sd[T]) else sd[T], fmt="o", ms=4.5, mfc="white", mec="black",
ecolor="black", capsize=3, lw=0.8)
a2.annotate(f"n = {len(ok[T])}", (T, mean[T]), xytext=(0, 7), textcoords="offset points", ha="center", fontsize=6.5)
for T in temps: # excluded samples: shift sideways a little if several share a temperature
b = [s for s in bad if int(s["temp_C"]) == T]
for k, s in enumerate(b):
a2.plot(T + 3 * (k - (len(b) - 1) / 2), spec[s["sample_id"]][i_wl], "x", color="0.4", ms=5)
a2.set(xlabel="Annealing temperature (°C)", ylabel=f"Absorbance at {WL} nm", xticks=temps,
xlim=(temps[0] - 12, temps[-1] + 12), ylim=(0, 1.25))
for s in (a1, a2):
s.tick_params(direction="in", top=True, right=True)
fig.savefig("fig_week.pdf", bbox_inches="tight")
Numbers to LaTeX. Values and counts of excluded samples (decomposed, pinhole) go out as well.
dec = [s for s in bad if s["status"] == "decomposed"]
pin = [s for s in bad if s["status"] == "pinhole"]
dT, pT = int(dec[0]["temp_C"]), int(pin[0]["temp_C"])
dA = np.mean([spec[s["sample_id"]][i_wl] for s in dec])
pA = spec[pin[0]["sample_id"]][i_wl]
nxt = temps[temps.index(best) + 1]
r2 = lambda v: f"{v:.2f}"
out = {"WL": WL, "Tlo": temps[0], "Thi": temps[-1], "nT": len(temps), "nMade": len(log),
"nValid": sum(len(v) for v in ok.values()), "nBad": len(bad),
"bestT": best, "bestA": r2(mean[best]), "bestSd": r2(sd[best]), "bestN": len(ok[best]),
"loT": temps[0], "loA": r2(mean[temps[0]]), "nxT": nxt, "nxA": r2(mean[nxt]),
"decT": dT, "decN": len(dec), "decOf": sum(int(s["temp_C"]) == dT for s in log), "decA": r2(dA),
"decPct": f"{100 * float(r2(dA)) / float(r2(mean[best])):.0f}",
"pinT": pT, "pinA": r2(pA), "pinRef": r2(mean[pT]), "pinDiff": r2(float(r2(mean[pT])) - float(r2(pA))),
"edgeLo": f"{min(edge.values()):.0f}", "edgeHi": f"{max(edge.values()):.0f}"}
with open("results.tex", "w", encoding="utf-8") as f:
f.writelines(f"\\newcommand{{\\{k}}}{{{v}}}\n" for k, v in out.items())
for T in temps:
print(f"{T} °C: A{WL} = {mean[T]:.3f} ± {sd[T]:.3f} (n = {len(ok[T])}), absorption edge {edge[T]:.0f} nm")
print(f"excluded {len(bad)}: " + ", ".join(f"{s['sample_id']} ({s['temp_C']} °C, {s['status']})" for s in bad))
```
Attachment 2 · weekly.tex (LaTeX)
```latex
% weekly.tex - weekly research update, fixed to one A4 page.
% Build: python plot.py, then pdflatex weekly.tex twice (Overleaf default compiler pdfLaTeX works).
% Every result number comes from results.tex, which plot.py writes.
\documentclass[10pt,a4paper]{article}
\usepackage[top=14mm,bottom=12mm,left=17mm,right=17mm]{geometry}
\usepackage[T1]{fontenc}
\usepackage{textcomp,mathptmx}
\usepackage[scaled=0.92]{helvet}
\usepackage{graphicx,booktabs,array,tabularx,enumitem,siunitx}
\sisetup{separate-uncertainty=true}
\pagestyle{empty}
\setlength{\parindent}{0pt}
\linespread{1.2}
\setlist{nosep,leftmargin=1.3em}
\newcommand{\sect}[1]{\par\medskip{\sffamily\bfseries #1}\par\smallskip}
\input{results.tex}
\begin{document}
{\sffamily\bfseries\Large Weekly research update}\hfill Alex Kim, undergraduate researcher \quad Sent Fri, Nov 27, 2026\par
\smallskip{\small Period: Mon, Nov 23 -- Fri, Nov 27, 2026 \quad Topic: absorbance of perovskite films vs.\ annealing temperature \quad To: research advisor}
\par\smallskip\hrule\medskip
\fbox{\parbox{\dimexpr\linewidth-2\fboxsep-2\fboxrule}{\textbf{This week}\quad
Films annealed at \bestT~°C had the highest absorbance at \WL~nm (\num{\bestA \pm \bestSd}, $n=\bestN$). At \decT~°C, \decN{} of \decOf{} films decomposed.}}
\sect{1. Done vs.\ last week's plan}
\begin{tabularx}{\linewidth}{@{}>{\raggedright}X>{\raggedright}X l@{}}\toprule
Planned last week & Done & Status\\\midrule
Anneal \nT{} conditions (\Tlo--\Thi~°C) $\times$ 3 films each & \nMade{} of \nMade{} films made & Done\\
UV-Vis absorbance (400--850~nm) & \nMade{} measured, \nValid{} valid (\nBad{} excluded, Sec.~3) & Done\\
PL measurement & 0 runs. Shared instrument was fully booked & Not done\\\bottomrule
\end{tabularx}
\sect{2. Results}
\includegraphics[width=\linewidth]{fig_week.pdf}\par
{\small Figure 1. (a) Mean absorption spectrum per annealing temperature. (b) Absorbance at \WL~nm (mean $\pm$ SD; $\times$ = excluded film).
Conditions: MAPbI$_3$ films on glass, hotplate anneal 10 min, baseline = bare glass substrate. Hypothetical data.}
\begin{itemize}
\item Absorbance at \WL~nm: \Tlo~°C \loA, \bestT~°C \bestA, \nxT~°C \nxA. Highest at \bestT~°C, lower at every higher temperature.
\item Absorption edge (steepest slope after an 11~nm moving average): \edgeLo--\edgeHi~nm. No clear shift with temperature.
\end{itemize}
\sect{3. What did not work, and likely causes}
\begin{itemize}
\item \decT~°C: \decN{} of \decOf{} films turned yellow. Absorbance at \WL~nm \decA{} (\decPct\,\% of the \bestT~°C value).
Likely cause: the organic component evaporated and the film decomposed to PbI$_2$ (unconfirmed). Check: XRD, Thu Dec 3.
\item \pinT~°C, 1 film: 3 pinholes visible by eye. Absorbance at \WL~nm \pinA, \pinDiff{} below the mean of the other films at this temperature (\pinRef). Excluded from the mean.
Likely cause: dust after substrate cleaning (unconfirmed).
\item PL: not measured. Booked for next Thursday.
\end{itemize}
\sect{4. Plan for next week (Nov 30 -- Dec 4)}
\begin{itemize}
\item Mon Nov 30 -- Tue Dec 1: make 3 films each at 110, 120 and 130~°C (conditions depend on the answer to Q1).
\item Wed Dec 2: UV-Vis. Output: Figure 1 again for the new set.
\item Thu Dec 3: XRD (including this week's decomposed films) and PL. Output: one diffraction pattern and one PL spectrum.
\end{itemize}
\sect{5. Questions (a yes or no is enough)}
\begin{enumerate}[label=Q\arabic*.]
\item May I narrow next week's anneal to 110, 120 and 130~°C? (If no, I repeat this week's five conditions.)
\item May I drop the \decT~°C condition from next week on?
\end{enumerate}
\vfill{\footnotesize Raw data: lab shared drive perovskite/2026-11-27/ (absorbance.csv, samples.csv) \quad Figure and numbers: plot.py}
\end{document}
```
Connect ChatGPT or Claude and use this prompt now · More prompts