Day 12!
Today brought more hardships as Hudson and I battled our way through error after error. I worked on creating for loops that would splice new file names together from the given directories, and save the altered images to the new name. The method used to run through each folder within a folder does not save each image in the correct order. Due to this issue, we needed to create a way to correctly align each image to the correct white image. I attempted to create a for loop for this... First, I created two lists that held the wavelength numbers for both the images, and the corresponding white images. Then, I instantiated a variable within another for loop, which was running through the images wavelengths, called 'num.' Within the for loop, I created a while loop that said :
while i != whiteImagesWavelengths[num]:
num+=1
Which would mean that the rest of the code would not run until the white images wavelength matches the actual images.
However, I am running into an issue with saving the images now. I keep getting an error that says the file directory I am trying to save to already exists - even when it didn't before I ran the program. Hopefully, I will be able to resolve this issue tomorrow! I have a feeling I will be up all night thinking about it.
Monday, July 23, 2018
Subscribe to:
Post Comments (Atom)
Day 28-29
Days 28 and 29 were spent on modifying the presentation. Yesterday, we did a dry run in front of our advisors and fellow interns. Before tha...
-
Day 14! Today did not go well... I spent a large majority of it attempting to get anything from the Corvette sticker, to no avail. SAM and...
-
Day 13! Today, my partner was absent, so I had to do more learning than usual, so I can teach him everything I did tomorrow. Tyler - a PHD...
-
Day 4! Today, I mostly just went through the Code Academy Tutorials to learn Python. I am about 50% of the way through the content as of t...
No comments:
Post a Comment