#rainmode
Explore tagged Tumblr posts
gregtechdotpy · 1 month ago
Text
5/12/2025
Today I got hooked on the idea of taking the Gregtech New Horizons modpack for Minecraft and making a program that would combine a lot of different necessary calculators into it. Online I found a spreadsheet (https://docs.google.com/spreadsheets/d/1HgrUWh39L4zA4QDWOSHOovPek1s1eAK1VsZQy_D0zjQ/edit#gid=962322443) that helped with balancing how many coke ovens to water to boilers you need for steam production (something that involves an unnecessary amount of variables, but welcome to GTNH), and decided that I wanted to convert it as my first bite, along with a calculator for how many blocks I would need to build different tank sizes. Eventually I want to move it to a website, but for now it is hosted on my GitHub (https://github.com/lokon100/greghell) while I am starting it!
I haven’t worked in Python for a bit so it was great to come back to it and look at it with fresh eyes, especially for how I stored my variables! I stored my static variables in Pandas Series and Dataframes, which kept it pretty neat and organized.
The “new thing” I decided to look into was how to streamline having a user choose something from a list, and after some searching around I landed on this solution from StackOverflow (https://stackoverflow.com/questions/37565793/how-to-let-the-user-select-an-input-from-a-finite-list) that shows how to have a user choose from a dictionary index. I modified the code so that it would work from a list instead of an index, and it worked perfectly for inputting variables at the beginning of a run!
def selectFromList(options, name="option"):     index = 0     print('Select a ' + name + ':')     for optionName in options:         index = index + 1         print(str(index) + ') ' + optionName)     inputValid = False     while not inputValid:         inputRaw = input(name + ': ')         inputNo = int(inputRaw) - 1         if inputNo > -1 and inputNo < len(options):             selected = options[inputNo]             break         else:             print('Please select a valid ' + name + ' number')     return selected
Rereading my code a bit after I finished it I realized that not very much is different between the two “pressure types” of boilers, and I actually managed to knock a chunk of it off to streamline it which always feels pretty nice! Note to self- always check whether the only difference between your functions is one variable, because you can always just feed those in versus writing out a whole second function and using if loops!
I also noticed that three of the variables would probably never change, so I commented out the input lines and put in static values so that I could have ease of using it for now, but when I finish and publish the sets of calculators I can make it so that everyone can adjust it.
def boiler_math(pressure):     boilerSize = uf.selectFromList(boilerVars['Shape'].tolist())     timeFrame = uf.selectFromList(timeTicks.index.to_list())     fuelType = uf.selectFromList(ovenProd.index.to_list())     numBoilers = int(input("How many boilers?"))     numWater = int(input("How many water tanks?"))     numOvens = int(input("How many coke ovens?"))     rainMod = float(input("What is the rain modifier?"))     if pressure == "high":         solidWater, solidSteam, waterProd = boiler_high(boilerSize, timeFrame, fuelType, numBoilers, numWater, numOvens,rainMod)         liquidWater, liquidSteam, waterProd = boiler_high(boilerSize, timeFrame, 'creosote', numBoilers, numWater, numOvens,rainMod)         totalWater = waterProd-(solidWater+liquidWater)         totalSteam = solidSteam+liquidSteam         print("Total Water Difference: " + str(totalWater) + " Total Steam Production: " + str(totalSteam))     if pressure == "low":         solidWater, solidSteam, waterProd = boiler_low(boilerSize, timeFrame, fuelType, numBoilers, numWater, numOvens,rainMod)         liquidWater, liquidSteam, waterProd = boiler_low(boilerSize, timeFrame, 'creosote', numBoilers, numWater, numOvens,rainMod)         totalWater = waterProd-(solidWater+liquidWater)         totalSteam = solidSteam+liquidSteam         print("Total Water Difference: " + str(totalWater) + " Total Steam Production: " + str(totalSteam)) def boiler_low(boilerSize, timeFrame, fuelType, numBoilers, numWater, numOvens, rainMod):     tanks = boilerVars.loc[boilerVars['Shape'] == boilerSize, 'Size'].iloc[0]     lpMod = boilerVars.loc[boilerVars['Shape'] == boilerSize, 'LP'].iloc[0]     numTicks = timeTicks.loc[timeFrame]     burnTime = fuelTimes.loc[fuelType]     fuelConsumption = lpMod*numTicks/burnTime*numBoilers     steamProduction = tanks*numTicks*10*numBoilers     waterConsumption = steamProduction/150     ovenProduction = ovenProd.loc[fuelType]*numTicks*numOvens     waterProduction = numWater*rainMod*1.25*numTicks     fuelDifference = ovenProduction-fuelConsumption     waterDifference = waterProduction-waterConsumption     print("For " + fuelType + " use")     print("Fuel Difference: " + str(fuelDifference) + " Water Difference: " + str(waterDifference) + " Steam Production: " + str(steamProduction))     return waterConsumption, steamProduction, waterProduction def boiler_high(boilerSize, timeFrame, fuelType, numBoilers, numWater, numOvens, rainMod):     tanks = boilerVars.loc[boilerVars['Shape'] == boilerSize, 'Size'].iloc[0]     hpMod = boilerVars.loc[boilerVars['Shape'] == boilerSize, 'HP'].iloc[0]     numTicks = timeTicks.loc[timeFrame]     burnTime = fuelTimes.loc[fuelType]     fuelConsumption = hpMod*numTicks/burnTime*numBoilers     steamProduction = tanks*numTicks*10*numBoilers     waterConsumption = steamProduction/150     ovenProduction = ovenProd.loc[fuelType]*numTicks*numOvens     waterProduction = numWater*rainMod*1.25*numTicks     fuelDifference = ovenProduction-fuelConsumption     waterDifference = waterProduction-waterConsumption     print("For " + fuelType + " use")     print("Fuel Difference: " + str(fuelDifference) + " Water Difference: " + str(waterDifference) + " Steam Production: " + str(steamProduction))     return waterConsumption, steamProduction, waterProduction
Vs
def boiler_math():     pressure = uf.selectFromList(["LP", "HP"])     boilerSize = uf.selectFromList(boilerVars['Shape'].tolist())     timeFrame = "hour"                                              #uf.selectFromList(timeTicks.index.to_list())     fuelType = uf.selectFromList(ovenProd.index.to_list())     numBoilers = 1                                                  #int(input("How many boilers?"))     numWater = int(input("How many water tanks?"))     numOvens = int(input("How many coke ovens?"))     rainMod = 0.8                                                   #float(input("What is the rain modifier?"))     solidWater, solidSteam, waterProd = boiler_vars(boilerSize, timeFrame, fuelType, numBoilers, numWater, numOvens,rainMod, pressure)     liquidWater, liquidSteam, waterProd = boiler_vars(boilerSize, timeFrame, 'creosote', numBoilers, numWater, numOvens,rainMod, pressure)     totalWater = waterProd-(solidWater+liquidWater)     totalSteam = solidSteam+liquidSteam     print("Total Water Difference: " + str(totalWater) + " Total Steam Production: " + str(totalSteam)) def boiler_vars(boilerSize, timeFrame, fuelType, numBoilers, numWater, numOvens, rainMod, pressure):     tanks = boilerVars.loc[boilerVars['Shape'] == boilerSize, 'Size'].iloc[0]     lpMod = boilerVars.loc[boilerVars['Shape'] == boilerSize, pressure].iloc[0]     numTicks = timeTicks.loc[timeFrame]     burnTime = fuelTimes.loc[fuelType]     fuelConsumption = lpMod*numTicks/burnTime*numBoilers     steamProduction = tanks*numTicks*10*numBoilers     waterConsumption = steamProduction/150     ovenProduction = ovenProd.loc[fuelType]*numTicks*numOvens     waterProduction = numWater*rainMod*1.25*numTicks     fuelDifference = ovenProduction-fuelConsumption     waterDifference = waterProduction-waterConsumption     print("For " + fuelType + " use")     print("Fuel Difference: " + str(fuelDifference) + " Water Difference: " + str(waterDifference) + " Steam Production: " + str(steamProduction))     return waterConsumption, steamProduction, waterProduction
1 note · View note
dmsap72025 · 2 months ago
Text
Selection tools for final patch
Ideally this patch would have been hosted on a website but we had to host it in predate so i had to make the interface in the patch. We used the ascii art as a comment but then the nodes were toggle gun objects with sends and receives.
Tumblr media Tumblr media
The sends and receives interacted with a subpatch called [pd select].
Tumblr media
This subpatch just turns off the other toggles when one is selected and outputs three values with a maximum of one being 1.
Tumblr media
For the three synths i used it in conjunction with a mixer subpatch i made.
Tumblr media
The mixer is just an amplifier that is either muting the signal or letting it run through multiplied by 1 if the right toggle is selected.
I also used the select to create the arguments for the ambient wind and rain sounds. The idea for the wind was to have the three live windspeeds and then similar to the mixer just multiply them by either 1 or 0 depending on which is selected.
Tumblr media
I then added all the numbers together (at least 2 of which were 0) and fed that through the wind noise subpatch. Getting the bang flow right here was a bit fiddly but worked out after a couple of failures.
For the rain I used the [pd select] subpatch within the [pd rainmode] subpatch to decide the rain noise argument.
Tumblr media
Because we weren't using live weather feed for rain, our model was a percentage chance on toggle selection based on rain averages at the location. I wish this could have been more nuanced even if it wasn't live weather. So [pd select] and [sel 1] sends a bang to a random and then a select with the corresponding bang outputs being attached to the select 1-10 in a way that defines the probability of the three different modes of rain (no rain, light rain, heavy rain). This whole subpatch was a play on something adam (below) did but didnt work how we wanted so I worked with him on this solution (above).
Tumblr media
Jude
0 notes
pacmanrdr · 6 years ago
Photo
Tumblr media
Is it smart to ride an expensive 200hp race bike to work in the rain? Probably not. Is it fun? Most definitely! The combination of @yamahamotorusa electronics with @flashtune electronics makes this baby super easy to ride. #FlashTune #CustomizedTractionControl #RainMode https://www.instagram.com/p/Bsn7c7CnLFM/?utm_source=ig_tumblr_share&igshid=1g5mchmz4aruj
90 notes · View notes
racing-school-europe · 3 years ago
Photo
Tumblr media
Day 2 and we have wet track conditions to deal with meaning we have our fleet on @metzelermoto rain tires and set in Rainmode 🌦 👌 #MakeLifeARide #raindrops #rr #mrr #S1000RR #NeverStopChallenging #sbk #motorsport #trackdays #PoweredbyBMWMotorrad #Rainmode #anneau #rheinring #france (bij Circuit de l'Anneau du Rhin) https://www.instagram.com/p/CiUdDfoLjUP/?igshid=NGJjMDIxMWI=
0 notes
sprreviews · 4 years ago
Photo
Tumblr media
2021 Triumph Bobber .. Launched in India at Rs 11.75 lakh 🏍️ @spr_reviews follow for more latest world's updates. • BS6-compliant • 1200cc twin-cylinder engine • 12-litre fuel tank • Spoked wheels • Brembo brakes #techtravelingtripod • @powerdrift • @indiatriumph • @officialtriumph #triumphbobber #2021triumphbobber #bobber #bobberstyle #triumphstyle #newlaunched #rainmode #roadmode #ridingbikes #bikenews #bikeaddict #streetbike #highup #royalenfield #motorcycles #triumphbonneville #triumphofficial #autonewsindia #automobiles #technology https://www.instagram.com/p/CPStf5cJNce/?utm_medium=tumblr
0 notes
jacobelveneco · 8 years ago
Photo
Tumblr media
23 de Marzo de 2017 La Tempestad☔ 'Somo almas que corremos por el desierto, y sin saber si la tormenta de arena cesará o el ardiente sol descenderá y de paso a la noche fría; seguimos vagando por este mundo sin rumbo, sin horizonte, sin dirección... y viene a mi mente dudas, confunsión y enigmas: será que hay algo mal en mi? Que debo hacer? Como debo actuar? Y es en ese instante donde aparece Él, una vez más apareció... Diciendo a mi oido: ¡Hey! Estás ocupado? Necesito decirte algo, no temas porque aquí estoy...!!! Y es en ese preciso instante donde me vengo en lágrimas, y no puedo alzar mi rostro, entonces colocó su mano sobre mi hombro y dijo: no te preocupes que aquí estoy contigo... luego me tomo entre sus brazos y me abrazó, fue como si estuviera entre los brazos de mis padres... Y en ese preciso momento comprendí que él estaba ahí a mi lado, limpiando mi suciedad, cambiando mis vestiduras y dándome identidad... Y ya no volví a ser un alma caminando sin rumbo, no volví a ser el mismo que antes, y cada vez que el camino se vuelve gris, cuando la lluvia se intensifica y el viento sopla con furia, Él está ahí tomando mi mano y ayudándome a pasar la tempestad...!!! - Efesios 2,8 #Historias #Perdonado #Redimi2 #Adoptado #LivingAJourney #TBT #InstaQuotes #RainMode #Rain #Bogota #LluviaDeHistorias (en San Cristóbal Norte)
0 notes
itsdeephowucanbesoshallow · 11 years ago
Audio
The debut single from Rainmode - out now! Spotify: open.spotify.com/track/0lKEFD3bzrbwKvGTrFLyG2 iTunes: https://itunes.apple.com/se/album/buckle-up-single/id890473200 Stay in Rainmode: www.facebook.com/rainmode www.twitter.com/rainmode www.youtube.com/rainmodeband LYRICS: Days have turned into years and laughter blended with tears So thankful life took this route You know me inside and out But I can feel your eyes on me Looks won't hurt but I will bleed Just punch by punch until I'm weak You are on a killer streak I don't know what you're on about A one way guilt trip to the shores of doubt My que to say Enough Buckle up, this landing will be rough In at the deep end this time 'cause you will never stay mine Oh, how I wish you could see You mean the whole world to me
1 note · View note
mtthwrly · 11 years ago
Audio
Rainmode - The Foghorn
1 note · View note
thesinglesjukebox · 12 years ago
Video
youtube
RAINMODE - BUCKLE UP [5.10] Not a patch on the original...
Anthony Easton: Sounds like Gotye a year too late, and Gotye was not as exciting as it could be. His voice is practically soporific. [2]
Cédric Le Merrer: Sounds suspiciously like late 90s/early 00s indie dude funk (think White Town or, more obscurely, MC Honly). Though I kinda enjoyed it at the time, I'm not convinced this is the sound most in need of a revival right now. [5]
Alfred Soto: The Postal Service with electronic gahoozits. I'm sure a lab created the vocal too. [3]
Patrick St. Michel: I keep waiting for this to transcend "pleasant synth pop," but just get a weak climax and some mumbly vocals like B-grade Loney, Dear. [4]
Iain Mew: I prefer fly mode, but "Buckle Up" fizzes with enough electronic twists of melody that even the wan indie vocals start to sound powerful. [7]
Crystal Leww: Take the best example of Scandipop: Robyn. Take out the best part, Robyn herself, and replace her with a whiny male voice reminiscent of that Owl City guy. Take her star-studded production crew and replace their work with plastic, synthetic beats in the worst possible way. You now have Rainmode. [2]
Brad Shoup: That syncopated synth line gets so close to intoxicating: it's straight from the Patrick Adams playbook. The next page has abandon drawn up for the vocals. Instead, they called a half-audible audible. [6]
Will Adams: Marblemouthed vocals atop chunky synth lines press all the right buttons for me, but the chorus -- with a stop-start dynamic and the clunky lyric, "one way trip to the shores of doubt" -- keeps the song from really, to belabor the metaphor, taking off. [6]
Scott Mildenhall: Of the many things it could, this first brings to mind a softer Vitalic, and one with far more of an eye on pop and the clarity of ideas that comes with it -- for all the talk of bumpy landings, it's a song that knows exactly where it's going. The vocals are a bit lost, but perhaps if they were fuller they'd intrude on all the really ear-catching bits -- in any case "I don't know what you're on about" is a line that sticks in the mind as is. [7]
Mallory O'Donnell: Somewhere out in the drift, locked inside a stormcloud, under the coral reefs, there exists a perfect slice of dance-pop that precisely combines rough and polished, naive and savvy, makeshift and Machiavellian. This song is perilously, preciously close. But it is not yet that song. [9]
[Read, comment and vote on The Singles Jukebox ]
1 note · View note
audacioussoundwaves · 12 years ago
Audio
Rainmode - Buckle up
The debut single from Rainmode - out now! Spotify: open.spotify.com/track/0lKEFD3bzrbwKvGTrFLyG2 iTunes: https://itunes.apple.com/us/album/buckle-up-single/id735188706 Stay in Rainmode: www.facebook.com/rainmode www.twitter.com/rainmode www.youtube.com/rainmodeband LYRICS: Days have turned into years and laughter blended with tears So thankful life took this route You know me inside and out But I can feel your eyes on me Looks won't hurt but I will bleed Just punch by punch until I'm weak You are on a killer streak I don't know what you're on about A one way guilt trip to the shores of doubt My que to say Enough Buckle up, this landing will be rough In at the deep end this time 'cause you will never stay mine Oh, how I wish you could see You mean the whole world to me
1 note · View note
racing-school-europe · 3 years ago
Photo
Tumblr media
But what if it rains? 🌦 Well we simply fit rain tires & switch our RR fleet to rain mode and the training course continues! 📸 @sensa_sportphotography #NeverStopChallenging #Rainmode #raindrops #sbk #S1000RR #agv #makelifearide #motorsport #trackday #ridingschool #academy #metzeler #estoril #BMWMotorrad (bij Circuito do Estoril) https://www.instagram.com/p/Cgh5XdkrAtO/?igshid=NGJjMDIxMWI=
0 notes
sprreviews · 4 years ago
Photo
Tumblr media
2021 Triumph Bobber .. ⚡⚡ @spr_reviews follow for more latest world's updates. • Rs 11.75 lakh • BS6-compliant • 1200cc twin-cylinder engine • 12-litre fuel tank • Spoked wheels • Brembo brakes #techtravelingtripod • @powerdrift • @indiatriumph • @officialtriumph #triumphbobber #2021triumphbobber #bobber #bobberstyle #triumphstyle #newlaunched #rainmode #roadmode #ridingbikes #bikenews #bikeaddict #streetbike #highup #royalenfield #jawamotorcycles #jawa #triumphbonneville #triumphofficial #autonewsindia #automobiles #technology #rideordie #bs6 #1200cc #twinengine #brembobrakes #heavydriver #palace (at Triumph) https://www.instagram.com/p/CPStKQ7JdSu/?utm_medium=tumblr
0 notes
2014soundslikethis · 11 years ago
Audio
"7D" - RAIИMODƎ
0 notes
enjoyensilencio · 11 years ago
Audio
Rainmode - Buckle Up (radio edit) (2013)
0 notes
ituneszonekm-blog · 11 years ago
Text
Rainmode - 7D - Single (2014) (iTunes Version)
Rainmode – 7D – Single (2014) (iTunes Version)
Information:
Genres: Pop, Music Released: 22 August 2014 ℗ 2014 Rainmode Recordings. Distributed by Sony Music Entertainment Sweden AB
(more…)
View On WordPress
0 notes
5tunnab · 11 years ago
Video
instagram
Pt 1 live 💧💦☔️ #RainMode
0 notes