Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove layer map discovery log warning #1476

Merged
merged 1 commit into from
Nov 26, 2024

Conversation

KartikP
Copy link
Collaborator

@KartikP KartikP commented Nov 19, 2024

Previously, we had some logging for when layer mapping could not be loaded. This logging made it seem like there was an actual error rather than a warning/info. See example here: #533 (comment)

Decided to remove the logging entirely to be consistent with previous version of ModelCommitment. I.e., if no region layer map was provided, it would just silently continue the way it was before.

Additionally, local development (i.e., without placing the model in /models/) also works but the Error makes it seem like it did not. See below:

image

return None
except Exception as e:
self._logger.error(f"Error importing model to search for region_layer_map: {e}")
Copy link
Member

Choose a reason for hiding this comment

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

how about a debug statement instead?

@KartikP KartikP merged commit 897b0b1 into master Nov 26, 2024
4 checks passed
@mschrimpf mschrimpf deleted the kp/remove-layer-mapping-warnings branch November 27, 2024 09:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants