amakelov / mandala

A simple & elegant experiment tracking framework that integrates persistence logic & best practices directly into Python
Apache License 2.0
506 stars 15 forks source link

Queries against functions with added arguments don't include the old calls #11

Closed amakelov closed 1 year ago

amakelov commented 1 year ago

Steps to reproduce:

storage = Storage()

@op
def inc(x: int) -> int:
    return x + 1

with storage.run():
    z = inc(23)

@op
def inc(x: int, amount: int = 1) -> int:
    return x + amount

with storage.run():
    z = inc(23, 10)

df = storage.similar(z)

This also affects the tutorial notebook 01_logistic.ipynb