UmbralRaptor changed the topic of #kspacademia to: https://gist.github.com/pdn4kd/164b9b85435d87afbec0c3a7e69d3e6d | Dogs are cats. Spiders are cat interferometers. | Космизм сегодня! | Document well, for tomorrow you may get mauled by a ネコバス. | <UmbralRaptor> egg|nomz|egg: generally if your eyes are dewing over, that's not the weather. | <ferram4> I shall beat my problems to death with an engineer. | We can haz pdf
e_14159_ has joined #kspacademia
e_14159 has quit [Ping timeout: 378 seconds]
<WeylandsWings> why are you not eating?
<raptop> I did ultimately eat something
awang has quit [Ping timeout: 189 seconds]
<egg|cell|egg> Meow
<raptop> nyaaaAAAAAAAAA
egg|laptop|egg has joined #kspacademia
egg|laptop|egg has quit [Remote host closed the connection]
egg|laptop|egg has joined #kspacademia
awang has joined #kspacademia
egg|laptop|egg has quit [Remote host closed the connection]
egg|laptop|egg has joined #kspacademia
egg|laptop|egg has quit [Ping timeout: 190 seconds]
<egg|cell|egg> Мяу
<_whitenotifier-d13c> [Principia] davidljung starred Principia - https://git.io/Jvxhm
* raptop glares at jupyter notebook's web interface for not letting me do vim copy/paste/find/replace shenanigans
* raptop has been corrupted, or something
<SnoopJeDi> raptop, https://github.com/jwkvam/jupyterlab-vim is pretty good as long as you don't want to yank to the OS clipboard
<SnoopJeDi> or other notebooks I think, heh.
<raptop> SnoopJeDi: it should still be useful though. thanks
raptop has quit [Ping timeout: 204 seconds]
awang has quit [Ping timeout: 189 seconds]
awang has joined #kspacademia
awang has quit [Ping timeout: 190 seconds]
egg|laptop|egg has joined #kspacademia
egg|cell|egg has quit [Ping timeout: 189 seconds]
egg|cell|egg has joined #kspacademia
egg|cell|egg has quit [Read error: Connection reset by peer]
egg|cell|egg has joined #kspacademia
egg|cell|egg has quit [Read error: Connection reset by peer]
egg|cell|egg has joined #kspacademia
egg|laptop|egg has quit [Remote host closed the connection]
egg|cell|egg has quit [Ping timeout: 190 seconds]
egg|cell|egg has joined #kspacademia
egg|cell|egg has quit [Read error: Connection reset by peer]
egg|cell|egg has joined #kspacademia
egg|laptop|egg has joined #kspacademia
egg|laptop|egg has quit [Remote host closed the connection]
awang has joined #kspacademia
egg|cell|egg has quit [Ping timeout: 189 seconds]
egg|cell|egg has joined #kspacademia
awang has quit [Ping timeout: 190 seconds]
egg|cell|egg has quit [Ping timeout: 189 seconds]
egg|laptop|egg has joined #kspacademia
egg|cell|egg has joined #kspacademia
awang has joined #kspacademia
awang has quit [Ping timeout: 204 seconds]
egg|cell|egg has quit [Ping timeout: 190 seconds]
<egg|laptop|egg> !u ÅÅ
<galois> Å: U+212b ANGSTROM SIGN
<galois> Å: U+00c5 LATIN CAPITAL LETTER A WITH RING ABOVE
<UmbralRaptop> marginally different rendering on my phone
raptop has joined #kspacademia
<raptop> facial expressions found to correlate with emotional states (in mice) https://science.sciencemag.org/content/368/6486/89
<raptop> SnoopJeDi: ^
awang has joined #kspacademia
awang has quit [Ping timeout: 190 seconds]
<_whitenotifier-d13c> [Principia] pleroy opened pull request #2522: Generate marshalers for structs - https://git.io/JvpnW
<_whitenotifier-d13c> [Principia] Pending. Build queued… - 
<_whitenotifier-d13c> [Principia] Pending. Building… - http://casanova.westeurope.cloudapp.azure.com:8080/job/Principia/4200/
<_whitenotifier-d13c> [Principia] pleroy edited pull request #2522: Generate marshalers for structs - https://git.io/JvpnW
awang has joined #kspacademia
egg|cell|egg has joined #kspacademia
<_whitenotifier-d13c> [Principia] Success. Build finished. - http://casanova.westeurope.cloudapp.azure.com:8080/job/Principia/4200/
<egg|laptop|egg> !u ∆
<galois> ∆: U+2206 INCREMENT
<egg|laptop|egg> !u Δ
<galois> Δ: U+0394 GREEK CAPITAL LETTER DELTA
<egg|laptop|egg> !u Ωµπ
<galois> Ω: U+03a9 GREEK CAPITAL LETTER OMEGA
<galois> µ: U+00b5 MICRO SIGN
<galois> π: U+03c0 GREEK SMALL LETTER PI
<SnoopJeDi> raptop, huh, I thought that was well established. sci-hub is acting up for me, so I can only see the abstract
<egg|laptop|egg> !u μ
<galois> μ: U+03bc GREEK SMALL LETTER MU
<SnoopJeDi> backed with more information about emotions in the brain perhaps
egg|laptop|egg has quit [Remote host closed the connection]
egg|cell|egg has quit [Ping timeout: 204 seconds]
egg|cell|egg has joined #kspacademia
egg|laptop|egg has joined #kspacademia
egg|cell|egg has quit [Ping timeout: 190 seconds]
<raptop> I had not
<SnoopJeDi> pew pew
<raptop> haha, jet go brrr
egg|cell|egg has joined #kspacademia
* raptop feels like the code in this jupyter notebook could be more efficient (there's some nested loop shenanigans and appending data)
<raptop> ...apparently webex needs a room admin to enable push to talk o_O
<SnoopJeDi> happy to take a look if you want a pair of eyes on it
* raptop apologizes for the eggstensive dupes in the code, but really just architecture I is sufficient
<SnoopJeDi> Says I need permission
<SnoopJeDi> http://ix.io/ perhaps? (if you tack /py on the end of a URL it comes out formatted)
<raptop> iximeow.io
<SnoopJeDi> ah yes
<SnoopJeDi> raptop, yea this nestyboi looks like it could be a numpy idiom of some sort. Can you describe what it's doing? It looks like it's counting, but I can't quite suss out much beyond that
egg|laptop|egg has quit [Remote host closed the connection]
<raptop> counting up observations across several observatories, and trying to coordinate things
<raptop> each night: was $star observed? And was $star observable? (the summary files have this, but in a slightly odd format, so it needs to check observability in terms of the star being up, and the weather being good)
<SnoopJeDi> where "each night" is the for loop over d2?
<SnoopJeDi> and the first axis of obs[] and observable[] correspond to...different scopes?
<SnoopJeDi> I think you might be able to collapse the whole thing using some numpy idioms, namely np.any()
<SnoopJeDi> one sec, it's probably simplest if I just make a mock example to show off what I'm thinking
<raptop> checking (this isn't my code)
egg|cell|egg has quit [Ping timeout: 189 seconds]
egg|cell|egg has joined #kspacademia
egg|cell|egg has quit [Ping timeout: 190 seconds]
<SnoopJeDi> raptop, have a look at this and see if it makes sense: http://ix.io/2hmX/py
<SnoopJeDi> N.B. that it's taking advantage of how sum() behaves for boolean arrays, but you could just as easily explicitly change the dtype to int, or use np.where() if you wanted to have value X above threshold, value Y below, etc.
<SnoopJeDi> upshot: it's going to be *way* faster this way because ufuncs go brrrr
<SnoopJeDi> so if I'm not mistaken, a similar expression can replace the entire bottom half of that. Since you do this twice for two different datasets, it might make sense to roll it up into something with the signature `def count_valid_data(arr):` and then do `tot_obs = count_valid_data(obs); tot_observable = count_valid_data(observable)` ?
<SnoopJeDi> and then I'd probably take everything under `for f in range(np.shape(filename)[0]):` and make it a `def load_and_clean_data(filename):` or something, just to hide those details away from the data-y part of the code
<SnoopJeDi> the loop itself there is kinda icky, at the very least np.shape()[0] could just be replaced with len(), but that's still not great...I can't work out too well what it's doing though, and it looks like it'll at least fail in understandable ways for the most part.
<SnoopJeDi> </codereview>
<raptop> A star can be observed more than once per night, and what counts as a "night" is kinda fuzzy, given that these observatories are at wildly varying longitudes (and latitudes)
<raptop> hrm
<SnoopJeDi> does that sample make sense at least?
<SnoopJeDi> I may have bungled the actual semantics of what's going on, but all that append() county business looks like it's doing the work any() is made for
<SnoopJeDi> I threw in a threshold just because, heh.
egg|laptop|egg has joined #kspacademia
<raptop> I think so
egg|cell|egg has joined #kspacademia
egg|cell|egg has quit [Ping timeout: 190 seconds]
<_whitenotifier-d13c> [Principia] eggrobin reviewed pull request #2522 commit - https://git.io/JvpEQ
<_whitenotifier-d13c> [Principia] eggrobin labeled pull request #2522: Generate marshalers for structs - https://git.io/JvpnW
UmbralRaptop has quit [Remote host closed the connection]
UmbralRaptop has joined #kspacademia
egg|cell|egg has joined #kspacademia
<egg|laptop|egg> !choose sleep|play soviet republic
<galois> egg|laptop|egg: Your options: sleep, play soviet republic. My choice: play soviet republic
<egg|laptop|egg> choose sleep|play soviet republic
<egg|laptop|egg> ;choose sleep|play soviet republic
<kmath> egg|laptop|egg: sleep
<UmbralRaptop> egg|laptop|egg: play soviet republic
<egg|laptop|egg> hm
<kmath> <Viriconia> Sorry, baguette expert here. When they do this, they're not happy, they're in pain https://t.co/sgvjX81Trv
UmbralRaptop has quit [Remote host closed the connection]
UmbralRaptop has joined #kspacademia
<_whitenotifier-d13c> [Principia] pleroy synchronize pull request #2522: Generate marshalers for structs - https://git.io/JvpnW
<_whitenotifier-d13c> [Principia] Pending. Build queued… - 
<_whitenotifier-d13c> [Principia] Pending. Building… - http://casanova.westeurope.cloudapp.azure.com:8080/job/Principia/4201/
<_whitenotifier-d13c> [Principia] Success. Build finished. - http://casanova.westeurope.cloudapp.azure.com:8080/job/Principia/4201/
<_whitenotifier-d13c> [Principia] pleroy closed pull request #2522: Generate marshalers for structs - https://git.io/JvpnW
<_whitenotifier-d13c> [Principia] pleroy pushed 12 commits to master [+8/-8/±24] https://git.io/Jvp2q
<_whitenotifier-d13c> [Principia] pleroy bd05ccb - Study of a marshaler.
<_whitenotifier-d13c> [Principia] pleroy 222da28 - Generated files before the changes.
<_whitenotifier-d13c> [Principia] pleroy 625e44e - Separate custom and predefined marshalers.
<_whitenotifier-d13c> [Principia] ... and 9 more commits.
<UmbralRaptop> someone is getting ready for June https://twitter.com/AlaynaMCole/status/1248091001601712130
<kmath> <AlaynaMCole> This sign in my building has great energy and I can’t stop thinking about it. https://t.co/VHDrKhBPZh
egg|laptop|egg has quit [Remote host closed the connection]
<mofh> !u ♢
<galois> ♢: U+2662 WHITE DIAMOND SUIT