LDAR-Sim / LDAR_Sim

MIT License
11 stars 22 forks source link

fix: Resolve Error from having no repairable emissions #221

Closed ThomasGalesloot closed 4 months ago

ThomasGalesloot commented 4 months ago

Pull Request Key Information

Reason for change

An error from attempting to read in empty data was occurring when simulating a scenario with no repairable emissions.

What was changed

Added an except block to catch the error and instead initialize the repairable emissions dataframe with an empty dataframe.

Intended Purpose

This change will allow the simulation to run without error when no repairable emissions are present.

Level of version change required

Patch to 4.0.1

Testing Completed

All unit tests pass: unit_test_results.txt Error was resolved in manual test.

Target Issue

N/A

Additional Information

N/A

SEAJang commented 4 months ago

Could we get a note in the changelog?