Skip to content

Instantly share code, notes, and snippets.

View DragaDoncila's full-sized avatar

Draga Doncila Pop DragaDoncila

View GitHub Profile
import pandas as pd
import os
import re
from sklearn.decomposition import PCA
from microscopium import io
from microscopium.preprocess import montage_stream
from microscopium.preprocess import correct_multiimage_illumination
from microscopium.preprocess import find_background_illumination
"""
Script takes a target sum from the user, along with a list of integers, and displays the pairs of numbers in the list
which sum to the target given.
"""
target_sum = int(input("Enter target sum: "))
addends = []
user_input = input("Please enter a number (Q to stop): ").lower()
# get integers from user until they choose to stop (assume user enters either integers or q for simplicity)
while user_input != "q":