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

Json file encoding #243

Merged
merged 3 commits into from
Sep 7, 2022
Merged

Json file encoding #243

merged 3 commits into from
Sep 7, 2022

Conversation

camisowers
Copy link
Contributor

@camisowers camisowers commented Sep 7, 2022

If you haven't already, please read through our contributing guidelines before opening your PR

What is the purpose of this PR?

Closes #232. Good practice for loading in json files.

How did you implement your changes

Replaces any instances of json.load in toffy with our own json_utils.read_json_file that has path validation and opens the file with a utf-8 encoding.

@camisowers camisowers self-assigned this Sep 7, 2022
@camisowers camisowers added the enhancement New feature or request label Sep 7, 2022
@camisowers camisowers requested review from ngreenwald and alex-l-kong and removed request for ngreenwald September 7, 2022 18:11
Copy link
Member

@ngreenwald ngreenwald left a comment

Choose a reason for hiding this comment

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

Looks good, thanks

@ngreenwald ngreenwald merged commit b772b74 into main Sep 7, 2022
@ngreenwald ngreenwald deleted the list_moly_json_encoding branch September 7, 2022 20:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

list_moly_fovs needs to ensure encoding method is 'utf-8'
2 participants