프로젝트

일반

사용자정보

개정판 16ad12a7

ID16ad12a7abf600f09b8199f9f8582811e7d4597c
상위 c27f9302
하위 3295dab3, ee8e0b75

백흠경이(가) 약 4년 전에 추가함

issue #1059: Calculatoin result에 단위 반영

Change-Id: Ib8b437bd49d70ff40424d027b8b01c0c69d0c423

차이점 보기:

HYTOS/HYTOS/MainWindow.py
1936 1936
                                    horizontal = DrawImage(horizontal_flow_image_path)
1937 1937
                                    vertical_upward = DrawImage(vertical_upward_flow_image_path)
1938 1938
                                    vertical_downward = DrawImage(vertical_downward_flow_image_path)
1939

  
1939 1940
                                    # Calculation Result
1941
                                    MainWindow.write_calculation_result_units(ws, units)
1942

  
1940 1943
                                    row_no = 37
1941 1944
                                    for row in lines[0].mixed_pressure_variation:
1942 1945
                                        col_no = 12
......
2088 2091
                      f"{sys.exc_info()[-1].tb_lineno}"
2089 2092
            self.addMessage.emit(MessageType.Error, message)
2090 2093

  
2094
    @staticmethod
2095
    def write_calculation_result_units(ws, units) -> None:
2096
        """write calculation result unit for 2-phase"""
2097

  
2098
        row_no = 36
2099
        ws.cell(row_no, 13, units['Pipe_Diameter'])  # ID
2100
        ws.cell(row_no, 14, units['Length'])  # Length
2101
        ws.cell(row_no, 17, units['Pressure'])  # Pressure
2102
        ws.cell(row_no, 20, units['Density'])  # Mean. Density
2103
        ws.cell(row_no, 21, units['Density'])  # Homo. Density
2104
        ws.cell(row_no, 22, units['Density'])  # V.Density
2105
        ws.cell(row_no, 23, units['Velocity'])  # Mean.Vel
2106
        ws.cell(row_no, 24, units['Velocity'])  # Homo.Vel
2107
        ws.cell(row_no, 25, units['Velocity'])  # Max.Vel
2108
        ws.cell(row_no, 26, units['Velocity'])  # Ero.Vel
2109

  
2091 2110
    def get_work_sheet(self, work_book, count):
2092 2111
        page_no = math.ceil(count / 20)
2093 2112
        return work_book.get_sheet_by_name('Page ({})'.format(page_no))

내보내기 Unified diff

클립보드 이미지 추가 (최대 크기: 500 MB)