•  

Comment Results

Review Name Created Custom Fields Content
HD-DEN-11980-1 16 Feb 2022

Please see comment below regarding the changes in common from this code review.

DG-DEN-5963-1 14 Apr 2021

That is tested in the start state.

DG-DEN-5963-1 14 Apr 2021

Done.

HD-DEN-11114-1 03 Jan 2022

Align comment.

UI-DEN-11980-1 17 Feb 2022

RESOLVED

DIALIN-DEN-8462-1 22 Jun 2021

That's a good idea and I think we should do so. Since this code review is quite old I will make that change in my latest branch

DIALIN-DEN-7792-1 14 Apr 2021

Now fixed

DIALIN-DEN-7792-1 14 Apr 2021

Can we remove these message IDs here?

HD-DEN-7395-1 14 Apr 2021

No action item.

HD-DEN-8030-1 24 Jun 2021

Done

DIALIN-DEN-11750-1 22 Feb 2022

Don't think we should have a magic number of 500 for this considering this is done on the HD and DG side. Maybe ALARM_ID_MAX_ALARMS = 500 in alarm_defs.py?

DG-DEN-5963-1 14 Apr 2021

Still too many () now. You can still have 2 Hz default publish time if you want - I just didn't like the arrangement. Should be more like ( 500 / TASK_PRIORITY_INTERVAL ) so it is clear that you want every 500 ms.

HD-DEN-7395-1 13 Apr 2021

Consider checking for the Zero each time we execute this state (not just after timeout).
Consider moving timeout to the alarm below (give zero time to happen, alarm if timeout).
Consider giving alarm a little more than 10 ms (maybe 20 or 30ms) as 10ms is how long it will take to go from init to zero state (i.e. 10ms timeout will occur as soon as we get here).

HD-DEN-11098-1 19 Nov 2021

Done

DG-DEN-12931-1 03 Aug 2022

We do not update the variables if the if they do not meet the conditions.

DG-DEN-12931-1 03 Aug 2022

This was defined in DEN-13460.

HD-DEN-12931-2 03 Aug 2022

Done.

UI-DEN-10602-1 29 Nov 2021

RESOLVED.

HD-DEN-11114-1 29 Nov 2021

Done.

HD-DEN-11114-1 29 Nov 2021

Done.

HD-DEN-11114-1 29 Nov 2021

Done.

HD-DEN-11098-1 18 Nov 2021

This might be reservoir 1 - there is a pre-treatment reservoir mgmt function handling this - check to see which reservoir is active at beginning of prime here.

HD-DEN-11098-1 02 Dec 2021

RESOLVED in CODE WALKTHROUGH.

HD-DEN-11098-1 02 Dec 2021

RESOLVED in CODE WALKTHROUGH.

HD-DEN-11114-1 29 Nov 2021

This is a normal system message handler. It does not belong down in the Dialin test support area. Move up to normal handler functions area.

HD-DEN-11114-1 02 Dec 2021

RESOLVED in CODE WALKTHROUGH.

HD-DEN-11098-1 24 Nov 2021

Should only set this to true when we know we will accept request.

UI-DEN-10602-1 13 Dec 2021

RESOLVED

HD-DEN-11098-1 13 Dec 2021

No, loadcellSteadyVolumeStartTime was last set when the primeDialysateDialyzerTimeLimit has just expired.

DIALIN-DEN-10602-2 15 Dec 2021

RESOLVED

DIALIN-DEN-10602-2 15 Dec 2021

That one is intentional.
I actually tried to find a word with a correct meaning with the same character length as Target, Actual, Origin. Since this one is not showing up on any scrip or file other than the code, that is fine.

UI-DEN-10205-1 21 Dec 2021

These changes have been requested by SysEngz.
Let them have a look and decide if it's what they want.

UI-DEN-10205-1 22 Dec 2021

RESOLVED

UI-DEN-10205-1 21 Dec 2021

I would rather keep it for debugging purposes in case of error.

UI-DEN-10205-1 21 Dec 2021

This is calling didAttributeResponse from DeviceGlobals.h, correct?

HD-DEN-11098-1 30 Dec 2021

STEADY_VOLUME_COUNT_SEC is a number of seconds of stability indicating volume is steady. This only works because sampling time above is once per second. If somebody changes the sampling time, this condition will not be right.

HD-DEN-11098-1 13 Dec 2021

If skipping priming, would we even get here?

HD-DEN-11098-1 13 Dec 2021

Add blank line between these lines.

HD-DEN-11098-1 24 Nov 2021

Comment should change from 200 to 50.

HD-DEN-7395-1 09 Apr 2021

There is only one state in this override message. It can be status or state (depending on message ID), but not both. Whichever it is, you are passing it to a function twice as if it is two different things. You need to revert back to having two override messages and two message handlers - one for status and one for state.

DG-DEN-13460-2 22 Sep 2022

RESOLVED IN CODE WALKTHROUGH

UI-DEN-11980-1 16 Feb 2022

Fixed. Thanks!

DG-DEN-5963-1 13 Apr 2021

I spelled it completely.

HD-DEN-11098-1 23 Nov 2021

Move this line to when prime dialyzer state is completed before we go to wet self tests.

DG-DEN-5963-1 13 Apr 2021

This section was for debugging only. I removed it.

DIALIN-DEN-11980-1 17 Feb 2022

I think soon we need to replace these error-prone indexing data extraction with the new conversion functions in the utility module.
As an example take a look at ui/hd_simulator.py@1926:

    @publish(["ui_version"])
    def _handler_ui_version(self, message) -> None:
        """
        Handles the ui version response
        @param message: The ui version response message
        @return: None
        """
        payload = message['message']
        index = DenaliMessage.PAYLOAD_START_INDEX
        major, index = bytearray_to_byte(payload, index, False)
        minor, index = bytearray_to_byte(payload, index, False)
        micro, index = bytearray_to_byte(payload, index, False)
        build, index = bytearray_to_short(payload, index, False)
        compt, index = bytearray_to_integer(payload, index, False)

        self.ui_version = f"v{major}.{minor}.{micro}.{build}.{compt}"
        self.logger.debug(f"UI VERSION: {self.ui_version}")

        if self.console_out:
            print("Version:", self.ui_version)
DG-DEN-8030-1 16 Jun 2021

We should keep this for now in case we wanted to lower the heaters duty cycle to previous limits.

DG-DEN-5963-1 13 Apr 2021

Union is not applicable in this case. Every field of this struct has a different value to be stored.

HD-DEN-11980-1 17 Feb 2022

RESOLVED in CODE WALKTHROUGH.

DIALIN-DEN-7792-1 14 Apr 2021

RESOLVED.