Skip to content

Switched to use dict.get() #8

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

Merged
merged 1 commit into from
Jun 5, 2025

Conversation

jeffng-or
Copy link
Collaborator

Updating per review feedback

@jeffng-or jeffng-or requested a review from maliberty June 5, 2025 22:19
Comment on lines +66 to +67
self.bitcell_width_um = json_data.get("bitcell_width_um", None)
self.bitcell_height_um = json_data.get("bitcell_height_um", None)
Copy link
Member

Choose a reason for hiding this comment

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

It used to do 'float' on the value and now doesn't. Is that ok?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yeah, the original implementation didn't trust the types coming in from JSON, so I was going with that. But, I've only entered floats for these values in the config, so felt it was OK

@maliberty maliberty merged commit db3968e into The-OpenROAD-Project:main Jun 5, 2025
13 checks passed
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.

2 participants