Giter VIP home page Giter VIP logo

Comments (6)

cmdty avatar cmdty commented on May 26, 2024

Yes, that is correct. When creating a CmdtyStorage instance with ratchets, a negative number in the 3-tuples represents withdrawal. This was motivated by making the API clearer as the tuples don't show explicitly which element is the injection and which is the withdrawal rate. The example GUI didn't follow this convention as it is expected to be used by less technical users, so I wanted to make it as easy to use as possible. For ratchets in the GUI a header in the table makes it clear which number is injection or withdrawal, and users don't have to type in a minus sign in the usual case where there isn't forced injection.

from storage.

londown avatar londown commented on May 26, 2024

This is not about negative numbers but that in the widget you're creating ratchet object with the order
Date, Inventory, -InjectionRate, WithdrawalRate
while your documentation states it should be
Date, Inventory, -WithdrawalRate, InjectionRate

from storage.

cmdty avatar cmdty commented on May 26, 2024

OK, understood, and that does sound like a bug. I’ll take a look at the weekend.

from storage.

cmdty avatar cmdty commented on May 26, 2024

Crikey, that's a howler of a bug! Should be fixed now. Thanks @londown for spotting and flagging this. Please pull the latest code, check it looks ok for you and then close this issue accordingly.

from storage.

londown avatar londown commented on May 26, 2024

Thanks. Can I suggest an additional change to replace lines 185-186

for idx, title in enumerate(titles):
        tab.set_title(idx, title)

with
tab.titles = titles

from storage.

cmdty avatar cmdty commented on May 26, 2024

Thanks. Can I suggest an additional change to replace lines 185-186

for idx, title in enumerate(titles):
        tab.set_title(idx, title)

with tab.titles = titles

I tried this and it didn't work. Think it must be because I'm using an older version (7.6.5) of ipywidgets.

from storage.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.