In the previous question, the diagnostic code is "7054" in the excel file, but it seems that the yaml file was "07054", so there was a key error.
So there was no key error by removing all zeros in front of the yaml file.
I'm getting this error, but I'm asking why I get this error and how to solve it.
The appropriate neighbor codes are as follows:python
In a definition with a group and its diagnostic codes,
Logic is creating code_to_group, a simple dictionary that tells you which group the diagnostic code is.
Code_to_group["1111"] must indicate which group the diagnostic code "1111" belongs to. This is what code_to_gropu does.
However, the diagnostic code definition of the group and the group should not overlap with the diagnostic code of the other group in the first place. If there is "1111" in group A's diagnostic code, there should not be "1111" in other groups.
Perhaps in the process of removing the preceding zero, the error occurred when "01111" and "1111" were different diagnostic codes and were changed to the same "1111".
Print the print door that checks it in front of the part and turn it around.
I think we need to check if the original file used was 7054. Originally, it was 07054, but Excel automatically changed it to 7054, and the problem occurred because it was stored incorrectly.
© 2022 pinfo. All rights reserved.