CliDyn / climsight

prototype of a system that provide local climate information
BSD 3-Clause "New" or "Revised" License
27 stars 9 forks source link

Split code to several files #52

Closed kuivi closed 5 months ago

kuivi commented 5 months ago

The code has been split into several files, which are still located in the ./ directory. The files include

climsight.py now includes 4 additional imports from *_functions, such as: _from geofunctions import (...).

The skipLLMCall flag has been introduced for debugging purposes. _skip_llmcall = 'skipLLMCall' in sys.argv By using this flag as follows: streamlit run climsight.py skipLLMCall, the call to ChatGPT is omitted.

A minor modification was made to extract_climate_data by adding "_" to hist and future in the function's body, as Streamlit is particular about the use of underscores.

This PR is not very small, but it was challenging to break down the changes further. The next steps will involve moving everything to the src directory and re-configuring Docker.