Hi!
I just wanted clarified what should be done with output_file of hw 8 rec. More precisely, I understood the process of creating the image (putting bg then the colors found while exploring but in opposite order) but I don't understand if we should create a new file with the name given by the parameter output_file or if we should do something else. For example, in hw 6 rec, we have to create a new image for the path taken and the text specifies this in the things that the program should do: "the path to a .png file (fname_out) to be created". As a matter of fact, if I create a matrix and I save it with images.save(...) it works and I am able to create images and save them in this way without getting errors. Conversely, if I try to do the same in hw 8 rec (the text doesn't specify anything on how to deal with the output_file so I assumed the process would be the same) I get the error "It's forbidden to open file '...' ", whereas if I try without images.save(...) I get the error "FileNotFound: No such file or directory: 'test_empty02.out.png' " (for the other tests, the name obviously changes).
Does anyone know how to create this file without using images.save(...) or is this something that shouldn't be happening?
Any input is appreciated and of course if one of the Professors could participate, it would be perfect.
I just wanted clarified what should be done with output_file of hw 8 rec. More precisely, I understood the process of creating the image (putting bg then the colors found while exploring but in opposite order) but I don't understand if we should create a new file with the name given by the parameter output_file or if we should do something else. For example, in hw 6 rec, we have to create a new image for the path taken and the text specifies this in the things that the program should do: "the path to a .png file (fname_out) to be created". As a matter of fact, if I create a matrix and I save it with images.save(...) it works and I am able to create images and save them in this way without getting errors. Conversely, if I try to do the same in hw 8 rec (the text doesn't specify anything on how to deal with the output_file so I assumed the process would be the same) I get the error "It's forbidden to open file '...' ", whereas if I try without images.save(...) I get the error "FileNotFound: No such file or directory: 'test_empty02.out.png' " (for the other tests, the name obviously changes).
Does anyone know how to create this file without using images.save(...) or is this something that shouldn't be happening?
Any input is appreciated and of course if one of the Professors could participate, it would be perfect.