Commit 24af6268 authored by JEAN-YVES SGRO's avatar JEAN-YVES SGRO
Browse files

Update readme.md

parent c17eb9aa
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -31,6 +31,12 @@ The next requests yield

The output now computes molecular weight, as ChatGPT changed the nature of the dictionary. However, the code is useful in illustrating all the steps necessary to create a functional GUI, including selecting and writing output. The code makes use of user-defined functions.

The aa composition from version 2 is in the form *e.g.* 1L: 0.18` and we can verify that the numbers sum to ` 1 ` (*i.e.* 100%) with a shell (`bash` or `zsh`) script. Assuming that the output file name is `output.txt`:

```
egrep "^[A-Z]:" < output.txt |awk 'END { print s } { s += $2 }' 
```
The output would be `1.01` due to rounding.