•  

Comment Results

Review Name Created Custom Fields Content
UI-DEN-2793-1 26 Apr 2020

RESOLVED

DG-DEN-2650-1 28 Apr 2020

RESOLVED in CODE WALKTHROUGH.

DIALIN-REFACTORING-3-1 30 Apr 2020

RESOLVED.

DIALIN-REFACTORING-3-1 04 May 2020

Why we setup to virtual can 0,1 ?

DG-DEN-2652-1 04 May 2020

Override logic does not belong here. I would replace this entire if...else... with the following statement:
result |= ( getValveState( i ) == 1 ? 0x0001 << i : 0 );

HD-DEN-3115-1 12 May 2020

RESOLVED in CODE WALKTHROUGH.

DG-DEN-2652-1 05 May 2020

Agreed and done.

DG-DEN-2652-1 05 May 2020

Agreed and done.

DG-DEN-2652-1 05 May 2020

I would use U08 instead of int

DG-DEN-2652-1 05 May 2020

RESOLVED in CODE WALKTHROUGH.

DG-DEN-2650-1 06 May 2020

RESOLVED in CODE WALKTHROUGH.

UI-DEN-3024-1 07 May 2020

It is too late to change this. Please make sure this naming convention is consistent with our C++ Coding Standard.

UI-DEN-3024-1 07 May 2020

RESOLVED.

UI-DEN-3024-1 07 May 2020

RESOLVED.

UI-DEN-3024-1 06 May 2020

referenced

HD-DEN-3115-1 11 May 2020

What should we do here?

HD-DEN-3115-1 11 May 2020

The commented line is how it was supposed to be. Looks like the two signals got swapped. I didn't want to delete until I know what EE was going to do.

HD-DEN-3115-1 11 May 2020

I didn't intend to keep it commented out - I had commented it out to troubleshoot something and forgot to put it back. Fixed.

HD-DEN-3115-1 11 May 2020

Fixed.

HD-DEN-3115-1 11 May 2020

Remove commented line

HD-DEN-3115-1 11 May 2020

We want RPM speeds in reverse direction to be presented as negative number.

HD-DEN-3115-1 11 May 2020

Remove commented line

HD-DEN-3115-1 11 May 2020

We want motor speeds in reverse direction represented as negative number.

HD-DEN-3115-1 12 May 2020

RESOLVED in CODE WALKTHROUGH.

HD-DEN-3115-1 12 May 2020

Propose that we throw in a software fault.

HD-DEN-3115-1 11 May 2020

Why -1.0?

HD-DEN-3115-1 12 May 2020

RESOLVED in CODE WALKTHROUGH.

DG-DEN-2650-1 13 May 2020

RESOLVED in CODE WALKTHROUGH.

HD-DEN-3115-1 11 May 2020

Why some of them are ///< and some ///>?

HD-DEN-3115-1 14 May 2020

Yes, supporting System's flow sensor testing.

HD-DEN-3115-1 14 May 2020

Really? Every 10 s we control the blood pump?

HD-DEN-3115-1 18 May 2020

RESOLVED in CODE WALKTHROUGH.

HD-DEN-3115-1 14 May 2020

I see many functions are the same for both blood and dialysate pumps and their control, perhaps worth considering consolidating into FWCommon?

DG-DEN-2650-1 18 May 2020

We should cover this in Dara's code review.

UI-DEN-3149-1 11 Jun 2020

I believe it should be consistent throughout the code. It makes the review of it easier for everyone. Ultimately, this should be driven by the C++ coding standard.

UI-DEN-3149-1 15 Jun 2020

Thanks Peter for catching that.
Removed.

UI-DEN-2793-1 26 Apr 2020

Understood, you have replied this question in another part of this code review.

HD-DEN-2390-1 30 Mar 2020

I needed the treatment mode module to be able to see these so it could verify user settings changes.

UI-DEN-2087-1 22 Apr 2020

1. Still need to address the missing header.

2. Understood, I have used function overloading in the past.

HD-DEN-2390-1 30 Mar 2020

Not sure how else user would request something. I'm trying to keep these enums short while still being descriptive.

DG-COMMON-FIX-1 30 Mar 2020

RESOLVED in CODE WALKTHROUGH.

UI-DEN-2087-1 22 Apr 2020

RESOLVED.

HD-DEN-2390-1 30 Mar 2020

RESOLVED in CODE WALKTHROUGH.

UI-DEN-2236-1 24 Apr 2020

def partition_orig(vString, vPart, vRightDirection = True):
    if vRightDirection:
        list = [vString[i - vPart : i] for i in range(len(vString), 0, -vPart)]
    else:
        list = [vString[i : i + vPart] for i in range(0, len(vString), vPart)]
    return list


def partition_2(vString, vPart, vRightDirection = True):
    if vRightDirection:
        vString = vString[::-1]
    return [vString[i : i + vPart][::-1] for i in range(0, len(vString), vPart)]

print(partition_orig("TESTING123", 3))
print(partition_2("TESTING123", 3))

                  


Outputs:

['123', 'ING', 'EST', '']
['123', 'ING', 'EST', 'T']


whereas

def partition_2(vString, vPart, vRightDirection = True):
    if vRightDirection:
        vString = vString[::-1]
    return [vString[i : i + vPart] for i in range(0, len(vString), vPart)]


outputs

['321', 'GNI', 'TSE', 'T']


I think you're saying you want to do the second one right? I think that would be better too!

Edit: Also I don't think you need the mString because in python immutable types (e.g. string, number, tuple) behave like call by value

DG-DEN-2650-1 22 Apr 2020

There may be other conditions added later, but these are what I know so far. To accept a fill command, you have to be in recirculate mode and the requested fill to volume must be in valid range.

UI-DEN-2087-1 23 Apr 2020

Please resolve the comment as well.
Also a good reference for later:
http://www.cplusplus.com/doc/tutorial/typecasting/

DG-DEN-2652-1 05 May 2020

Agreed and done, makes sense to move them at the end of function with publish, together.

UI-DEN-2793-1 26 Apr 2020

Is this annotation part of the Qt C++ coding standard? tst_fromvariant_Bool_True? What is the rule? I am more used to:

tstFromVariantBoolTrue, which is camelCase.

DG-DEN-2650-1 27 Apr 2020

Empty?

DG-DEN-2650-1 01 May 2020

Done