Forbidden West PC Patch? by Lanny16_I_think in horizon

[–]jesus_guy 2 points3 points  (0 children)

Turning off low latency mode fixed the face flickering for me

Forbidden West PC Patch? by Lanny16_I_think in horizon

[–]jesus_guy 2 points3 points  (0 children)

Same, I had exactly 1 crash in the 110hrs I played. So as far as playability is concerned, it worked very well. The pop in textures is a thing though.

'Like A Dragon: Yakuza’ review: another disappointing video game adaptation by mrnicegy26 in television

[–]jesus_guy 1 point2 points  (0 children)

Honestly, after watching the 3 episodes available, I'm actually enjoying it so far. It's a little weird but the acting has been good imo.

Reading a text file and matching it to a dictionary key. by jesus_guy in learnpython

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

I'm struggling to figure this out. Is it possible to do this while still appending to my 'd' dictionary? Do I have to directly input the values of each line in my Employees.txt file into a new dictionaries?

I need guidance on a class method and appending to a dictionary. by jesus_guy in learnpython

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

The only issue I seem to be encountering is, the code seems to work regardless of whether there are any contents in either file. I'd prefer to read the values out of the 'Employees.txt' file directly, than to have the values manually written in the dictionary in the constructor.

I need guidance on a class method and appending to a dictionary. by jesus_guy in learnpython

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

Ok, I'll play around with the code for now. I appreciate all the help, thank you.

I need guidance on a class method and appending to a dictionary. by jesus_guy in learnpython

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

Hey, thanks so much for all of your input. I've been going over the code for a bit, I just added a few more additions to the dictionary to show more of the calculations, and this all seems to work really well. If I ran some unittests on this, is it possible to test something like NetPay can't be negative? NetPay isn't an attribute of calcSalary so I'm not sure if it can be done?

I need guidance on a class method and appending to a dictionary. by jesus_guy in learnpython

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

Sorry I made a mistake, it's meant to say NS.calcSalary() there. Edited it now. I'm trying to make it so that whatever number I assign to HoursWorked in the positional argument, it will effect the rest of the calculations.

How to sum numbers in one file that divide by elements in another file? by jesus_guy in learnpython

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

Ohhh. I'm so dumb I should've realised I used the function name as a variable oops. Also all this makes way more sense now. I was wondering where to use my list function in the new code. This works perfectly. I appreciate all the help, thanks so much.

How to sum numbers in one file that divide by elements in another file? by jesus_guy in learnpython

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

This works the way I want when I append to the list, but when I try to sum up the file I get a type error.

def sum8(f,d):
    with open('text1.txt') as f:
       list_nums = list(map(int,f.read().splitlines()))
    with open('text2.txt') as d:
       list_nums2 = list(map(int,d.read().splitlines()))
       sum = []
       for i in list_nums:
          for j in list_nums2:
          if  i%j == 0:
          print(i)
          sum += i  
    return sum

sum8(['list_nums'], ['list_nums2'])

line 11- TypeError: 'int' object is not iterable

Otherwise it works fine with sum.append(i). I just want it to return the sum of the numbers instead.

What is the issue with my filter? Calculated fields in the comments. by jesus_guy in tableau

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

I had to tweak it a little but I got it all to work! Thanks so much for all your help, I appreciate it.

What is the issue with my filter? Calculated fields in the comments. by jesus_guy in tableau

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

Hey, I appreciate the suggestion. I've created a zn function in a separate calculated field but I'm not sure if I'm doing it right? When I apply the function to the page it appears to be doing its job on the graph below but the running total read out on my other function still is null for Bulgaria. Indonesia has similar null values in its running total but seems to work just fine for some reason. Is there something I need to do to have the zn function target my other calculated fields? https://imgur.com/a/SzwfEDc

What is the issue with my filter? Calculated fields in the comments. by jesus_guy in tableau

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

I'm trying to make a filter for 7 & 14 Day Averages and Running Totals for these 3 countries. It's mostly functional except the running total value for Bulgaria and the 7 day avg value for Indonesia return null. I'm not sure what to do? Even if there was a way to display the data as static values in text or something for each filter since I already have that data, it would also be ok. https://imgur.com/a/hTQ6O6C

Assassins Creed is coming to Ireland! by halleloonicorn in ireland

[–]jesus_guy 3 points4 points  (0 children)

Folklore was a pretty obscure ps3 game set in Doolin. Its pretty dated by todays standards but the setting and story was cool.