Skip to content

Commit

Permalink
0726
Browse files Browse the repository at this point in the history
  • Loading branch information
Su Tian committed Jul 26, 2021
1 parent f1d1414 commit 79a2f54
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions msgpi/cross_section.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import csv
import os
import sys
import pprint
import numpy as np
import xml.etree.ElementTree as et

Expand Down Expand Up @@ -137,7 +138,11 @@ def __init__(self, name):


def summary(self):
pp = pprint.PrettyPrinter(indent=4, width=1)
print(f'Name: {self.name}')
print(f'Template: {self.fn_design_tmp}')
print('Design parameters:')
pp.pprint(self.params)



5 changes: 5 additions & 0 deletions msgpi/ms/blade.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,11 @@ def summary(self):
print('segment', k)
v.summary()

print('\nCross-sections')
for cs_name, cs in self.section_database.items():
print(f'{cs_name}')
cs.summary()

print('\nSection templates')
for sn, st in self.section_templates.items():
print(f'{sn}: {st}')
Expand Down

0 comments on commit 79a2f54

Please sign in to comment.