Skip to content

Use API in vp-nextfitruncard

Emanuele Roberto Nocera requested to merge use-api-nextfit into master

Created by: wilsonmr

Just a small change on top of the really nice script from #863

I use the API so there is no duplicated code, this should make any future updating a bit easier.

This required making a small change to the provider to use an internal variable to update description

This also has the nice effect that if you don't own the fit, it gets downloaded automatically using the remote loader. (from my perspective - actually the main reason I changed this)

I also updated the seed generation to be able to generate any unsigned long int, since this is what is used by both our internal RNG and numpy - in practice this probably makes no difference but seemed a little neater

Let me know what you think!

BTW I checked by putting a random seed in that the output is identical doing it this way (since anyway the code is basically the same) but please feel free to check!

inadvertently closes #928 (closed)

Merge request reports

Loading