mattjwarren / django-wganmgr

wavegan model manager and jenkins runner
0 stars 0 forks source link

fix latest_snapshots calcs when new model run and n snapshots #14

Closed mattjwarren closed 1 year ago

mattjwarren commented 1 year ago

also zero heckpoints situation

latest_snapshots=modelSnapshot.objects.filter(modelRun=modelrun.id).order_by('-checkpoint')
latest_snapshot=None

if latest_snapshots:
    if(latest_snapshots.count()>0):
        latest_snapshot=latest_snapshots[0]
mattjwarren commented 1 year ago

Tidied up latest snapshot detection, and wiating for initial model run first ckpt