Choosing the right style for academic writing

Whoooh, once some big stuff got done, I can return to polishing some drafts. I need to change the style of a whole paper. I am going to do that in three steps using AI. First, I refresh my memory about writing styles. Here is a table listing them.

Writing StyleDescriptionExample with “I”Example with “We”
Active – PersonalUse first-person pronouns to highlight the author’s direct involvement.I have made calculations that show ideal catalysts can exist.We have made calculations that show ideal catalysts can exist.
Active – ImpersonalUses neutral subject (e.g., ‘this plot’, ‘this article’) to describe actions.The calculations show that ideal catalysts can exist.
Passive – EmphasisingFocus on the action rather than the actor, but maintain importance.Calculations have been made, showing that ideal catalysts can exist.
Passive – DiminishingDownplay the action and the results using the past simple tense.Calculations were made, and ideal catalysts could exist.
Perfect Tense – HighlightingUse present perfect to emphasise ongoing relevance or result of an action.I have made calculations, which show ideal catalysts can exist.We have made calculations, which show ideal catalysts can exist.
Past Tense – DiminishingUse simple past to minimise the impact or make the statement more tentative.I made calculations, and they suggest ideal catalysts could exist.We made calculations, and they suggest ideal catalysts could exist.
Conditional or DoubtfulUse conditional mood to express uncertainty or possibility.Calculations may suggest that ideal catalysts can exist.
Future CertaintyExpress actions or findings as a certain outcome in the future.Future calculations will confirm that ideal catalysts can exist.

Second, I analyse a dozen of articles from the targeted journal to identify its commonly used style. Third, I will play a bit with AI to see how my text can be rewritten. As I already have Zotero references in my text, I won’t copy-paste anything from the AI. Yet, I expect the AI assistance will save me some hours.


Some tests with GFN2-xTB

GFN2-xTB [10.1021/acs.jctc.8b01176] is a strange model. I have been testing GFN1 and GFN2 on OOH adsorption on Pt(111). GFN1 from TBLITE with ASE works well. It converges and optimizes to meaningful structures. GFN2 however behaves odd in terms of convergence and optimization. For instance, O–H bond becomes broken. I have tested GFN2 also with xtb, for which the input is quite complicated in comparison to ASE inputs. Anyway, it worked only when I specified the periodic conditions in both xtb.inp and Pt-OOH.coord files. Then I executed xtb like this:

xtb Pt-OOH.coord --gfn2 --tblite --opt --periodic --input xtb.inp
Optimization of Pt(111)–OOH with GFN2-xTB (xtb) resulting in O–H bond dissociation.

P.S. You can see that Pt(111) surface corrugates in case of my 2×2 model. For wider models, the surface remains flat.

A simple recipe for making an apptainer with conda, ASE, and GPAW

At the Tartu HPC cluster I have a limit for number of files, which prevents me from having too many conda environments. So, after I have ruined my base environment, I decided to finally switch to Singularity/Apptainer. Here is a simple recipe for creating an apptainer which is equivalent to standard conda installation. It is just an example. Note that AMD/Intel optimized apptainers will run 10–20% faster than the conda one.

P.S. I have ruined my base environment while trying to install XMGRACE, which is so much easier to use than writing a python code just to check calculations results.

Bootstrap: docker
From: continuumio/miniconda3

%post
    # Install necessary packages including InfiniBand support using apt
    apt-get update && \
    apt-get install -y infiniband-diags perftest ibverbs-providers libibumad3 libibverbs1 libnl-3-200 libnl-route-3-200 librdmacm1 lldpad libdapl2 libdapl-dev rdmacm-utils ibverbs-utils && \
    apt-get install -y grace povray && \
    rm -rf /var/lib/apt/lists/*

    # Configure conda
    conda install --solver=classic conda-forge::conda-libmamba-solver conda-forge::libmamba conda-forge::libmambapy conda-forge::libarchive
    conda install -y python=3.11

    # Install openmpi and ucx from conda
    conda install -y -c conda-forge openmpi=4.1.6=*hc5af2df* ucx

    # Install gpaw from conda
    conda install -y -c conda-forge gpaw=24*=*openmpi*

    # Install other packages
    conda install -y -c conda-forge dftd4 dftd4-python

    # Optionally, clean up Conda to reduce the image size
    conda clean --all -f -y

%environment
    # Activate the base environment
    source /opt/conda/etc/profile.d/conda.sh
    conda activate base

Set of useful soft for a PhD student

Today we installed some software on a laptop of our first year student:

  • Avogadro for quick drawing of chemical structures.
  • PovRay for rending high-quality figures.
  • Gimp for editing raster graphics.
  • Inkscape for editing vector graphics.
  • PDFGear for working with pdfs.
  • Zotero for bibliography management.

In case GPAW is ahead of ASE

When next time (like in 2024), GPAW refers to a beta-version of ASE to that

conda install -c conda-forge gpaw
conda remove --force ase
pip install --upgrade git+https://gitlab.com/ase/ase.git@master

Present of year 2023

I wish everyone a Merry Christmas and a Happy New Year!

As I present, let me share the discovery of this year.

Ferdium is a program that combines all messengers in a single window! I tried to distinguish between work and life using different messengers for years. For work, I used fleep.io. Unfortunately, they decided to close all freemium accounts and raise the prices this year. So, I switched to other messengers and eventually mixed them up. Luckily, I found Ferdium! Just see my print screen – all messengers in one app:

Go to ferdium.org to get it.

By the way, Opera provides a similar functionality, but it does not have so many app in it. For example, it does not have Element.

Simulating colour blindness in GIMP

A simple check whether your colours are suitable for illustrations is implemented in GIMP.

view > display filters > color deficient vision

Also

image > mode > grayscale

For details see: https://docs.gimp.org/2.10/en/gimp-display-filter-dialog.html#gimp-deficient-vision

Type hinting in python

[a note for myself]

var: str='text'
from typing import Optional
def function(variable: str|float, number: int|float, variable: bool=False, a_kwarg: Optional[int]=None):
    pass
from typing import Tuple
def function() -> Tuble[str,str]:
    return 'Hello', 'World!'

Zotero + chatGPT via pdfGEAR

Some time ago (in 2023), I linked Zotero with chatGPT by creating an environment with paper-qa and pyzotero like this:
conda create -n Zotero
conda activate Zotero
conda install pip
pip install paper-qa
pip install pyzotero
pip install bs4

That worked but felt way too complicated … like I am not going to use it on a daily basis. It also reminded me the very first experience with the Meta AI in late 2022 (which everyone already forgot).

Here is a much simpler recipe:

  1. Install Zotero add-on from github.com/retorquere/zotero-open-pdf to enable opening with external pdf viewers.
  2. Install pdfGEAR as your default pdf viewer (external to Zotero).

See how it works on my YouTube channel: youtu.be/4JSy2RsBLDE?si=Hbj7oq7gaOiq6END