Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
79 commits
Select commit Hold shift + click to select a range
b5d9e43
docs: Add the content of Fork & branch processing
LeoLuosifen Aug 19, 2025
852e350
Add Code style and Testing
Sallie00 Aug 19, 2025
f9a72d0
docs: Add the "Pull Request Regulation" part.
ziqi0067 Aug 19, 2025
9143a2c
docs: Fixed the "pip" to "pipenv".
ziqi0067 Aug 19, 2025
560ceed
docs: Fixed the content of the Pull Request Regulation format
LeoLuosifen Aug 19, 2025
88dedfe
docs(contributing): update introduction section of How to contribute …
FengW01 Aug 20, 2025
3921e57
Merge remote-tracking branch 'origin/yluo0664' into fwan
FengW01 Aug 20, 2025
2fa3a60
docs(contributing): update introduction section of How to contribute …
FengW01 Aug 20, 2025
48edb0e
docs: update contributing guide
FengW01 Aug 20, 2025
730e00a
docs: A strategy module has been added to the Pull Request section, a…
ziqi0067 Aug 20, 2025
79db946
feat: add Global Column Names class to replace string
LeoLuosifen Aug 23, 2025
01e95a6
code sanisitation(First version)
Aug 23, 2025
cfe0068
Merge branch 'ltc' into yluo0664
LeoLuosifen Aug 23, 2025
0b20c6a
fix: updated the comment
LeoLuosifen Aug 23, 2025
84bb3ed
code sanisitation(Version 2)
Aug 23, 2025
825febb
fix: replaced the string that using Class ColNames
LeoLuosifen Aug 23, 2025
b4a31da
fix: replaced the string that using Class ColNames in natural_ventila…
LeoLuosifen Aug 23, 2025
d2f4139
fix: replaced the string that using Class ColNames in extract_df.py a…
LeoLuosifen Aug 23, 2025
9b3ccac
docs: update pull request regulation of contributing.md
Sallie00 Aug 23, 2025
38e4da1
fix: replaced the string that using Class ColNames in wind.py and cha…
Sallie00 Aug 23, 2025
8138218
fix: replaced the string that using Class ColNames in charts_sun.py
LeoLuosifen Aug 23, 2025
2ab0f0c
fix: replaced the string that using Class ColNames in utils.py and ps…
Sallie00 Aug 23, 2025
be943a6
fix: Updated ElementIds of global_column_names.py
Kira-Liu00 Aug 23, 2025
2452ebe
fix: delete components.py
Sallie00 Aug 23, 2025
33f4865
Fix:Updated the ElementIDs of the explorer.py and global_column_names.py
ziqi0067 Aug 23, 2025
cf56585
fix: Updated ElementIds of the psy-chart and global _column _names.py
Kira-Liu00 Aug 23, 2025
bd4aced
Merge origin/Ziqi into Kira_Liu: take theirs for global_column_names.py
Kira-Liu00 Aug 23, 2025
2b82d79
Fix: Updated the ElementIds of global_column_names.py
Kira-Liu00 Aug 23, 2025
34f1ad3
Fix:Updated the ElementIDs of the explorer.py, global_column_names.py…
ziqi0067 Aug 23, 2025
d62aa83
Merge remote-tracking branch 'origin/Ziqi' into Kira_Liu
Kira-Liu00 Aug 24, 2025
85d45a0
fix: Updated the ElementIds of outdoor.py, psy-chart.py, global_colum…
Kira-Liu00 Aug 24, 2025
1e1cccf
Fix: update the sun.py, wind.py and global_column_names.py
FengW01 Aug 24, 2025
da93f7f
Fix:
Aug 24, 2025
01f4045
Fix:Align development branch versions to avoid conflicts
Aug 24, 2025
7828453
fix: aligned development branch versions of 3 days ago to avoid confl…
LeoLuosifen Aug 24, 2025
c7f11c4
fix: updated new column names
LeoLuosifen Aug 24, 2025
a6acb0b
fix: replaced the string with new column names
LeoLuosifen Aug 24, 2025
e85bfe1
fix: renamed the python file of global_element_ids.py
LeoLuosifen Aug 24, 2025
2dd992c
fix: resolved the format to avoid conflict
LeoLuosifen Aug 24, 2025
2381e85
Fix: updated the file global_element_ids.py and summary.py
Aug 24, 2025
f822cca
fix: replaced the string with global constants
LeoLuosifen Aug 25, 2025
0aeeb25
fix: resolved the conflict issues
LeoLuosifen Aug 25, 2025
9aee692
fix: resolved the conflict issues for three md documentations
LeoLuosifen Aug 25, 2025
5cc9259
fix: resolved the conflict issues with global-diffuse-and-normal-sola…
LeoLuosifen Aug 25, 2025
54ce1d8
fix: formatted the code style via using Black in global_column_names.py
LeoLuosifen Aug 25, 2025
a8c6d1d
Fix: updated the ElementIds in file wind
Aug 26, 2025
cf63851
fix: replaced the string that using Class ColNames in charts_sun.py a…
Sallie00 Aug 26, 2025
373b44c
Fix:Update the elements of global_column_names.py and charts_sun.py.
ziqi0067 Aug 26, 2025
f03a6ed
Fix: Update the column name in file charts_data_explorer.py
Aug 26, 2025
722caca
Fix: Update the column name in file extract_df.py anad global_column_…
Aug 26, 2025
73b2f8a
Fix:Update the elements of template_graphs.py.
ziqi0067 Aug 26, 2025
b8568e3
Fix: Update the column name in file global_scheme.py and psy-chart.py
Aug 26, 2025
6adf2fc
Fix:Update the elements of global_scheme.py, natural_ventilation.py, …
ziqi0067 Aug 27, 2025
dceb856
Fix: Update the column name in file global_scheme.py
Aug 27, 2025
2bd7885
Merge branch 'Ziqi' into wlyu
Sallie00 Aug 27, 2025
c62a333
Merge remote-tracking branch 'refs/remotes/origin/Ziqi' into ltc
Aug 27, 2025
a75124e
fix: replaced the string that using Class ColNames in utils.py and su…
Sallie00 Aug 27, 2025
6104374
Merge remote-tracking branch 'refs/remotes/origin/wlyu' into ltc
Aug 27, 2025
7c43d2a
Fix: Update the column name in file global_column_names.py, layout.py…
Aug 27, 2025
49d12c9
fix: replaced the string with the constants
LeoLuosifen Aug 27, 2025
80a57f0
Merge branch 'development' into yluo0664
LeoLuosifen Aug 27, 2025
81b2ec8
fix: replaced the string with the constants in outdoor.py
LeoLuosifen Aug 27, 2025
f3dca83
style: ruff format
FedericoTartarini Aug 28, 2025
02cd0ad
fix(layout): Correct label text for yearly chart
FedericoTartarini Aug 28, 2025
97fbd56
fix: updated the mistake for using constant
LeoLuosifen Aug 28, 2025
0c5ff18
feat(global): Add seasonal wind rose document ID
FedericoTartarini Aug 28, 2025
dc32db9
Merge remote-tracking branch 'LeoLuosifen/yluo0664' into fork/LeoLuos…
FedericoTartarini Aug 28, 2025
f62dfb4
Fix: Add a new file called global_id_buttons.py
Aug 29, 2025
fefca19
Merge branch 'yluo0664' into ltc
Aug 29, 2025
2706875
Merge branch 'ltc' into yluo0664
LeoLuosifen Aug 29, 2025
530037b
fix(layout): fixed the class name to avoid can not load Normalize dat…
LeoLuosifen Aug 29, 2025
189dbad
Merge branch 'yluo0664' into ltc
Aug 29, 2025
cf6ded0
fix: replaced the string that using Class IdButtons in explorer.py, n…
Sallie00 Aug 29, 2025
a23786d
Merge branch 'wlyu' into ltc
Aug 29, 2025
01d2a85
Fix: Updated ids of files global_element_ids.py,layout.py,main.py,sel…
Aug 29, 2025
d5eda1e
fix: fixed code sanitisation
LeoLuosifen Aug 30, 2025
965a537
fix: fixed the id_button aligned with IdButtons.* and aligned var/fil…
LeoLuosifen Aug 30, 2025
d5223c8
fix(data): Replace string references with ColNames for wind speed
FedericoTartarini Sep 1, 2025
54d6016
fix(layout): Correct capitalization of yearly chart label
FedericoTartarini Sep 1, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

149 changes: 149 additions & 0 deletions docs/contributing/contributing.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,72 @@ description: Guide on how to contribute to this project
# How to contribute

First off, thanks for taking the time to contribute!
We use GitHub as our main collaboration platform. Please work from the `development` branch, create small feature branches, and open focused pull requests. Follow Conventional Commit messages (e.g., `feat:`, `fix:`, `docs:`), format Python code with Black, and add tests where needed. Never merge your own PR—wait for review and address all comments (including AI reviewer suggestions). Use Issues and Projects to track tasks and discussions.

> This project requires Python 3.11. Do not use Python 3.12 or newer, as it may cause dependency incompatibilities, build failure or runtime errors


## General Feedback

If you have a general feedback about our project, please do not open an issue but instead please fill in this [form](https://forms.gle/LRUq3vsFnE1QCLiA6)

## Fork & branch processing

First fork the origin repository to your own github repository, then clone the repository to your local computer.

```bash
git clone https://github.com/Your Account name/clima.git
cd clima
```
Comment on lines +21 to +24
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue

Fix clone URL placeholder.

Space in “Your Account name” will break copy/paste.

Apply this diff:

-git clone https://github.com/Your Account name/clima.git
+git clone https://github.com/<your-account-name>/clima.git
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
```bash
git clone https://github.com/Your Account name/clima.git
cd clima
```
🧰 Tools
🪛 markdownlint-cli2 (0.17.2)

23-23: Dollar signs used before commands without showing output

(MD014, commands-show-output)


24-24: Dollar signs used before commands without showing output

(MD014, commands-show-output)

🤖 Prompt for AI Agents
In docs/contributing/contributing.md around lines 21 to 24, the git clone URL
contains a space in "Your Account name" which breaks copy/paste; replace the
placeholder with a proper GitHub repo URL template (e.g.
https://github.com/<YourAccountName>/clima.git) and ensure the subsequent line
remains "cd clima".


Set up the upstream repository and check the output repositories.

```bash
git remote add upstream https://github.com/CenterForTheBuiltEnvironment/clima.git

git remote -v
```

The terminal should output a list:

- `origin → your Fork repository`
- `upstream → origin repository`

Check all branches.

```bash
git branch -a
```

The terminal will show a list of branches:

```bash
> * main
remotes/origin/HEAD -> origin/main
remotes/origin/development
remotes/origin/main
```

Pull the development branch first, and if the terminal does not notice you that you should try the second command.

```bash
git checktout development

git checkout -b development origin/development
```

Comment on lines +54 to +61
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue

Typo in git command: checktout → checkout.

This will block newcomers following the guide.

Apply this diff:

-git checktout development
+git checkout development
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
Pull the development branch first, and if the terminal does not notice you that you should try the second command.
```bash
git checktout development
git checkout -b development origin/development
```
Pull the development branch first, and if the terminal does not notice you that you should try the second command.
🤖 Prompt for AI Agents
In docs/contributing/contributing.md around lines 54 to 61, there's a typo in
the git command ("git checktout development"); update that token to the correct
"git checkout" so the example reads "git checkout development" and ensure the
two commands remain on separate lines as shown.

Create a new branch in the development branch.

```bash
git checkout -b (your branch name)
```

Finally update and push to your repository branch if you modify the files.

```bash
git push origin (your branch name)
```

## Code of Conduct

Available [here](code_of_conduct.md)
Expand All @@ -35,6 +96,57 @@ pipenv run pre-commit run --all-files
Hence, you will need to make sure that the code is formatted correctly before committing your changes; otherwise, the commit will fail.
More information about pre-commit hooks can be found [here](https://pre-commit.com/).

Install Black:

We use ruff to enforce the code style and code formatting. You can run it with:

```bash
pipenv run ruff check .
pipenv run ruff format .
```

To ensure that the code is formatted correctly, we use a pre-commit hook that runs Ruff before every commit.
Run the following once to enable hooks in your local repo:

```bash
pipenv run pre-commit install
# optional: run on all files
pipenv run pre-commit run --all-files
```

Hence, you will need to make sure that the code is formatted correctly before committing your changes; otherwise, the commit will fail.
More information about pre-commit hooks can be found [here](https://pre-commit.com/).

```bash
pipenv install black
```

Format your code before committing:

```bash
black .
```

## Testing

Before submitting a Pull Request, please make sure:
- All tests should pass.
- You have installed project dependencies:

```bash
npm install

pipenv install -r requirements.txt
```

From the root directory, run:

```bash
cd tests/node

npx cypress run
```

## Submitting changes

Please send a Pull Request with a clear list of what you've done. Always write a clear log message for your commits. One-line messages are fine for small changes, but bigger changes should look like this:
Expand All @@ -45,6 +157,43 @@ $ git commit -m "A brief summary of the commit
> A paragraph describing what changed and its impact."
```

> Detailed requirements for submitting a PR are described in the [Pull Request Regulation](#pull-request-regulation) section below

Classification of Common Commit Types:

- `Main (Master)`: Stable branch, merge code that passes review and CI; merge and release every time,
- `Develop`: Continuous Integration branch for daily integration with multiple collaborators.
- `Feature/*`: feature development branch, cut out from main or develop, send PR to merge in after completing the feature.
- `Fix/*`: defect repair branch, the same process as feature
- `Release/*`: release preparation branch for freezing versions, fixing documentation, doing regressions and tagging.
- `docs/*`, `chore/*`, `refactor/*`, `test/*`: documentation, miscellaneous, refactor, test type branches.
- `Style`: style modification (does not affect the function): code formatting, space adjustment, naming rules unity.
- `Refactor`: Code Refactoring: Refactor existing code to improve maintainability.
- `Test`: Add or modify tests: add unit tests, integration tests, or modify test logic.
- `Chore`: Build Configuration, Dependency Management, CI/CD Configuration Updates.
- `Perf`: Performance Optimisation: Optimising code execution efficiency or memory usage.
- `Ci`: CI Configuration Related: Changing Continuous Integration Configurations for Github Actions, Travis, Jenkins, etc.
- `Build`: build system related: modify build scripts, packaging configuration.
- `Revert`: Rollback Commit: Undoing a Previous Commit
- `Security`: Security fixes, fixing security vulnerabilities, updating dependencies to prevent attacks.
- `Deps`: Dependency Management: Dependency Management/Adding, updating, and removing dependency libraries
- `Infra`: Infrastructure related: changes to development environments, containers, server configurations, etc.

## Pull Request Regulation
**Time to submit PR:**

- User requirements/issues have been addressed or discussed in Issue and consensus has been reached.
- Changes have been minimised (small steps/phased submission) to avoid "mega PRs".

**The pull request should include the following information:**

- **Description:** Provide a brief summary of the changes, related issues, and motivation. List any required dependencies. **Fixes # (issue)**

- **Type of Change:** Bug fix (non-breaking); New feature (non-breaking); Breaking change; Documentation update.

- **Testing:** Describe how you tested your changes and how we can reproduce them. Include test details if necessary.


## Thanks

Thank you again for being interested in this project! You are awesome!
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,4 @@ The values are then converted into a scale assessing thermal stress, either beca
<figure><img src="../../../.gitbook/assets/UTCI Index copia.png" alt=""><figcaption><p>UTCI heat stress index heatmap in the four conditions for <strong>Rome, ITA</strong></p></figcaption></figure>

The UTCI is a useful tool to design the outdoor space, to maximize the number of comfortable hours. The designer can influence two factors out of the four driving outdoor comfort: radiant temperature (i.e. exposure to the sun) and wind speed (i.e. exposure to the wind).

Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,4 @@ Moreover, data can be filtered by date, time, or one of the [Clima dataframe](..

Learn more about the Psychrometric tab by watching the following video.

{% embed url="https://youtu.be/VJ_wOHadVdw?si=iAcBQpq3IgCNY-H6&t=582" %}

{% embed url="https://youtu.be/VJ_wOHadVdw?si=iAcBQpq3IgCNY-H6&t=582" %}
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@ The main application of the psychrometric diagram is in the design of large all-

The diagram is applied whenever the humidity of a particular environment needs to be studied, for reasons of thermal comfort or for the preservation of valuable objects, such as in museums.

<figure><img src="../../../.gitbook/assets/675px-Violino_Clisbee.jpg.webp" alt=""><figcaption><p>Stradivari Violin, stored under precise temperature and humidity conditions to prevent the valuable wood from warping. Source: <a href="https://www.frammentirivista.it/il-clisbee-il-prezioso-violino-di-stradivari/">Frammentirivista</a></p></figcaption></figure>
<figure><img src="../../../.gitbook/assets/675px-Violino_Clisbee.jpg.webp" alt=""><figcaption><p>Stradivari Violin, stored under precise temperature and humidity conditions to prevent the valuable wood from warping. Source: <a href="https://www.frammentirivista.it/il-clisbee-il-prezioso-violino-di-stradivari/">Frammentirivista</a></p></figcaption></figure>
1 change: 0 additions & 1 deletion docs/documentation/tabs-explained/sun-and-cloud/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,3 @@ This allows the user to identify climatic patterns in relation to the apparent s
Learn more about the Sun and Clouds tab by watching the following video.

{% embed url="https://youtu.be/VJ_wOHadVdw?si=mB2xNH57MWW_4CRR&t=447" %}

Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ As the Cloud cover is reported in tenths of coverage (i.e. 0 is 0/10 covered. 10
| Cloudy (ABOVE range) | <img src="../../../.gitbook/assets/Cloudy.2.png" alt="" data-size="line"> | 9 |
| Cloudy (ABOVE range) | <img src="../../../.gitbook/assets/Cloudy.2.png" alt="" data-size="line"> | 10 |

<figure><img src="../../../.gitbook/assets/CBEClima_San Francisco Intl AP_USA_cloud_cover_sun_tab.svg" alt=""><figcaption><p>Example cloud coverage graph for San Francisco, USA</p></figcaption></figure>
<figure><img src="../../../.gitbook/assets/CBEClima_San Francisco Intl AP_USA_cloud_cover_sun_tab.svg" alt=""><figcaption><p>Example cloud coverage graph for San Francisco, USA</p></figcaption></figure>
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,3 @@ The chart above shows the [scatter plot](https://en.wikipedia.org/wiki/Scatter\_
[Heat maps](https://en.wikipedia.org/wiki/Heat\_map) allow the intensity of values to be perceived through color palettes. These graphs are very helpful in seeing how magnitudes vary throughout the year.

<figure><img src="../../../.gitbook/assets/Daily sun exa.png" alt=""><figcaption><p>Examples of daily graphs with different variables (from top left to bottom right): global horizontal radiation, global horizontal illuminance, zenith luminance, opaque sky cover</p></figcaption></figure>

Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,4 @@ Typical daily graphs showing the amount of energy gained from the sun have many
* evaluating sustainable **renewable energy solutions** such as solar thermal or photovoltaic panels.

The integral of the curves in the graphs is the total energy (in Wh/m²), supplied by the sun. Be careful in considering the [different types of solar radiation.](global-diffuse-and-normal-solar-radiation-explained.md)

Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ $$

![Conceptual representation of Global Horizontal, Diffuse Horizontal and Direct Normal Solar Radiation](../../../../.gitbook/assets/picture3.png)

![Measurement of Direct Irradiation on a horizontal and a normal plane](../../../../.gitbook/assets/picture4.png)
![Measurement of Direct Irradiation on a horizontal and a normal plane](../../../../.gitbook/assets/picture4.png)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue

Use “Irradiance” instead of “Irradiation” in the image alt text

Irradiance is the correct quantity for GHI/DHI/DNI; irradiation is time-integrated energy (different unit). Also simplified phrasing.

Apply this diff:

-![Measurement of Direct Irradiation on a horizontal and a normal plane](../../../../.gitbook/assets/picture4.png)
+![Measurement of Direct Irradiance on horizontal and normal planes](../../../../.gitbook/assets/picture4.png)
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
![Measurement of Direct Irradiation on a horizontal and a normal plane](../../../../.gitbook/assets/picture4.png)
![Measurement of Direct Irradiance on horizontal and normal planes](../../../../.gitbook/assets/picture4.png)
🤖 Prompt for AI Agents
In
docs/documentation/tabs-explained/sun-and-cloud/global-and-diffuse-horizontal-solar-radiation/global-diffuse-and-normal-solar-radiation-explained.md
around line 16, the image alt text uses the incorrect term "Irradiation"; change
it to "Irradiance" and simplify phrasing. Replace the alt text with a corrected
version such as "Measurement of Direct Irradiance on horizontal and normal
planes" (or similar concise wording) so it correctly reflects GHI/DHI/DNI as
irradiance rather than irradiation.

1 change: 0 additions & 1 deletion docs/documentation/tabs-explained/tab-summary/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,3 @@ Learn more about the Climate Summary tab by watching the following video.

<!-- markdownlint-disable-next-line MD034 -->
{% embed url="https://youtu.be/VJ_wOHadVdw?si=H-93XRhh5Neuby_b&t=220" %}

Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ All the variables in the new Clima dataframe are listed below.
* [Wet-bulb temperature](https://en.wikipedia.org/wiki/Wet-bulb\_temperature)
* [Elevation](https://en.wikipedia.org/wiki/Solar\_zenith\_angle)
* [Azimuth](https://en.wikipedia.org/wiki/Solar\_azimuth\_angle)
* [Saturation pressure](https://en.wikipedia.org/wiki/Vapour\_pressure\_of\_water)
* [Saturation pressure](https://en.wikipedia.org/wiki/Vapour\_pressure\_of\_water)
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ On mouse hover, they display various statistical properties of the data:
* 1st quartile
* 3rd quartile

![Climate Profiles for Jerusalem Center, ISRAEL](<../../../.gitbook/assets/image (2) (1) (1).png>)
![Climate Profiles for Jerusalem Center, ISRAEL](<../../../.gitbook/assets/image (2) (1) (1).png>)
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ The base temperature does not necessarily correspond to the desired building int

![example deegree days for New York, Downtown Manhattan, NY, USA](<../../../.gitbook/assets/image (3).png>)

![example deegree days for Palermo Boccadifalco Airport, ITALY](<../../../.gitbook/assets/image (1) (1).png>)
![example deegree days for Palermo Boccadifalco Airport, ITALY](<../../../.gitbook/assets/image (1) (1).png>)
Comment on lines 13 to +15
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue

Correct alt-text spelling: “deegree” → “degree” (twice)

These are visible to screen reader users; worth fixing.

-![example deegree days for New York, Downtown Manhattan, NY, USA](<../../../.gitbook/assets/image (3).png>)
+![example degree days for New York, Downtown Manhattan, NY, USA](<../../../.gitbook/assets/image (3).png>)

-![example deegree days for Palermo Boccadifalco Airport, ITALY](<../../../.gitbook/assets/image (1) (1).png>)
+![example degree days for Palermo Boccadifalco Airport, Italy](<../../../.gitbook/assets/image (1) (1).png>)
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
![example deegree days for New York, Downtown Manhattan, NY, USA](<../../../.gitbook/assets/image (3).png>)
![example deegree days for Palermo Boccadifalco Airport, ITALY](<../../../.gitbook/assets/image (1) (1).png>)
![example deegree days for Palermo Boccadifalco Airport, ITALY](<../../../.gitbook/assets/image (1) (1).png>)
![example degree days for New York, Downtown Manhattan, NY, USA](<../../../.gitbook/assets/image (3).png>)
![example degree days for Palermo Boccadifalco Airport, Italy](<../../../.gitbook/assets/image (1) (1).png>)
🤖 Prompt for AI Agents
In docs/documentation/tabs-explained/tab-summary/degree-days-explained.md around
lines 13 to 15, the two image alt texts misspell “degree” as “deegree”; update
both alt attributes to read “degree” (e.g., change "example deegree days" to
"example degree days") so screen readers receive the correct spelling.

6 changes: 5 additions & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
from app import app
from pages.lib.layout import banner, footer, build_tabs
from config import AppConfig
from pages.lib.global_element_ids import ElementIds

server = app.server

Expand All @@ -22,7 +23,10 @@


# callback for survey alert (dbc.Toast)
@callback(Output("alert-auto", "is_open"), Input("interval-component", "n_intervals"))
@callback(
Output(ElementIds.ID_MAIN_ALERT_AUTO, "is_open"),
Input(ElementIds.ID_MAIN_INTERVAL_COMPONENT, "n_intervals"),
)
def display_alert(n):
return n == 1

Expand Down
Loading