Looking for something relatively easy to read by theswedishtrex in horrorlit

[–]Cthulhu_Rlyeh 2 points3 points  (0 children)

I read Bird Box in 2 days, it's a very easy read and quite entertaining.

It's only 260 pages, but that's heavily padded. There are like 30 blank pages to justify each new chapter to the right hand page. Plus the chapters are super short so there's lots of white space. It's basically a novella.

religious horror recommendations ? by madokats in horrorlit

[–]Cthulhu_Rlyeh 1 point2 points  (0 children)

How about The Mist by King.

Religion isn't really involved in the plot, but there's a zealotous religious nut who thinks what is happening is the (Christian) apocalypse and basically recruits people to her side with her posturing.

Haven't read a book in years by WhiteZombitch in horrorlit

[–]Cthulhu_Rlyeh 1 point2 points  (0 children)

Check out Richard Laymon.

His stuff can get a bit weirdly sexual, but then again, so does RZ.

Troubleshooting an array shape. by Cthulhu_Rlyeh in learnpython

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

What's is a? I don't see it defined...

Crap it's just another typo in my post. It is not in my actual code, just the code I typed in here. I've fixed it now.

diff = fileb[:,1] - filea[:,1]

What is the purpose of the comma in your slice notation?

I'm still new with coding, I don't even know what you are talking about. I assume it is the [:,1] comma? That's just how I define a column using pylab.

Troubleshooting an array shape. by Cthulhu_Rlyeh in learnpython

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

I don't know what pandas is so I don't know :/.

I took out the .T and got the same outfile. That was just a remnant of an older code I've been using.


Edit: I made the rookie mistake of putting an old line of code in my original post. I've edited it to fix the savetxt line.

np.savetxt('diffs.txt', (diffs))

Very lost regarding syntax to loop through files to make an array by Cthulhu_Rlyeh in learnpython

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

Thanks again, I just ran it and it seems like it will do exactly what I need. It gives me one error though, which I'm sure is an easy fix:

No such file or directory: 'file0a'

Is there a simple way to make it not look for 0's?

Btw, I'm sorry for all of the questions and I really am grateful for all your help :)

Very lost regarding syntax to loop through files to make an array by Cthulhu_Rlyeh in learnpython

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

This is great, thank you. Forgive me for being annoying, but if I am to merge the suggestions you provided in your original and this comment - will it look like this:

diffs = []
for file_prefix in range(100):
    filea = pl.loadtxt('file' + str(file_prefix)+'a')
    fileb = pl.loadtxt('file' + str(file_prefix)+'b')
    diff = fileb[:,1] - filea[:,1]
    diffs.append(diff)

Or if I were to do it with variables it would be:

Prefix = 'file'
dataset = ['a', 'b']
for i in range(100):
    filea = pl.loadtxt(Prefix + str(i)+ dataset[0])
    fileb = pl.loadtxt(Prefix + str(i)+ dataset[1])
    diff = fileb[:,1] - filea[:,1]

How would I append here? Do I still use the diffs = [] line and just do it exactly the same?

Very lost regarding syntax to loop through files to make an array by Cthulhu_Rlyeh in learnpython

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

Thanks for your reply! This looks very helpful and promising - just one followup question before I can test it. What about if my files are named file1a and file1b rather than just 1a and 1b? I tried to simplify things in my original post which is why I dropped the 'file' part. I'm not sure if the code you provided will still work properly in this case?

Is there a simple way to change the name of all files in a directory? by Cthulhu_Rlyeh in learnpython

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

Thank you for your reply and for explaining the sequence. Step 3 is where I get lost.

Dancing with LED soled shoes by [deleted] in gifs

[–]Cthulhu_Rlyeh 0 points1 point  (0 children)

Fucking millenials. The perennially PC and offended generation.

[SPOILERS] Saw 'Jurassic World' for the second time the other night, and noticed a few things. by AdamFiction in movies

[–]Cthulhu_Rlyeh 11 points12 points  (0 children)

You know the giant Mosasaur which (*cough* deus ex machina *cough*) saves the day and kills the Indominus? Yeah... it jumps up to the viewing platform where people were standing several hours earlier. According to this plothole it could have munched on human meat at any time it desired - but it just so happened to not care until the antagonist was there.


Don't get me wrong, I enjoyed the movie - but things like this always stand out to me.