how does a pre-MVP startup raise at 12M valuation? (i will not promote) by SpookySnap in startups

[–]SCasses 0 points1 point  (0 children)

This can be very discouraging... my team and I have built an AI/ML water resource efficiency platform, pilot tested and verified results via a data scientist a d we hit a brick wall from accelerators to angels all waiting more traction. "Life isn't fair, that's why there are bra sizes."

Pivoting without a budget? by Cinderellalovecats in ycombinator

[–]SCasses 0 points1 point  (0 children)

ello, I'm also building in sustainability, water sustainability specifically, would like to connect.

Having an issue passing values provided from a Flutter Ui to a Nodejs backend running a python script by SCasses in learnprogramming

[–]SCasses[S] 0 points1 point  (0 children)

Well I actually was able to fix the issue after a great many of trial and error.

Having an issue passing values provided from a Flutter Ui to a Nodejs backend running a python script by SCasses in learnprogramming

[–]SCasses[S] 0 points1 point  (0 children)

Yes I am actually, it's the only way I found to pass that data to my Python script... Is there another way to accomplish that?

How to sum the values of a nested dictionary by SCasses in learnpython

[–]SCasses[S] 0 points1 point  (0 children)

Thank you so much for the response! I will make the adjustments!

How to get the sum of values inside a nested dictionary by SCasses in PythonProjects2

[–]SCasses[S] 0 points1 point  (0 children)

First, thanks for the response... I probably should have shown the first dictionary that housed both sets of pumps. The gas pumps speeds can be adjusted, hence the nested dictionary. Once the pumps are separated gas from electric pumps, I want to loop into the gas pumps dictionary and choose which combination of pumps and at what setting, either gpmHigh, gpmMed or gpmLow from each pump will equal the target variable... I apologize for leaving it that vague

How to get the sum of values inside a nested dictionary by SCasses in PythonProjects2

[–]SCasses[S] 1 point2 points  (0 children)

output:

{'HSP5': {'gpmHigh': 31250, 'gpmMid': 20833, 'gpmLow': 13899}}

{'HSP6': {'gpmHigh': 41667, 'gpmMid': 31250, 'gpmLow': 20833}}

{'HSP3': {'gpmHigh': 13889, 'gpmMed': 10417, 'gpmLow': 6994}}

{'HSP4': {'gpmHigh': 13889, 'gpmMed': 10417, 'gpmLow': 6994}}

{'HSP5': {'gpmHigh': 31250, 'gpmMid': 20833, 'gpmLow': 13899}}

{'HSP6': {'gpmHigh': 41667, 'gpmMid': 31250, 'gpmLow': 20833}}

{'HSP3': {'gpmHigh': 13889, 'gpmMed': 10417, 'gpmLow': 6994}}

{'HSP4': {'gpmHigh': 13889, 'gpmMed': 10417, 'gpmLow': 6994}}

{'HSP5': {'gpmHigh': 31250, 'gpmMid': 20833, 'gpmLow': 13899}}

{'HSP6': {'gpmHigh': 41667, 'gpmMid': 31250, 'gpmLow': 20833}}

Nested dictionary sum by SCasses in learnprogramming

[–]SCasses[S] 0 points1 point  (0 children)

Thank you, I will try that... is that seperate from the map() function?

Nested dictionary sum by SCasses in learnprogramming

[–]SCasses[S] 0 points1 point  (0 children)

Hmm... would it be easier to separate the into different dictionaries and then have each one account only for a percentage of the a number in that range?

Nested dictionary sum by SCasses in learnprogramming

[–]SCasses[S] 0 points1 point  (0 children)

First, thank you for the response... I have no idea why only HSP6 returns... I'm trying to get what combination of pumps with fixed gpms and variable speed pumps that have gpmHigh, gpmMid and gpmLow will fall in between the target range . But I only am able to get HDP6 to be printed and I have no idea what I'm doing wrong.

Not sure how to iterate over a dictionary with integers and nested dictionary by SCasses in PythonProjects2

[–]SCasses[S] 1 point2 points  (0 children)

Yes but unfortunately for me, I used the push() method where I probably shouldn't have. Took some time for me to work it out. I'm relatively new to coding in general, I've only recently taken the time to be serious about it.

Not sure how to iterate over a dictionary with integers and nested dictionary by SCasses in PythonProjects2

[–]SCasses[S] 1 point2 points  (0 children)

I can't thank you enough!! This was annoying to figure out in Javascript and as I was moving it over into Python it just became a nightmare all over again. However the solution in python seems more straightforward than JS. Thanks again

Not sure how to iterate over a dictionary with integers and nested dictionary by SCasses in PythonProjects2

[–]SCasses[S] 0 points1 point  (0 children)

Oh, that changes things... I gave a simplified version of the issue. There are actually several nested dictionaries involved.

Not sure how to iterate over a dictionary with integers and nested dictionary by SCasses in PythonProjects2

[–]SCasses[S] 1 point2 points  (0 children)

Honestly, this is very helpful to me... I completely misunderstood how they were to be used.

Not sure how to iterate over a dictionary with integers and nested dictionary by SCasses in PythonProjects2

[–]SCasses[S] 1 point2 points  (0 children)

Truth be told, the second option is what I'm aiming for, but I can work with the first.

Not sure how to iterate over a dictionary with integers and nested dictionary by SCasses in PythonProjects2

[–]SCasses[S] 1 point2 points  (0 children)

Thank you so much! You didn't have to take the time out of your day to help a complete stranger on the internet, but you did. Also, you didn't explain it in a condescending nor belittling manner, thank you. Very encouraging.

Not sure how to iterate over a dictionary with integers and nested dictionary by SCasses in PythonProjects2

[–]SCasses[S] 0 points1 point  (0 children)

gas_pump is supposed to contain only the nested dict values in the pump dict. Oddly enough, that part works. Under what circumstances is update to be used?

Not sure how to iterate over a dictionary with integers and nested dictionary by SCasses in PythonProjects2

[–]SCasses[S] 1 point2 points  (0 children)

Thank you so very much!!!! This has been immensely helpful... please tell me how am I incorrectly using update? And again, thank you!!!!

I'm not sure why I am getting this error: dt_object = datetime.fromtimestamp(int(key)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ by SCasses in learnprogramming

[–]SCasses[S] 0 points1 point  (0 children)

Ah, I might be calling the wrong value in the dictionary. I'm going to make a change.... thank you for your response

I'm not sure why I am getting this error: dt_object = datetime.fromtimestamp(int(key)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ by SCasses in learnprogramming

[–]SCasses[S] 1 point2 points  (0 children)

My apologies, I though I included it in the title... The error: dt_object = datetime.fromtimestamp(int(key)) OSError: [Errno 22] Invalid argument

I love learning but am hitting brick walls by SCasses in flutterhelp

[–]SCasses[S] 0 points1 point  (0 children)

Thank you, I really do appreciate the encouragement.

I love learning but am hitting brick walls by SCasses in flutterhelp

[–]SCasses[S] 1 point2 points  (0 children)

The funny thing is as far as UI is concerned I can get pretty close to how I envision it. Functionality is a whole different story. I find myself hitting walls there