I wrote a script to generate CSV files so I don’t have to manually enter every imaging session. The script itself is fine. The filter IDs are the problem.
I’m using Optolong 2″ filters. The time when I first wrote this, Optolong 2″ Red had ID 1245, while the rest of the Optolong 2″ filters were continuous from 3103–3108. That made no sense, but fine.
Today I reused the same script and the site told me filter 3107 does not exist. I checked 3107 was SII, so I had to manually enter it just to continue.
Then I checked the filter list again. ID 1245 is no longer Optolong 2″ Red and is now some generic Optolong Red category. The Optolong 2″ SII 3nm filter, which used to be next to the other Optolong 2″ filters, is now ID 5523. Different number for 2/7 filters in one month.
So now filter IDs are not continuous, not stable, and can change over time. Are these numbers just internal database IDs and what users are supposed to rely on? What is the correct and stable way to reference a filter without everything breaking later?