question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

VOTE - v4 new names for getBv and getHv

See original GitHub issue

Unfortunately v3 was a bit premature.

With Box -> Cuboid (its a must) the API is broken and we have to move to v4.0.0 with the next patch. After a thorough review of all features (see #360 ) the only remaining namechange must be of getBv and getHv.

These top-level functions avoid the object oriented interface and give direct access to the analytical formulas based on complex dictionary inputs. Its the fastest way to compute the field in Magpylib if you know how to vectorize code properly (but even then not much faster than the object oriented interface).

Please propose names @lucasgcb @pribossek @Alexboiboi

getB_direct ? getB_a_little_faster ?

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:7 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
OrtnerMichaelcommented, Jul 15, 2021

@lucasgcb Well in Magpylib2 we added vectorized code for the first time in the getB_Box_vector() functions. The name getBv() derivates from that as the functionality (dictionary input) is quite similar. However, now everything is vectorized automatically all the time and getBv() is just there for users who want to squeeze out all possible performance by avoiding the object oriented interface overhead. The performance gain is not massive anymore (factor 1.1-2), and you only get that if you properly generate the input using np.tile and similar commands instead of for loops.

0reactions
OrtnerMichaelcommented, Aug 6, 2021

completed with #375

Read more comments on GitHub >

github_iconTop Results From Across the Web

Check Voter Registration Deadlines and Laws in Your State ...
Official voter registration website of the US federal government. Register to vote. Learn the voting registration deadlines and laws in your state.
Read more >
My Vote WI
Next Statewide Election · Become a Poll Worker. Interested in helping elections in your community? · Election Results. In Wisconsin, unofficial election night ......
Read more >
Get Out the Vote (GOTV) - YWCA USA
Check your state or local election office's website to find registration deadlines and early voting information, to request an absentee ballot. Tip: Make...
Read more >
Voter Registration - California Secretary of State
In California, the deadline to register to vote for any election is 15 days before Election Day, so please register early!
Read more >
What is GOTV? - Ballotpedia
Get out the vote refers to two distinct kinds of campaigning: Voter registration drives not specific to an election outcome. Efforts to increase...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found