# Programming Diary

**URL:** https://forum.cadet-web.de/c/cadet-general-information/programming/23.md

[Latest](https://forum.cadet-web.de/latest.md) · [Categories](https://forum.cadet-web.de/categories.md) · [Tags](https://forum.cadet-web.de/tags.md)

---

## [About the Programming Diary category](https://forum.cadet-web.de/t/about-the-programming-diary-category/750)

<div class="topic-metadata">

**Author:** [@j.schmoelder](https://forum.cadet-web.de/u/j.schmoelder)\
**Replies:** 0

</div>

This category is for sharing programming insights that you want to share with the community.

---

## [Autoscale population and number of generations](https://forum.cadet-web.de/t/autoscale-population-and-number-of-generations/1377)

<div class="topic-metadata">

**Author:** [@j.schmoelder](https://forum.cadet-web.de/u/j.schmoelder)\
**Replies:** 1\
**Last updated:** [February 5, 2026, 1:52pm UTC](https://forum.cadet-web.de/t/autoscale-population-and-number-of-generations/1377 "2026-02-05T13:52:54Z")

</div>

I often find it challenging to determine the optimal population size and number of generations for genetic algorithms. Previously, I relied on a fixed number of generations (typically 64) and scaled the population size l…

---

## [How to test experimental features and bug fixes in CADET-Process](https://forum.cadet-web.de/t/how-to-test-experimental-features-and-bug-fixes-in-cadet-process/1254)

<div class="topic-metadata">

**Author:** [@j.schmoelder](https://forum.cadet-web.de/u/j.schmoelder)\
**Replies:** 0\
**Last updated:** [June 27, 2025, 1:22pm UTC](https://forum.cadet-web.de/t/how-to-test-experimental-features-and-bug-fixes-in-cadet-process/1254 "2025-06-27T13:22:42Z")

</div>

We frequently receive requests to add new features to CADET-Process or to fix bugs, and we are very grateful to everyone who contacts us and helps us improve our software. This post aims to provide guidance for those les…

---

## [A Guide to Reproducible Python Environments and CADET Installations](https://forum.cadet-web.de/t/a-guide-to-reproducible-python-environments-and-cadet-installations/766)

<div class="topic-metadata">

**Author:** [@ronald.jaepel](https://forum.cadet-web.de/u/ronald.jaepel)\
**Replies:** 2\
**Last updated:** [September 12, 2023, 10:43am UTC](https://forum.cadet-web.de/t/a-guide-to-reproducible-python-environments-and-cadet-installations/766 "2023-09-12T10:43:24Z")

</div>

A recommended workflow to install CADET-Process: For more detail on each point, see the post below. Install a python package manager. We recommend conda via miniforge Prepare an environment.yml text file. For example i…

---

## [CADET-Core BLAS linking in conda](https://forum.cadet-web.de/t/cadet-core-blas-linking-in-conda/1017)

<div class="topic-metadata">

**Author:** [@ronald.jaepel](https://forum.cadet-web.de/u/ronald.jaepel)\
**Replies:** 2\
**Last updated:** [August 8, 2024, 6:45pm UTC](https://forum.cadet-web.de/t/cadet-core-blas-linking-in-conda/1017 "2024-08-08T18:45:28Z")

</div>

Motivation @j.schmoelder and me were wondering if CADET-Core installed from conda is using openblas or intel MKL blas and what the performance difference might be. So I checked. Background CADET-Core compiled for conda …

---

## [Numpy Array Data Type Objects (dtype)](https://forum.cadet-web.de/t/numpy-array-data-type-objects-dtype/754)

<div class="topic-metadata">

**Author:** [@j.schmoelder](https://forum.cadet-web.de/u/j.schmoelder)\
**Replies:** 1\
**Last updated:** [July 23, 2024, 5:09pm UTC](https://forum.cadet-web.de/t/numpy-array-data-type-objects-dtype/754 "2024-07-23T17:09:10Z")

</div>

Here’s another fun little example regarding numpy indices. import numpy as np array = np.array(\[1, 2\]) print(array) \[1 2\] Now, I’m trying to assign a new value to the first item of the array: array\[0\] = 1.5 print(ar…

---

## [How to Debug CADET on Windows with Visual Studio](https://forum.cadet-web.de/t/how-to-debug-cadet-on-windows-with-visual-studio/933)

<div class="topic-metadata">

**Author:** [@ronald.jaepel](https://forum.cadet-web.de/u/ronald.jaepel)\
**Replies:** 1\
**Last updated:** [April 26, 2024, 3:15pm UTC](https://forum.cadet-web.de/t/how-to-debug-cadet-on-windows-with-visual-studio/933 "2024-04-26T15:15:24Z")

</div>

I thought I’d turn this into it’s own post to make it easier to find it. Here’s a guide on how to Debug CADET on Windows with Visual Studio Set up your Visual Studio to build cadet Create a launch.vs.json file in the c…

---

## [Test running (especially in Debug mode)](https://forum.cadet-web.de/t/test-running-especially-in-debug-mode/885)

<div class="topic-metadata">

**Author:** [@ronald.jaepel](https://forum.cadet-web.de/u/ronald.jaepel)\
**Replies:** 4\
**Last updated:** [April 26, 2024, 11:55am UTC](https://forum.cadet-web.de/t/test-running-especially-in-debug-mode/885 "2024-04-26T11:55:05Z")

</div>

If you want to run tests in CADET-Core you need to ensure that in the CMakeSettings.json file: the “cmakeCommandArgs” contain: -DENABLE\_TESTS=ON to enable building the test runner -DENABLE\_STATIC\_LINK\_LAPACK=ON -DENAB…

---

## [How to itereate over multiple parameter settings](https://forum.cadet-web.de/t/how-to-itereate-over-multiple-parameter-settings/910)

<div class="topic-metadata">

**Author:** [@j.schmoelder](https://forum.cadet-web.de/u/j.schmoelder)\
**Replies:** 0\
**Last updated:** [April 1, 2024, 9:10am UTC](https://forum.cadet-web.de/t/how-to-itereate-over-multiple-parameter-settings/910 "2024-04-01T09:10:36Z")

</div>

I’m sure everyone knows this scenario: you have different parameter settings that you want to evaluate, so you create a simple for-loop and all is good. But then you wonder, wouldn’t it be interesting to also examine the…

---

## [Using jupytext and pre-commit to version control examples](https://forum.cadet-web.de/t/using-jupytext-and-pre-commit-to-version-control-examples/758)

<div class="topic-metadata">

**Author:** [@j.schmoelder](https://forum.cadet-web.de/u/j.schmoelder)\
**Replies:** 0\
**Last updated:** [August 23, 2023, 8:31am UTC](https://forum.cadet-web.de/t/using-jupytext-and-pre-commit-to-version-control-examples/758 "2023-08-23T08:31:21Z")

</div>

There are a couple of challenges that I face when writing examples: The examples should be provided as Jupyter Notebooks so that they can include equations, figures, links, etc. and can be included in our documentation…

---

## [Exposing array indices programmatically](https://forum.cadet-web.de/t/exposing-array-indices-programmatically/751)

<div class="topic-metadata">

**Author:** [@j.schmoelder](https://forum.cadet-web.de/u/j.schmoelder)\
**Replies:** 0\
**Last updated:** [August 4, 2023, 8:52am UTC](https://forum.cadet-web.de/t/exposing-array-indices-programmatically/751 "2023-08-04T08:52:27Z")

</div>

Often times, we need to index certain parts of an array. import numpy as np array = 0.1 \* np.arange(24).reshape(4, 6) print(array) \[\[0. 0.1 0.2 0.3 0.4 0.5\] \[0.6 0.7 0.8 0.9 1. 1.1\] \[1.2 1.3 1.4 1.5 1.6 1.7\] \[1.8…
