Deepreg: Bug: Clash Between Functions For Generating Indices

Created on 13 Nov 2020  路  6Comments  路  Source: DeepRegNet/DeepReg

Subject of the issue

Whilst working on #525 #54 I was going through the DataLoaders. The base clase, DataLoader takes specific arguments such as "all", "sample" or None as args, but doesn't take "first":

base DataLoader class that doesn't take "first" as one of the arguments

which is one of the args that is passed to the util:

[which generates the indices](https://github.com/DeepRegNet/DeepReg/blob/db76a33cb3e41a96594626ccf6e3900d3cfa720d/deepreg/dataset/util.py#L62(

bug question

All 6 comments

Pytest fails any tests where "first" are passed to sample_label.

E AssertionError: sample_label must be sample or all or None, got first

@NMontanaBrown let's remove first? it's an old option linked back to some strange dataset. It was back then I want to only evaluate on the first label. But now we always evaluate on all labels and the results per label will be summarized.

Ok, undoing.

Ok, undoing.

Still worth a PR to remove first from all existing place ^^. thx to spot this out!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mathpluscode picture mathpluscode  路  3Comments

NMontanaBrown picture NMontanaBrown  路  5Comments

NMontanaBrown picture NMontanaBrown  路  4Comments

mathpluscode picture mathpluscode  路  6Comments

zacbaum picture zacbaum  路  3Comments