I'm making use of this rare "free" time to catch up on stuff I never have chance to do. Here's another Streamlit app. This one is a very simple angular to physical size converter that works in astronomy-friendly units. Yes, this is ludicrously simple, and the calculation is a single line of code, and there are much more sophisticated cosmological calculators out there anyway. What I want is something that acts as a backup to my ~24 year old graphical calculator, does incredibly simple calculations I understand, doesn't print out a load of complex extraneous stuff, and is handily available online.

I used ChatGPT-4o to generate the base code, then tided it up myself to my own preference. To be fair it worked perfectly well straight off the bat, and I only tinkered with it for the aesthetics : mainly, having all the user's GUI inputs on a single line rather than four separate ones. The only minor oddity from the AI was that it wanted the user to enter an angular unit when converting physical size to angular, which isn't necessary. Fairly sure I could have prompted it to do all the changes I wanted but I just don't want to get that hands-off with it yet.

#Science
#Astronomy
#AI

https://angularsizepy.streamlit.app/

There are no comments yet.