![]() Obviously, this is all pretty irrelevant, as you should always go for clarity and avoid reinventing the wheel, but I found it a little interesting, so I thought I'd leave it here. Python -m timeit -s "import numpy as np" -s "a = np.array(list(range(10000)))" -s "index=" "np.delete(a, index)"ġ000 loops, best of 3: 1.68 msec per loop Also the way ElementTree is implemented it seems there is no link from a child to its parent. In the XML-file you posted the weight element is no direct subelement of XMLlevel1 but a direct subelement of XMLlevel2. python -m timeit -s "import numpy as np" -s "import itertools" -s "a = np.array(list(range(10000)))" -s "index=" "a = np.array(list(press(a, )))" Your problem is that node.remove () only removes direct subelements of node. With large arrays, lete() is significantly faster. python -m timeit -s "import numpy as np" -s "a = np.array()" -s "index=" "for i in index:" " np.delete(a, i)"ġ0000 loops, best of 3: 33.8 usec per loopĮdit: It does appear to be to do with the size of the array. That's a pretty significant difference (in the opposite direction to what I was expecting), anyone have any idea why this would be the case?Įven more weirdly, passing lete() a list performs worse than looping through the list and giving it single indices. Python -m timeit -s "import numpy as np" -s "a = np.array()" -s "index=" "np.delete(a, index)"ġ0000 loops, best of 3: 108 usec per loop I don't know why that would be the case, maybe due to the small size of the initial array? python -m timeit -s "import numpy as np" -s "import itertools" -s "a = np.array()" -s "index=" "a = np.array(list(press(a, )))"ġ00000 loops, best of 3: 12.9 usec per loop > a = np.array(list(press(a, )))Īccording to my tests, this outperforms lete(). ![]() All submissions must include relevant flair.Not being a numpy person, I took a shot with: > import numpy as np. ![]() Using/asking for help with cracked/pirated clients will result in a ban from all FTB subreddits.All active elements are shown revolving around the Polytool in the GUI. Content creators must follow these new rules While in the configuration GUI, you can place a full stack of an element (64 atoms) in the upper-left slot to upgrade the tool with that element and apply its effects however, there is no way to remove elements from the tool once they're applied.Posts and links for money and donations will be removed unless for registered charities and the mods are provided proof that all the money will be given to the organization(s).Finding others to play with belong in /r/MinecraftBuddies All Crashes/Issues go to #player-help in our Discord (for all issues, not just crashes). Post Server Ads (Hosting & Wanted) in /r/feedthebeastservers. In this paper we report on the development of an au- tomated tool (Polytool) for proving termination of Logic Programs based on polynomial orders.It will only be allowed if a healthy discussion can come out of it Do not spam (this includes memes, low-effort posts, and reposts).Send them straight to the mod's developers or post to the appropriate bug trackers (includes mods and launchers) Do not expose any exploits or bugs here.Anything sexually explicit, obscene or offensive will be subject to removal and a ban from all FTB subreddits Be kind to everyone and try to help out as best you can.Only post content relating to Modded Minecraft or Minecraft mods.We reserve the right to ban users and remove posts on a case by case basis depending on if they break any of these rules Place 4 cups of water in a second bowl, add a tablespoon of vinegar and half a cup of baking soda. Simply mix 4 cups of hot water with 1 cup of cornstarch to form a thick paste. The /r/feedthebeast subreddit is not affiliated or associated with the Feed the Beast company Rules and Guidelines You can make a paste of baking soda, cleaning vinegar, and cornstarch which will be effective in stripping polyurethane from wood. This subreddit was originally created for discussion around the FTB launcher and its modpacks but has since grown to encompass all aspects of modding the Java edition of Minecraft The subreddit for all things related to Modded Minecraft for Minecraft Java Edition ![]() Join our Discord Server! r/FeedTheBeast r/FeedTheBeastServers Welcome to /r/FeedTheBeast! About ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |