pyfemtet 0.8.9__py3-none-any.whl → 0.8.10__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of pyfemtet might be problematic. Click here for more details.
- pyfemtet/__init__.py +1 -1
- pyfemtet/_message/locales/ja/LC_MESSAGES/messages.mo +0 -0
- pyfemtet/_message/locales/ja/LC_MESSAGES/messages.po +10 -2
- pyfemtet/_message/locales/messages.pot +10 -2
- pyfemtet/_message/messages.py +2 -1
- pyfemtet/_util/excel_parse_util.py +33 -15
- pyfemtet/opt/_femopt.py +2 -0
- pyfemtet/opt/_femopt_core.py +1 -1
- pyfemtet/opt/advanced_samples/excel_ui/femtet-macro.xlsm +0 -0
- pyfemtet/opt/advanced_samples/meta_script/meta_script.py +163 -0
- pyfemtet/opt/advanced_samples/meta_script/sample.yaml +14 -0
- pyfemtet/opt/advanced_samples/meta_script/yaml_generator.txt +0 -0
- pyfemtet/opt/advanced_samples/meta_script/yaml_generator.xlsm +0 -0
- pyfemtet/opt/interface/__init__.py +1 -1
- pyfemtet/opt/interface/_base.py +13 -4
- pyfemtet/opt/interface/_excel_interface.py +45 -39
- pyfemtet/opt/interface/_femtet.py +6 -2
- pyfemtet/opt/interface/_femtet_excel.py +138 -0
- pyfemtet/opt/interface/_surrogate/_base.py +43 -0
- pyfemtet/opt/interface/_surrogate_excel.py +102 -0
- pyfemtet/opt/visualization/_process_monitor/pages.py +13 -0
- {pyfemtet-0.8.9.dist-info → pyfemtet-0.8.10.dist-info}/METADATA +2 -1
- {pyfemtet-0.8.9.dist-info → pyfemtet-0.8.10.dist-info}/RECORD +26 -20
- {pyfemtet-0.8.9.dist-info → pyfemtet-0.8.10.dist-info}/WHEEL +1 -1
- {pyfemtet-0.8.9.dist-info → pyfemtet-0.8.10.dist-info}/LICENSE +0 -0
- {pyfemtet-0.8.9.dist-info → pyfemtet-0.8.10.dist-info}/entry_points.txt +0 -0
pyfemtet/__init__.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = "0.8.
|
|
1
|
+
__version__ = "0.8.10"
|
|
Binary file
|
|
@@ -7,7 +7,7 @@ msgid ""
|
|
|
7
7
|
msgstr ""
|
|
8
8
|
"Project-Id-Version: PROJECT VERSION\n"
|
|
9
9
|
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
|
|
10
|
-
"POT-Creation-Date: 2025-
|
|
10
|
+
"POT-Creation-Date: 2025-02-19 13:47+0900\n"
|
|
11
11
|
"PO-Revision-Date: 2024-07-22 14:05+0900\n"
|
|
12
12
|
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
|
13
13
|
"Language: ja\n"
|
|
@@ -16,7 +16,7 @@ msgstr ""
|
|
|
16
16
|
"MIME-Version: 1.0\n"
|
|
17
17
|
"Content-Type: text/plain; charset=utf-8\n"
|
|
18
18
|
"Content-Transfer-Encoding: 8bit\n"
|
|
19
|
-
"Generated-By: Babel 2.
|
|
19
|
+
"Generated-By: Babel 2.17.0\n"
|
|
20
20
|
|
|
21
21
|
#: pyfemtet/_message/messages.py:30
|
|
22
22
|
msgid "hello!"
|
|
@@ -542,6 +542,14 @@ msgstr "ひとつの設計変数に対する目的関数の変化"
|
|
|
542
542
|
msgid "The vertical axis is objective, and the horizontal axis is parameter."
|
|
543
543
|
msgstr "縦軸は目的関数、横軸は設計変数です。"
|
|
544
544
|
|
|
545
|
+
#: pyfemtet/_message/messages.py:201
|
|
546
|
+
msgid "The importance of parameters evaluated by fANOVA"
|
|
547
|
+
msgstr "fANOVA に基づくパラメータ重要度"
|
|
548
|
+
|
|
549
|
+
#: pyfemtet/_message/messages.py:202
|
|
550
|
+
msgid "The normalized relative importance of parameters. Please note that the importance is calculated from the overall relationship of the input-output response, rather than from a specific solution."
|
|
551
|
+
msgstr "相対的なパラメータの重要度です。この重要度は特定の解におけるものではなく、入力-出力応答全体の関係から計算されていることに注意してください。"
|
|
552
|
+
|
|
545
553
|
#~ msgid "The magnitude relationship is incorrect. "
|
|
546
554
|
#~ msgstr ""
|
|
547
555
|
|
|
@@ -8,14 +8,14 @@ msgid ""
|
|
|
8
8
|
msgstr ""
|
|
9
9
|
"Project-Id-Version: PROJECT VERSION\n"
|
|
10
10
|
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
|
|
11
|
-
"POT-Creation-Date: 2025-
|
|
11
|
+
"POT-Creation-Date: 2025-02-19 13:47+0900\n"
|
|
12
12
|
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
|
13
13
|
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
|
14
14
|
"Language-Team: LANGUAGE <LL@li.org>\n"
|
|
15
15
|
"MIME-Version: 1.0\n"
|
|
16
16
|
"Content-Type: text/plain; charset=utf-8\n"
|
|
17
17
|
"Content-Transfer-Encoding: 8bit\n"
|
|
18
|
-
"Generated-By: Babel 2.
|
|
18
|
+
"Generated-By: Babel 2.17.0\n"
|
|
19
19
|
|
|
20
20
|
#: pyfemtet/_message/messages.py:30
|
|
21
21
|
msgid "hello!"
|
|
@@ -541,3 +541,11 @@ msgstr ""
|
|
|
541
541
|
msgid "The vertical axis is objective, and the horizontal axis is parameter."
|
|
542
542
|
msgstr ""
|
|
543
543
|
|
|
544
|
+
#: pyfemtet/_message/messages.py:201
|
|
545
|
+
msgid "The importance of parameters evaluated by fANOVA"
|
|
546
|
+
msgstr ""
|
|
547
|
+
|
|
548
|
+
#: pyfemtet/_message/messages.py:202
|
|
549
|
+
msgid "The normalized relative importance of parameters. Please note that the importance is calculated from the overall relationship of the input-output response, rather than from a specific solution."
|
|
550
|
+
msgstr ""
|
|
551
|
+
|
pyfemtet/_message/messages.py
CHANGED
|
@@ -198,4 +198,5 @@ class Message:
|
|
|
198
198
|
DETAIL_PAGE_CONTOUR_DESCRIPTION = _('The axes are parameters, and the color shows objective value.')
|
|
199
199
|
DETAIL_PAGE_SLICE_HEADER = _('The response of an objective versus one parameter')
|
|
200
200
|
DETAIL_PAGE_SLICE_DESCRIPTION = _('The vertical axis is objective, and the horizontal axis is parameter.')
|
|
201
|
-
|
|
201
|
+
DETAIL_PAGE_IMPORTANCE_HEADER = _('The importance of parameters evaluated by fANOVA')
|
|
202
|
+
DETAIL_PAGE_IMPORTANCE_DESCRIPTION = _('The normalized relative importance of parameters. Please note that the importance is calculated from the overall relationship of the input-output response, rather than from a specific solution.')
|
|
@@ -13,15 +13,15 @@ __all__ = [
|
|
|
13
13
|
]
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
def parse_excel(book_path, sheet_name, keyword, required, optional) -> pd.DataFrame:
|
|
16
|
+
def parse_excel(book_path, sheet_name, keyword, required, optional, raise_if_no_keyword=True) -> pd.DataFrame:
|
|
17
17
|
"""Excel シートからパラメータを取得します。
|
|
18
18
|
|
|
19
19
|
シートのパースプロセスは以下の通りです。
|
|
20
20
|
|
|
21
21
|
1. シート全体 (A1 セルから、値が入力されている最終セルまで) をデータに取り込みます。
|
|
22
|
-
2.
|
|
23
|
-
3.
|
|
24
|
-
4.
|
|
22
|
+
2. 最も左上(上が優先)にある keyword に一致するセルより上および左の行・列をデータから除きます。
|
|
23
|
+
3. その時点のデータの上から順に見てすべてのセルが空白である行以下の行をデータから除きます。
|
|
24
|
+
4. すべてのセルが空白である列をデータから除きます。
|
|
25
25
|
|
|
26
26
|
Args:
|
|
27
27
|
book_path: Excel book のパス。
|
|
@@ -29,6 +29,7 @@ def parse_excel(book_path, sheet_name, keyword, required, optional) -> pd.DataFr
|
|
|
29
29
|
keyword (str): 必ず含まれるべき、表データの最初の列名として使う文字列。
|
|
30
30
|
required (list[str]): 必ず含まれるべき、表データの列名として使う文字列のリスト。
|
|
31
31
|
optional (list[str]): 表データの列名として使ってよい文字列のリスト。
|
|
32
|
+
raise_if_no_keyword (bool, optional): 指定されたシートに keyword が含まれない場合エラーにするかどうか。
|
|
32
33
|
|
|
33
34
|
Returns:
|
|
34
35
|
|
|
@@ -41,21 +42,31 @@ def parse_excel(book_path, sheet_name, keyword, required, optional) -> pd.DataFr
|
|
|
41
42
|
# 読み込み
|
|
42
43
|
df = pd.read_excel(book_path, sheet_name, header=None)
|
|
43
44
|
|
|
44
|
-
# NaN のみからなる列を削除する
|
|
45
|
-
valid_columns = [col for col in df.columns if df[col].notna().sum()]
|
|
46
|
-
df = df[valid_columns]
|
|
47
|
-
|
|
48
|
-
# NaN のみからなる行を削除する
|
|
49
|
-
valid_rows = [row for row in df.index if df.loc[row].notna().sum()]
|
|
50
|
-
df = df.loc[valid_rows]
|
|
51
|
-
|
|
52
45
|
# 「変数名」を左上とする表にする
|
|
53
|
-
df: pd.DataFrame
|
|
54
46
|
idx = np.where(df.values == keyword)
|
|
47
|
+
if len(idx[0]) == 0:
|
|
48
|
+
if raise_if_no_keyword:
|
|
49
|
+
raise RuntimeError(f'keyword "{keyword}" is lacked in {sheet_name}. ')
|
|
50
|
+
else:
|
|
51
|
+
return pd.DataFrame()
|
|
52
|
+
|
|
55
53
|
r = idx[0][0]
|
|
56
54
|
c = idx[1][0]
|
|
57
55
|
df = pd.DataFrame(df.iloc[1+r:, c:].values, columns=df.iloc[r, c:].values)
|
|
58
56
|
|
|
57
|
+
# NaN のみからなる行を最初に見つけるまでデータに追加する
|
|
58
|
+
valid_rows = []
|
|
59
|
+
for row in df.index:
|
|
60
|
+
if df.loc[row].notna().sum():
|
|
61
|
+
valid_rows.append(row)
|
|
62
|
+
else:
|
|
63
|
+
break
|
|
64
|
+
df = df.loc[valid_rows]
|
|
65
|
+
|
|
66
|
+
# NaN のみからなる列を削除する
|
|
67
|
+
valid_columns = [col for i, col in enumerate(df.columns) if df.iloc[:, i].notna().sum()]
|
|
68
|
+
df = df[valid_columns]
|
|
69
|
+
|
|
59
70
|
# パースが成功しているかチェックする
|
|
60
71
|
lack = True
|
|
61
72
|
for col in df.columns:
|
|
@@ -76,8 +87,15 @@ class ParseBase:
|
|
|
76
87
|
OPTIONAL_COLUMNS = []
|
|
77
88
|
|
|
78
89
|
@classmethod
|
|
79
|
-
def parse(cls, book_path, sheet_name) -> pd.DataFrame:
|
|
80
|
-
return parse_excel(
|
|
90
|
+
def parse(cls, book_path, sheet_name, raise_if_no_keyword=True) -> pd.DataFrame:
|
|
91
|
+
return parse_excel(
|
|
92
|
+
book_path,
|
|
93
|
+
sheet_name,
|
|
94
|
+
cls.KEYWORD,
|
|
95
|
+
cls.REQUIRED_COLUMNS,
|
|
96
|
+
cls.OPTIONAL_COLUMNS,
|
|
97
|
+
raise_if_no_keyword,
|
|
98
|
+
)
|
|
81
99
|
|
|
82
100
|
|
|
83
101
|
class ParseAsParameter(ParseBase):
|
pyfemtet/opt/_femopt.py
CHANGED
|
@@ -139,6 +139,7 @@ class FEMOpt:
|
|
|
139
139
|
self.monitor_host_record = None
|
|
140
140
|
self._hv_reference = None
|
|
141
141
|
self._extra_space_dir = None
|
|
142
|
+
self._opt_exceptions = []
|
|
142
143
|
|
|
143
144
|
# multiprocess 時に pickle できないオブジェクト参照の削除
|
|
144
145
|
def __getstate__(self):
|
|
@@ -925,6 +926,7 @@ class FEMOpt:
|
|
|
925
926
|
sleep(1) # monitor が terminated 状態で少なくとも一度更新されなければ running のまま固まる
|
|
926
927
|
|
|
927
928
|
# 全ての Exception を再表示
|
|
929
|
+
self._opt_exceptions = opt_exceptions
|
|
928
930
|
for i, opt_exception in enumerate(opt_exceptions):
|
|
929
931
|
if opt_exception is not None:
|
|
930
932
|
print()
|
pyfemtet/opt/_femopt_core.py
CHANGED
|
@@ -325,7 +325,7 @@ class Function:
|
|
|
325
325
|
args = self.args
|
|
326
326
|
# Femtet 特有の処理
|
|
327
327
|
if isinstance(fem, FemtetInterface):
|
|
328
|
-
args = (fem.
|
|
328
|
+
args = (fem.object_passed_to_functions, *args)
|
|
329
329
|
return float(self.fun(*args, **self.kwargs))
|
|
330
330
|
|
|
331
331
|
def _restore_constants(self):
|
|
Binary file
|
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
# for meta script
|
|
2
|
+
import os
|
|
3
|
+
import pyfemtet
|
|
4
|
+
|
|
5
|
+
if __name__ == '__main__':
|
|
6
|
+
print(f'pyfemtet {pyfemtet.__version__} starting.')
|
|
7
|
+
|
|
8
|
+
from pyfemtet._message.messages import encoding
|
|
9
|
+
|
|
10
|
+
from fire import Fire
|
|
11
|
+
import yaml
|
|
12
|
+
|
|
13
|
+
# for concrete script
|
|
14
|
+
from pyfemtet.opt import FEMOpt
|
|
15
|
+
from pyfemtet.opt.interface import *
|
|
16
|
+
from pyfemtet.opt.optimizer import *
|
|
17
|
+
from optuna.samplers import *
|
|
18
|
+
from pyfemtet.opt.interface._femtet_excel import FemtetWithExcelSettingsInterface
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
# fore debug
|
|
22
|
+
class ContentContext:
|
|
23
|
+
|
|
24
|
+
def __init__(self, content_):
|
|
25
|
+
self.content = content_
|
|
26
|
+
|
|
27
|
+
def __enter__(self):
|
|
28
|
+
return self.content
|
|
29
|
+
|
|
30
|
+
def __exit__(self, exc_type, exc_val, exc_tb):
|
|
31
|
+
pass
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
def main(
|
|
35
|
+
yaml_path: str = None,
|
|
36
|
+
|
|
37
|
+
interface_class: str = None, # including parameter definition excel
|
|
38
|
+
interface_kwargs: str = None, # including Parametric Analysis Output
|
|
39
|
+
optimizer_class: str = None,
|
|
40
|
+
optimizer_kwargs: str = None,
|
|
41
|
+
femopt_kwargs: str = None,
|
|
42
|
+
seed: str = 'null',
|
|
43
|
+
optimize_kwargs: str = None,
|
|
44
|
+
):
|
|
45
|
+
"""
|
|
46
|
+
|
|
47
|
+
Args:
|
|
48
|
+
yaml_path:
|
|
49
|
+
If this argument is passed, the other arguments will be ignored
|
|
50
|
+
and load by .yaml file.
|
|
51
|
+
The yaml file must contain the other arguments.
|
|
52
|
+
|
|
53
|
+
interface_class: FemtetWithExcelSettingsInterface or SurrogateModelInterface.
|
|
54
|
+
interface_kwargs: See documentation of each interface class.
|
|
55
|
+
optimizer_class: OptunaOptimizer or ScipyOptimizer.
|
|
56
|
+
optimizer_kwargs: See documentation of each optimizer class.
|
|
57
|
+
femopt_kwargs: See documentation of FEMOpt.
|
|
58
|
+
seed: int or None.
|
|
59
|
+
optimize_kwargs: See documentation of FEMOpt.optimize().
|
|
60
|
+
|
|
61
|
+
"""
|
|
62
|
+
|
|
63
|
+
if yaml_path is not None:
|
|
64
|
+
if os.path.isfile(yaml_path):
|
|
65
|
+
context = open(yaml_path, 'r', encoding='utf-8')
|
|
66
|
+
else:
|
|
67
|
+
print('debug mode')
|
|
68
|
+
context = ContentContext(yaml_path)
|
|
69
|
+
with context as f:
|
|
70
|
+
d = yaml.safe_load(f)
|
|
71
|
+
interface_class = yaml.safe_dump(d['interface_class'], allow_unicode=True)
|
|
72
|
+
interface_kwargs = yaml.safe_dump(d['interface_kwargs'], allow_unicode=True)
|
|
73
|
+
optimizer_class = yaml.safe_dump(d['optimizer_class'], allow_unicode=True)
|
|
74
|
+
optimizer_kwargs = yaml.safe_dump(d['optimizer_kwargs'], allow_unicode=True)
|
|
75
|
+
femopt_kwargs = yaml.safe_dump(d['femopt_kwargs'], allow_unicode=True)
|
|
76
|
+
seed = yaml.safe_dump(d['seed'], allow_unicode=True)
|
|
77
|
+
optimize_kwargs = yaml.safe_dump(d['optimize_kwargs'], allow_unicode=True)
|
|
78
|
+
|
|
79
|
+
Interface = eval(yaml.safe_load(interface_class))
|
|
80
|
+
interface_kwargs_ = yaml.safe_load(interface_kwargs)
|
|
81
|
+
|
|
82
|
+
Optimizer = eval(yaml.safe_load(optimizer_class))
|
|
83
|
+
optimizer_kwargs_ = yaml.safe_load(optimizer_kwargs)
|
|
84
|
+
|
|
85
|
+
femopt_kwargs_ = yaml.safe_load(femopt_kwargs)
|
|
86
|
+
|
|
87
|
+
seed_ = yaml.safe_load(seed)
|
|
88
|
+
|
|
89
|
+
optimize_kwargs_ = yaml.safe_load(optimize_kwargs)
|
|
90
|
+
|
|
91
|
+
fem = Interface(**interface_kwargs_)
|
|
92
|
+
opt = Optimizer(**optimizer_kwargs_)
|
|
93
|
+
femopt = FEMOpt(fem=fem, opt=opt, **femopt_kwargs_)
|
|
94
|
+
femopt.set_random_seed(seed_)
|
|
95
|
+
femopt.optimize(**optimize_kwargs_)
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
# if __name__ == '__main__':
|
|
99
|
+
# Fire(main)
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
# for debugging file input
|
|
103
|
+
if __name__ == '__main__':
|
|
104
|
+
os.chdir(os.path.dirname(__file__))
|
|
105
|
+
path = 'sample.yaml'
|
|
106
|
+
main(yaml_path=path)
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
# for debugging yaml input
|
|
110
|
+
# if __name__ == '__main__':
|
|
111
|
+
# content = r"""
|
|
112
|
+
# interface_class: FemtetInterface
|
|
113
|
+
# interface_kwargs:
|
|
114
|
+
# femprj_path: C:\日本語ファイル.femprj
|
|
115
|
+
# optimizer_class: OptunaOptimizer
|
|
116
|
+
# optimizer_kwargs:
|
|
117
|
+
# sampler_class: TPESampler
|
|
118
|
+
# sampler_kwargs:
|
|
119
|
+
# n_startup_trials: 10
|
|
120
|
+
# femopt_kwargs:
|
|
121
|
+
# history_path: sample.csv
|
|
122
|
+
# optimize_kwargs:
|
|
123
|
+
# n_trials: 15
|
|
124
|
+
# confirm_before_exit: False
|
|
125
|
+
# seed: null
|
|
126
|
+
# """
|
|
127
|
+
#
|
|
128
|
+
# main(yaml_path=content)
|
|
129
|
+
|
|
130
|
+
|
|
131
|
+
# for debugging CLI input
|
|
132
|
+
# if __name__ == '__main__':
|
|
133
|
+
#
|
|
134
|
+
# interface_kwargs = dict(
|
|
135
|
+
# femprj_path=r'sample.femprj',
|
|
136
|
+
# parametric_output_indexes_use_as_objective={0: 0, 1: 'minimize'}
|
|
137
|
+
# )
|
|
138
|
+
# optimizer_kwargs = dict(
|
|
139
|
+
# sampler_class='TPESampler',
|
|
140
|
+
# sampler_kwargs=dict(
|
|
141
|
+
# n_startup_trials=10,
|
|
142
|
+
# )
|
|
143
|
+
# )
|
|
144
|
+
# femopt_kwargs = dict(
|
|
145
|
+
# history_path='sample.csv'
|
|
146
|
+
# )
|
|
147
|
+
#
|
|
148
|
+
# seed = None
|
|
149
|
+
#
|
|
150
|
+
# optimize_kwargs = dict(
|
|
151
|
+
# n_trials=15,
|
|
152
|
+
# confirm_before_exit=False,
|
|
153
|
+
# )
|
|
154
|
+
#
|
|
155
|
+
# main(
|
|
156
|
+
# interface_class='FemtetWithExcelSettingsInterface',
|
|
157
|
+
# interface_kwargs=yaml.safe_dump(interface_kwargs, allow_unicode=True),
|
|
158
|
+
# optimizer_class='OptunaOptimizer',
|
|
159
|
+
# optimizer_kwargs=yaml.safe_dump(optimizer_kwargs, allow_unicode=True),
|
|
160
|
+
# femopt_kwargs=yaml.safe_dump(femopt_kwargs, allow_unicode=True),
|
|
161
|
+
# seed=yaml.safe_dump(femopt_kwargs, allow_unicode=True),
|
|
162
|
+
# optimize_kwargs=yaml.safe_dump(optimize_kwargs, allow_unicode=True),
|
|
163
|
+
# )
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
interface_class: FemtetInterface
|
|
2
|
+
interface_kwargs:
|
|
3
|
+
femprj_path: C:\日本語ファイル.femprj
|
|
4
|
+
optimizer_class: OptunaOptimizer
|
|
5
|
+
optimizer_kwargs:
|
|
6
|
+
sampler_class: TPESampler
|
|
7
|
+
sampler_kwargs:
|
|
8
|
+
n_startup_trials: 10
|
|
9
|
+
femopt_kwargs:
|
|
10
|
+
history_path: sample.csv
|
|
11
|
+
optimize_kwargs:
|
|
12
|
+
n_trials: 15
|
|
13
|
+
confirm_before_exit: False
|
|
14
|
+
seed: null
|
|
Binary file
|
|
Binary file
|
pyfemtet/opt/interface/_base.py
CHANGED
|
@@ -24,18 +24,27 @@ class FEMInterface(ABC):
|
|
|
24
24
|
|
|
25
25
|
"""
|
|
26
26
|
|
|
27
|
+
kwargs = None
|
|
28
|
+
|
|
27
29
|
def __init__(
|
|
28
30
|
self,
|
|
29
31
|
**kwargs
|
|
30
32
|
):
|
|
31
33
|
# restore のための情報保管
|
|
32
|
-
self.kwargs
|
|
34
|
+
if self.kwargs is None:
|
|
35
|
+
self.kwargs = kwargs
|
|
36
|
+
else:
|
|
37
|
+
self.kwargs.update(kwargs)
|
|
33
38
|
|
|
34
39
|
@abstractmethod
|
|
35
40
|
def update(self, parameters: pd.DataFrame) -> None:
|
|
36
41
|
"""Updates the FEM analysis based on the proposed parameters."""
|
|
37
42
|
raise NotImplementedError('update() must be implemented.')
|
|
38
43
|
|
|
44
|
+
@property
|
|
45
|
+
def object_passed_to_functions(self):
|
|
46
|
+
return self
|
|
47
|
+
|
|
39
48
|
def check_param_value(self, param_name) -> float or None:
|
|
40
49
|
"""Checks the value of a parameter in the FEM model (if implemented in concrete class)."""
|
|
41
50
|
pass
|
|
@@ -50,13 +59,13 @@ class FEMInterface(ABC):
|
|
|
50
59
|
pass
|
|
51
60
|
|
|
52
61
|
def load_parameter(self, opt) -> None: # opt: AbstractOptimizer
|
|
53
|
-
|
|
62
|
+
pass
|
|
54
63
|
|
|
55
64
|
def load_objective(self, opt) -> None: # opt: AbstractOptimizer
|
|
56
|
-
|
|
65
|
+
pass
|
|
57
66
|
|
|
58
67
|
def load_constraint(self, opt) -> None: # opt: AbstractOptimizer
|
|
59
|
-
|
|
68
|
+
pass
|
|
60
69
|
|
|
61
70
|
def _setup_before_parallel(self, client) -> None:
|
|
62
71
|
"""Preprocessing before launching a dask worker (if implemented in concrete class).
|
|
@@ -55,36 +55,36 @@ class ExcelInterface(FEMInterface):
|
|
|
55
55
|
input_xlsm_path (str or Path):
|
|
56
56
|
設計変数の定義を含む Excel ファイルのパスを指定
|
|
57
57
|
します。
|
|
58
|
-
|
|
58
|
+
|
|
59
59
|
input_sheet_name (str):
|
|
60
60
|
設計変数の定義を含むシートの名前を指定します。
|
|
61
|
-
|
|
61
|
+
|
|
62
62
|
output_xlsm_path (str or Path, optional):
|
|
63
63
|
目的関数の定義を含む Excel ファイルのパスを指定
|
|
64
64
|
します。指定しない場合は ``input_xlsm_path`` と
|
|
65
65
|
同じと見做します。
|
|
66
|
-
|
|
66
|
+
|
|
67
67
|
output_sheet_name (str, optional):
|
|
68
68
|
目的関数の定義を含む含むシートの名前を指定します。
|
|
69
69
|
指定しない場合は ``input_sheet_name`` と同じと見
|
|
70
70
|
做します。
|
|
71
|
-
|
|
71
|
+
|
|
72
72
|
procedure_name (str, optional):
|
|
73
73
|
Excel マクロ関数名を指定します。指定しない場合は
|
|
74
74
|
``FemtetMacro.FemtetMain`` と見做します。
|
|
75
|
-
|
|
75
|
+
|
|
76
76
|
procedure_args (list or tuple, optional):
|
|
77
77
|
Excel マクロ関数に渡す引数をリストまたはタプルで
|
|
78
78
|
指定します。
|
|
79
|
-
|
|
79
|
+
|
|
80
80
|
connect_method (str, optional):
|
|
81
81
|
Excel との接続方法を指定します。 'auto' または
|
|
82
82
|
'new' が利用可能です。デフォルトは 'auto' です。
|
|
83
|
-
|
|
83
|
+
|
|
84
84
|
procedure_timeout (float or None, optional):
|
|
85
85
|
Excel マクロ関数のタイムアウト時間を秒単位で指定
|
|
86
86
|
します。 None の場合はタイムアウトなしとなります。
|
|
87
|
-
|
|
87
|
+
|
|
88
88
|
setup_xlsm_path (str or Path, optional):
|
|
89
89
|
セットアップ時に呼ぶ関数を含む xlsm のパスです。
|
|
90
90
|
指定しない場合は ``input_xlsm_path`` と
|
|
@@ -135,7 +135,7 @@ class ExcelInterface(FEMInterface):
|
|
|
135
135
|
Attributes:
|
|
136
136
|
input_xlsm_path (Path):
|
|
137
137
|
設計変数の定義を含む Excel ファイルのパス。
|
|
138
|
-
|
|
138
|
+
|
|
139
139
|
input_sheet_name (str):
|
|
140
140
|
設計変数の定義を含むシートの名前。
|
|
141
141
|
|
|
@@ -257,7 +257,7 @@ class ExcelInterface(FEMInterface):
|
|
|
257
257
|
self.output_sheet_name = output_sheet_name if output_sheet_name is not None else input_sheet_name
|
|
258
258
|
self.constraint_xlsm_path = str(input_xlsm_path) if constraint_xlsm_path is None else str(constraint_xlsm_path)
|
|
259
259
|
self.constraint_sheet_name = constraint_sheet_name or self.input_sheet_name
|
|
260
|
-
self.procedure_name = procedure_name
|
|
260
|
+
self.procedure_name = procedure_name
|
|
261
261
|
self.procedure_args = procedure_args or []
|
|
262
262
|
assert connect_method in ['new', 'auto']
|
|
263
263
|
self.connect_method = connect_method
|
|
@@ -271,7 +271,8 @@ class ExcelInterface(FEMInterface):
|
|
|
271
271
|
self.setup_procedure_name = setup_procedure_name
|
|
272
272
|
self.setup_procedure_args = setup_procedure_args or []
|
|
273
273
|
|
|
274
|
-
self.teardown_xlsm_path = str(input_xlsm_path) if teardown_xlsm_path is None else str(
|
|
274
|
+
self.teardown_xlsm_path = str(input_xlsm_path) if teardown_xlsm_path is None else str(
|
|
275
|
+
teardown_xlsm_path) # あとで取得する
|
|
275
276
|
self.teardown_procedure_name = teardown_procedure_name
|
|
276
277
|
self.teardown_procedure_args = teardown_procedure_args or []
|
|
277
278
|
|
|
@@ -516,7 +517,8 @@ class ExcelInterface(FEMInterface):
|
|
|
516
517
|
self.sh_constraint = sh
|
|
517
518
|
break
|
|
518
519
|
else:
|
|
519
|
-
raise RuntimeError(
|
|
520
|
+
raise RuntimeError(
|
|
521
|
+
f'Sheet {self.constraint_sheet_name} does not exist in the book {self.wb_constraint.Name}.')
|
|
520
522
|
|
|
521
523
|
# ===== setup =====
|
|
522
524
|
# 開く (setup)
|
|
@@ -618,18 +620,19 @@ class ExcelInterface(FEMInterface):
|
|
|
618
620
|
self.update_parameter(parameters)
|
|
619
621
|
|
|
620
622
|
# マクロ実行
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
self.excel.
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
623
|
+
if self.procedure_name is not None:
|
|
624
|
+
try:
|
|
625
|
+
with watch_excel_macro_error(self.excel, timeout=self.procedure_timeout):
|
|
626
|
+
self.excel.Run(
|
|
627
|
+
f'{self.procedure_name}',
|
|
628
|
+
*self.procedure_args
|
|
629
|
+
)
|
|
627
630
|
|
|
628
|
-
|
|
629
|
-
|
|
631
|
+
# 再計算
|
|
632
|
+
self.excel.CalculateFull()
|
|
630
633
|
|
|
631
|
-
|
|
632
|
-
|
|
634
|
+
except com_error as e:
|
|
635
|
+
raise SolveError(f'Failed to run macro {self.procedure_name}. The original message is: {e}')
|
|
633
636
|
|
|
634
637
|
def quit(self):
|
|
635
638
|
if self.terminate_excel_when_quit:
|
|
@@ -655,7 +658,8 @@ class ExcelInterface(FEMInterface):
|
|
|
655
658
|
self.excel.CalculateFull()
|
|
656
659
|
|
|
657
660
|
except com_error as e:
|
|
658
|
-
raise RuntimeError(
|
|
661
|
+
raise RuntimeError(
|
|
662
|
+
f'Failed to run macro {self.teardown_procedure_args}. The original message is: {e}')
|
|
659
663
|
|
|
660
664
|
# 不具合の原因になる場合があるので参照設定は解除しないこと
|
|
661
665
|
# self.remove_femtet_ref_xla(self.wb_input)
|
|
@@ -791,11 +795,14 @@ class ExcelInterface(FEMInterface):
|
|
|
791
795
|
opt.variables.add_expression(fixed_prm)
|
|
792
796
|
|
|
793
797
|
def load_objective(self, opt):
|
|
794
|
-
from pyfemtet.opt.optimizer import AbstractOptimizer
|
|
798
|
+
from pyfemtet.opt.optimizer import AbstractOptimizer
|
|
795
799
|
from pyfemtet.opt._femopt_core import Objective
|
|
796
800
|
opt: AbstractOptimizer
|
|
797
801
|
|
|
798
|
-
df = ParseAsObjective.parse(
|
|
802
|
+
df = ParseAsObjective.parse(
|
|
803
|
+
self.output_xlsm_path,
|
|
804
|
+
self.output_sheet_name,
|
|
805
|
+
)
|
|
799
806
|
|
|
800
807
|
for i, row in df.iterrows():
|
|
801
808
|
|
|
@@ -827,22 +834,19 @@ class ExcelInterface(FEMInterface):
|
|
|
827
834
|
kwargs=dict(),
|
|
828
835
|
)
|
|
829
836
|
|
|
830
|
-
def load_constraint(self, opt):
|
|
831
|
-
from pyfemtet.opt.optimizer import AbstractOptimizer
|
|
837
|
+
def load_constraint(self, opt, raise_if_no_keyword=False):
|
|
838
|
+
from pyfemtet.opt.optimizer import AbstractOptimizer
|
|
832
839
|
from pyfemtet.opt._femopt_core import Constraint
|
|
833
840
|
opt: AbstractOptimizer
|
|
834
841
|
|
|
835
|
-
#
|
|
836
|
-
#
|
|
837
|
-
#
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
return
|
|
844
|
-
|
|
845
|
-
df = ParseAsConstraint.parse(self.constraint_xlsm_path, self.constraint_sheet_name)
|
|
842
|
+
# constraint は optional であるが
|
|
843
|
+
# __init__ で input_sheet_name を入れられるので
|
|
844
|
+
# ここで constraint が実際に与えられているか判断する
|
|
845
|
+
df = ParseAsConstraint.parse(
|
|
846
|
+
self.constraint_xlsm_path,
|
|
847
|
+
self.constraint_sheet_name,
|
|
848
|
+
raise_if_no_keyword=raise_if_no_keyword,
|
|
849
|
+
)
|
|
846
850
|
|
|
847
851
|
for i, row in df.iterrows():
|
|
848
852
|
|
|
@@ -877,7 +881,8 @@ class ExcelInterface(FEMInterface):
|
|
|
877
881
|
calc_before_solve = True
|
|
878
882
|
if ParseAsConstraint.calc_before_solve in df.columns:
|
|
879
883
|
_calc_before_solve = row[ParseAsConstraint.calc_before_solve]
|
|
880
|
-
calc_before_solve = True if is_cell_value_empty(_calc_before_solve) else bool(
|
|
884
|
+
calc_before_solve = True if is_cell_value_empty(_calc_before_solve) else bool(
|
|
885
|
+
_calc_before_solve) # bool or NaN
|
|
881
886
|
|
|
882
887
|
if use:
|
|
883
888
|
# constraint を作る
|
|
@@ -892,6 +897,7 @@ class ExcelInterface(FEMInterface):
|
|
|
892
897
|
using_fem=not calc_before_solve,
|
|
893
898
|
)
|
|
894
899
|
|
|
900
|
+
# TODO: femopt_core.Function の仕様を変えたらここも変える
|
|
895
901
|
def objective_from_excel(self, name: str):
|
|
896
902
|
r = 1 + search_r(self.output_xlsm_path, self.output_sheet_name, name)
|
|
897
903
|
c = 1 + search_c(self.output_xlsm_path, self.output_sheet_name, ParseAsObjective.value)
|
|
@@ -192,7 +192,8 @@ class FemtetInterface(FEMInterface):
|
|
|
192
192
|
# subprocess で restore するための情報保管
|
|
193
193
|
# パスなどは connect_and_open_femtet での処理結果を反映し
|
|
194
194
|
# メインで開いた解析モデルが確実に開かれるようにする
|
|
195
|
-
|
|
195
|
+
FEMInterface.__init__(
|
|
196
|
+
self,
|
|
196
197
|
femprj_path=self.femprj_path,
|
|
197
198
|
model_name=self.model_name,
|
|
198
199
|
open_result_with_gui=self.open_result_with_gui,
|
|
@@ -201,6 +202,10 @@ class FemtetInterface(FEMInterface):
|
|
|
201
202
|
**kwargs
|
|
202
203
|
)
|
|
203
204
|
|
|
205
|
+
@property
|
|
206
|
+
def object_passed_to_functions(self):
|
|
207
|
+
return self.Femtet
|
|
208
|
+
|
|
204
209
|
def use_parametric_output_as_objective(self, number: int, direction: str | float = 'minimize') -> None:
|
|
205
210
|
"""Use output setting of Femtet parametric analysis as an objective function.
|
|
206
211
|
|
|
@@ -234,7 +239,6 @@ class FemtetInterface(FEMInterface):
|
|
|
234
239
|
self.kwargs['parametric_output_indexes_use_as_objective'] = self.parametric_output_indexes_use_as_objective
|
|
235
240
|
|
|
236
241
|
|
|
237
|
-
|
|
238
242
|
def __del__(self):
|
|
239
243
|
self.quit()
|
|
240
244
|
# CoUninitialize() # Win32 exception occurred releasing IUnknown at 0x0000022427692748
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
import re
|
|
2
|
+
from pathlib import Path
|
|
3
|
+
|
|
4
|
+
from pyfemtet.opt.interface._base import FEMInterface
|
|
5
|
+
from pyfemtet.opt.interface._femtet import FemtetInterface
|
|
6
|
+
from pyfemtet.opt.interface._excel_interface import (
|
|
7
|
+
ExcelInterface, is_cell_value_empty, ParseAsObjective, ScapeGoatObjective,
|
|
8
|
+
ParseAsConstraint, search_c, search_r
|
|
9
|
+
)
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
PARAMETRIC_PREFIX = 'パラメトリック'
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
def get_number(name):
|
|
16
|
+
numbers = re.findall(r'\d+', name)
|
|
17
|
+
if len(numbers) == 0:
|
|
18
|
+
raise ValueError('パラメトリック結果出力の番号指定が検出できませんでした。')
|
|
19
|
+
else:
|
|
20
|
+
return int(numbers[0])
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
class FemtetWithExcelSettingsInterface(FemtetInterface, ExcelInterface, FEMInterface):
|
|
25
|
+
|
|
26
|
+
def __init__(
|
|
27
|
+
self,
|
|
28
|
+
|
|
29
|
+
# FemtetInterface arguments
|
|
30
|
+
femprj_path: str = None, model_name: str = None, connect_method: str = 'auto',
|
|
31
|
+
save_pdt: str = 'all', strictly_pid_specify: bool = True, allow_without_project: bool = False,
|
|
32
|
+
open_result_with_gui: bool = True,
|
|
33
|
+
parametric_output_indexes_use_as_objective: dict[int, str or float] = None,
|
|
34
|
+
|
|
35
|
+
# ExcelInterface arguments
|
|
36
|
+
input_xlsm_path: str or Path = None, input_sheet_name: str = None, output_xlsm_path: str or Path = None,
|
|
37
|
+
output_sheet_name: str = None, constraint_xlsm_path: str or Path = None,
|
|
38
|
+
constraint_sheet_name: str = None, procedure_name: str = None, procedure_args: list or tuple = None,
|
|
39
|
+
procedure_timeout: float or None = None,
|
|
40
|
+
setup_xlsm_path: str or Path = None, setup_procedure_name: str = None,
|
|
41
|
+
setup_procedure_args: list or tuple = None, teardown_xlsm_path: str or Path = None,
|
|
42
|
+
teardown_procedure_name: str = None, teardown_procedure_args: list or tuple = None,
|
|
43
|
+
related_file_paths: list[str or Path] = None, visible: bool = False, display_alerts: bool = False,
|
|
44
|
+
terminate_excel_when_quit: bool = None, interactive: bool = True, use_named_range: bool = True,
|
|
45
|
+
|
|
46
|
+
):
|
|
47
|
+
ExcelInterface.__init__(
|
|
48
|
+
self, input_xlsm_path, input_sheet_name, output_xlsm_path, output_sheet_name, constraint_xlsm_path,
|
|
49
|
+
constraint_sheet_name, procedure_name, procedure_args, connect_method, procedure_timeout,
|
|
50
|
+
setup_xlsm_path, setup_procedure_name, setup_procedure_args, teardown_xlsm_path,
|
|
51
|
+
teardown_procedure_name, teardown_procedure_args, related_file_paths, visible, display_alerts,
|
|
52
|
+
terminate_excel_when_quit, interactive, use_named_range)
|
|
53
|
+
|
|
54
|
+
FemtetInterface.__init__(
|
|
55
|
+
self,
|
|
56
|
+
femprj_path, model_name, connect_method, save_pdt, strictly_pid_specify, allow_without_project,
|
|
57
|
+
open_result_with_gui, parametric_output_indexes_use_as_objective
|
|
58
|
+
)
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
def load_objective(self, opt):
|
|
62
|
+
from pyfemtet.opt.optimizer import AbstractOptimizer
|
|
63
|
+
from pyfemtet.opt._femopt_core import Objective
|
|
64
|
+
opt: AbstractOptimizer
|
|
65
|
+
|
|
66
|
+
df = ParseAsObjective.parse(
|
|
67
|
+
self.output_xlsm_path,
|
|
68
|
+
self.output_sheet_name,
|
|
69
|
+
False
|
|
70
|
+
)
|
|
71
|
+
|
|
72
|
+
for i, row in df.iterrows():
|
|
73
|
+
|
|
74
|
+
# use(optional)
|
|
75
|
+
use = True
|
|
76
|
+
if ParseAsObjective.use in df.columns:
|
|
77
|
+
_use = row[ParseAsObjective.use]
|
|
78
|
+
use = False if is_cell_value_empty(_use) else bool(_use) # bool or NaN
|
|
79
|
+
|
|
80
|
+
# name
|
|
81
|
+
name = str(row[ParseAsObjective.name])
|
|
82
|
+
|
|
83
|
+
# direction
|
|
84
|
+
direction = row[ParseAsObjective.direction]
|
|
85
|
+
assert not is_cell_value_empty(direction), 'direction is empty.'
|
|
86
|
+
try:
|
|
87
|
+
direction = float(direction)
|
|
88
|
+
except ValueError:
|
|
89
|
+
direction = str(direction).lower()
|
|
90
|
+
assert direction in ['minimize', 'maximize']
|
|
91
|
+
|
|
92
|
+
if use:
|
|
93
|
+
|
|
94
|
+
# name が「パラメトリック」から始まっていたら
|
|
95
|
+
# パラメトリック解析の結果を目的関数にする
|
|
96
|
+
if name.startswith(PARAMETRIC_PREFIX):
|
|
97
|
+
number = get_number(name)
|
|
98
|
+
self.use_parametric_output_as_objective(number, direction)
|
|
99
|
+
|
|
100
|
+
# そうでなければ通常の Excel objective を作る
|
|
101
|
+
else:
|
|
102
|
+
opt.objectives[name] = Objective(
|
|
103
|
+
fun=ScapeGoatObjective(),
|
|
104
|
+
name=name,
|
|
105
|
+
direction=direction,
|
|
106
|
+
args=(name,),
|
|
107
|
+
kwargs=dict(),
|
|
108
|
+
)
|
|
109
|
+
|
|
110
|
+
def _setup_before_parallel(self, client):
|
|
111
|
+
FemtetInterface._setup_before_parallel(self, client)
|
|
112
|
+
ExcelInterface._setup_before_parallel(self, client)
|
|
113
|
+
|
|
114
|
+
def _setup_after_parallel(self, *args, **kwargs):
|
|
115
|
+
FemtetInterface._setup_after_parallel(self, *args, **kwargs)
|
|
116
|
+
ExcelInterface._setup_after_parallel(self, *args, **kwargs)
|
|
117
|
+
|
|
118
|
+
def update(self, parameters) -> None:
|
|
119
|
+
FemtetInterface.update(self, parameters)
|
|
120
|
+
ExcelInterface.update(self, parameters)
|
|
121
|
+
|
|
122
|
+
def quit(self, timeout=1, force=True):
|
|
123
|
+
FemtetInterface.quit(self, timeout, force)
|
|
124
|
+
ExcelInterface.quit(self)
|
|
125
|
+
|
|
126
|
+
# noinspection PyMethodOverriding
|
|
127
|
+
def objective_from_excel(self, _, name: str):
|
|
128
|
+
r = 1 + search_r(self.output_xlsm_path, self.output_sheet_name, name)
|
|
129
|
+
c = 1 + search_c(self.output_xlsm_path, self.output_sheet_name, ParseAsObjective.value)
|
|
130
|
+
v = self.sh_output.Cells(r, c).value
|
|
131
|
+
return float(v)
|
|
132
|
+
|
|
133
|
+
# noinspection PyMethodOverriding
|
|
134
|
+
def constraint_from_excel(self, _, name: str):
|
|
135
|
+
r = 1 + search_r(self.constraint_xlsm_path, self.constraint_sheet_name, name)
|
|
136
|
+
c = 1 + search_c(self.constraint_xlsm_path, self.constraint_sheet_name, ParseAsConstraint.value)
|
|
137
|
+
v = self.sh_constraint.Cells(r, c).value
|
|
138
|
+
return float(v)
|
|
@@ -17,6 +17,7 @@ class SurrogateModelInterfaceBase(FEMInterface, ABC):
|
|
|
17
17
|
self,
|
|
18
18
|
history_path: str = None,
|
|
19
19
|
train_history: History = None,
|
|
20
|
+
_output_directions: dict[int, str | float] | list[str | float] = None,
|
|
20
21
|
):
|
|
21
22
|
|
|
22
23
|
self.train_history: History
|
|
@@ -25,6 +26,7 @@ class SurrogateModelInterfaceBase(FEMInterface, ABC):
|
|
|
25
26
|
self.obj: dict[str, float] = dict()
|
|
26
27
|
self.df_prm: pd.DataFrame
|
|
27
28
|
self.df_obj: pd.DataFrame
|
|
29
|
+
self._output_directions = _output_directions
|
|
28
30
|
|
|
29
31
|
# history_path が与えられた場合、train_history をコンストラクトする
|
|
30
32
|
if history_path is not None:
|
|
@@ -54,11 +56,52 @@ class SurrogateModelInterfaceBase(FEMInterface, ABC):
|
|
|
54
56
|
self.df_prm = df_prm
|
|
55
57
|
self.df_obj = df_obj
|
|
56
58
|
|
|
59
|
+
# _output_directions が与えられている場合、
|
|
60
|
+
# history から objective の設定を読み込む
|
|
61
|
+
if self._output_directions is not None:
|
|
62
|
+
self._load_problem_from_me: bool = True
|
|
63
|
+
|
|
57
64
|
FEMInterface.__init__(
|
|
58
65
|
self,
|
|
59
66
|
train_history=train_history, # コンストラクト済み train_history を渡せば並列計算時も何もしなくてよい
|
|
60
67
|
)
|
|
61
68
|
|
|
69
|
+
|
|
70
|
+
def load_objective(self, opt) -> None:
|
|
71
|
+
from pyfemtet.opt._femopt_core import Objective
|
|
72
|
+
|
|
73
|
+
assert self._output_directions is not None
|
|
74
|
+
|
|
75
|
+
if isinstance(self._output_directions, dict):
|
|
76
|
+
|
|
77
|
+
for index, direction in self._output_directions:
|
|
78
|
+
obj_name = self.train_history.obj_names[index]
|
|
79
|
+
opt.objectives[obj_name] = Objective(
|
|
80
|
+
lambda obj_name_=obj_name: self.obj[obj_name_],
|
|
81
|
+
name=obj_name,
|
|
82
|
+
direction=direction,
|
|
83
|
+
args=(),
|
|
84
|
+
kwargs={},
|
|
85
|
+
)
|
|
86
|
+
|
|
87
|
+
elif isinstance(self._output_directions, list) \
|
|
88
|
+
or isinstance(self._output_directions, tuple):
|
|
89
|
+
|
|
90
|
+
obj_names = self.train_history.obj_names
|
|
91
|
+
assert len(self._output_directions) == len(obj_names)
|
|
92
|
+
|
|
93
|
+
for obj_name, direction in zip(obj_names, self._output_directions):
|
|
94
|
+
opt.objectives[obj_name] = Objective(
|
|
95
|
+
lambda obj_name_=obj_name: self.obj[obj_name_],
|
|
96
|
+
name=obj_name,
|
|
97
|
+
direction=direction,
|
|
98
|
+
args=(),
|
|
99
|
+
kwargs={},
|
|
100
|
+
)
|
|
101
|
+
|
|
102
|
+
else:
|
|
103
|
+
raise ValueError('Invalid _output_directions')
|
|
104
|
+
|
|
62
105
|
def filter_feasible(self, x: np.ndarray, y: np.ndarray, return_feasibility=False):
|
|
63
106
|
feasible_idx = np.where(~np.isnan(y.sum(axis=1)))
|
|
64
107
|
if return_feasibility:
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import re
|
|
2
|
+
from pathlib import Path
|
|
3
|
+
|
|
4
|
+
from pyfemtet.opt._femopt_core import History
|
|
5
|
+
from pyfemtet.opt.interface._base import FEMInterface
|
|
6
|
+
from pyfemtet.opt.interface._surrogate._singletaskgp import PoFBoTorchInterface
|
|
7
|
+
from pyfemtet.opt.interface._excel_interface import ExcelInterface
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class PoFBoTorchInterfaceWithExcelSettingsInterface(
|
|
11
|
+
PoFBoTorchInterface,
|
|
12
|
+
ExcelInterface,
|
|
13
|
+
FEMInterface,
|
|
14
|
+
):
|
|
15
|
+
|
|
16
|
+
def __init__(
|
|
17
|
+
self,
|
|
18
|
+
|
|
19
|
+
# SurrogateModel
|
|
20
|
+
history_path: str = None, train_history: History = None,
|
|
21
|
+
_output_directions: dict[int, str | float] | list[str | float] = None,
|
|
22
|
+
|
|
23
|
+
# Excel
|
|
24
|
+
input_xlsm_path: str or Path = None,
|
|
25
|
+
input_sheet_name: str = None,
|
|
26
|
+
output_xlsm_path: str or Path = None,
|
|
27
|
+
output_sheet_name: str = None,
|
|
28
|
+
constraint_xlsm_path: str or Path = None,
|
|
29
|
+
constraint_sheet_name: str = None,
|
|
30
|
+
procedure_name: str = None,
|
|
31
|
+
procedure_args: list or tuple = None,
|
|
32
|
+
connect_method: str = 'auto', # or 'new'
|
|
33
|
+
procedure_timeout: float or None = None,
|
|
34
|
+
setup_xlsm_path: str or Path = None,
|
|
35
|
+
setup_procedure_name: str = None,
|
|
36
|
+
setup_procedure_args: list or tuple = None,
|
|
37
|
+
teardown_xlsm_path: str or Path = None,
|
|
38
|
+
teardown_procedure_name: str = None,
|
|
39
|
+
teardown_procedure_args: list or tuple = None,
|
|
40
|
+
related_file_paths: list[str or Path] = None,
|
|
41
|
+
visible: bool = False,
|
|
42
|
+
display_alerts: bool = False,
|
|
43
|
+
terminate_excel_when_quit: bool = None,
|
|
44
|
+
interactive: bool = True,
|
|
45
|
+
use_named_range: bool = True,
|
|
46
|
+
):
|
|
47
|
+
PoFBoTorchInterface.__init__(
|
|
48
|
+
self,
|
|
49
|
+
history_path,
|
|
50
|
+
train_history,
|
|
51
|
+
_output_directions,
|
|
52
|
+
)
|
|
53
|
+
|
|
54
|
+
ExcelInterface.__init__(
|
|
55
|
+
self,
|
|
56
|
+
input_xlsm_path,
|
|
57
|
+
input_sheet_name,
|
|
58
|
+
output_xlsm_path,
|
|
59
|
+
output_sheet_name,
|
|
60
|
+
constraint_xlsm_path,
|
|
61
|
+
constraint_sheet_name,
|
|
62
|
+
procedure_name,
|
|
63
|
+
procedure_args,
|
|
64
|
+
connect_method, # or 'new'
|
|
65
|
+
procedure_timeout,
|
|
66
|
+
setup_xlsm_path,
|
|
67
|
+
setup_procedure_name,
|
|
68
|
+
setup_procedure_args,
|
|
69
|
+
teardown_xlsm_path,
|
|
70
|
+
teardown_procedure_name,
|
|
71
|
+
teardown_procedure_args,
|
|
72
|
+
related_file_paths,
|
|
73
|
+
visible,
|
|
74
|
+
display_alerts,
|
|
75
|
+
terminate_excel_when_quit,
|
|
76
|
+
interactive,
|
|
77
|
+
use_named_range,
|
|
78
|
+
)
|
|
79
|
+
|
|
80
|
+
def load_parameter(self, opt) -> None:
|
|
81
|
+
ExcelInterface.load_parameter(self, opt)
|
|
82
|
+
|
|
83
|
+
def load_objective(self, opt) -> None:
|
|
84
|
+
PoFBoTorchInterface.load_objective(self, opt)
|
|
85
|
+
|
|
86
|
+
def load_constraint(self, opt, raise_if_no_keyword=False):
|
|
87
|
+
ExcelInterface.load_constraint(self, opt, raise_if_no_keyword)
|
|
88
|
+
|
|
89
|
+
def _setup_before_parallel(self, client):
|
|
90
|
+
PoFBoTorchInterface._setup_before_parallel(self, client)
|
|
91
|
+
ExcelInterface._setup_before_parallel(self, client)
|
|
92
|
+
|
|
93
|
+
def _setup_after_parallel(self, *args, **kwargs):
|
|
94
|
+
PoFBoTorchInterface._setup_after_parallel(self, *args, **kwargs)
|
|
95
|
+
ExcelInterface._setup_after_parallel(self, *args, **kwargs)
|
|
96
|
+
|
|
97
|
+
def update(self, parameters) -> None:
|
|
98
|
+
PoFBoTorchInterface.update(self, parameters)
|
|
99
|
+
|
|
100
|
+
def quit(self):
|
|
101
|
+
PoFBoTorchInterface.quit(self)
|
|
102
|
+
ExcelInterface.quit(self)
|
|
@@ -362,6 +362,19 @@ class OptunaVisualizerPage(AbstractPage):
|
|
|
362
362
|
)
|
|
363
363
|
layout.append(dcc.Graph(figure=fig, style={'height': '70vh'}))
|
|
364
364
|
|
|
365
|
+
layout.append(html.H2(Msg.DETAIL_PAGE_IMPORTANCE_HEADER))
|
|
366
|
+
layout.append(html.H4(Msg.DETAIL_PAGE_IMPORTANCE_DESCRIPTION))
|
|
367
|
+
for i, obj_name in enumerate(obj_names):
|
|
368
|
+
fig = optuna.visualization.plot_param_importances(
|
|
369
|
+
study,
|
|
370
|
+
target=lambda t: t.values[i],
|
|
371
|
+
target_name=obj_name
|
|
372
|
+
)
|
|
373
|
+
import plotly.graph_objects as go
|
|
374
|
+
fig: go.Figure
|
|
375
|
+
fig.update_layout(title=obj_name)
|
|
376
|
+
layout.append(dcc.Graph(figure=fig, style={'height': '70vh'}))
|
|
377
|
+
|
|
365
378
|
return layout
|
|
366
379
|
|
|
367
380
|
def setup_callback(self):
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: pyfemtet
|
|
3
|
-
Version: 0.8.
|
|
3
|
+
Version: 0.8.10
|
|
4
4
|
Summary: Design parameter optimization using Femtet.
|
|
5
5
|
License: BSD-3-Clause
|
|
6
6
|
Author: kazuma.naito
|
|
@@ -30,6 +30,7 @@ Requires-Dist: pandas (>=2.2.3,<3.0.0)
|
|
|
30
30
|
Requires-Dist: plotly (>=5.22.0,<6.0.0)
|
|
31
31
|
Requires-Dist: psutil (>=5.9.6,<6.0.0)
|
|
32
32
|
Requires-Dist: pywin32 (>=306,<307) ; sys_platform == "win32"
|
|
33
|
+
Requires-Dist: pyyaml (>=6.0.2,<7.0.0)
|
|
33
34
|
Requires-Dist: scipy (>=1.11.4,<2.0.0)
|
|
34
35
|
Requires-Dist: torch (>=2.5.1,<2.6.0) ; sys_platform != "linux"
|
|
35
36
|
Requires-Dist: torch (>=2.5.1,<2.6.0) ; sys_platform == "linux"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
pyfemtet/__init__.py,sha256=
|
|
1
|
+
pyfemtet/__init__.py,sha256=CKrbpoGm6OyINBDoT8Nfpyecbw2W68SS4YSkSpJJ5-0,22
|
|
2
2
|
pyfemtet/_femtet_config_util/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
3
3
|
pyfemtet/_femtet_config_util/autosave.py,sha256=dNirA9XGuFehas8_Jkj2BW9GOzMbPyhnt1WHcH_ObSU,2070
|
|
4
4
|
pyfemtet/_femtet_config_util/exit.py,sha256=0BWID-tjOkmZwmgPFkcJMkWW39voccz5ARIBWvZbHaw,1877
|
|
@@ -6,14 +6,14 @@ pyfemtet/_message/1. make_pot.bat,sha256=wrTA0YaL7nUfNB0cS8zljOmwq2qgyG6RMwHQbrw
|
|
|
6
6
|
pyfemtet/_message/2. make_mo.bat,sha256=6shJ3Yn4BXjDc0hhv_kiGUtVTq4oSRz8-iS4vW29rNE,155
|
|
7
7
|
pyfemtet/_message/__init__.py,sha256=gE1-XX_PzHj9BbhqPaK5VcIHuv6_Tec5qlPMC3IRiBg,100
|
|
8
8
|
pyfemtet/_message/babel.cfg,sha256=AQIFCQ7NlAA84PhV0gowHhbIXH41zA55mzhgyROniJk,73
|
|
9
|
-
pyfemtet/_message/locales/ja/LC_MESSAGES/messages.mo,sha256=
|
|
10
|
-
pyfemtet/_message/locales/ja/LC_MESSAGES/messages.po,sha256=
|
|
11
|
-
pyfemtet/_message/locales/messages.pot,sha256=
|
|
12
|
-
pyfemtet/_message/messages.py,sha256=
|
|
9
|
+
pyfemtet/_message/locales/ja/LC_MESSAGES/messages.mo,sha256=BsDrPmXWzKfaAjATSq-GZexNX4iG8ax7Ss0bfB1ocIk,19512
|
|
10
|
+
pyfemtet/_message/locales/ja/LC_MESSAGES/messages.po,sha256=_ugJcUf__C1HdXt3ubcPurLQWKuL3dg0DGMcrDtTBbw,26047
|
|
11
|
+
pyfemtet/_message/locales/messages.pot,sha256=G_6aRv0zZjpShKx13hm_1B2D60sViOuUHpZsX5QJSpQ,15372
|
|
12
|
+
pyfemtet/_message/messages.py,sha256=ztDyORp0sjgNCe2DKEh-ojWfcVnVmOy3mEtAUt_yYhA,14185
|
|
13
13
|
pyfemtet/_util/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
14
14
|
pyfemtet/_util/dask_util.py,sha256=ufgr4m8slvyWP97lWBwolysQpJ1PmAO_-OI8IlEyvU8,233
|
|
15
15
|
pyfemtet/_util/excel_macro_util.py,sha256=cF1Z3yl9FMM0J7dpMRTsle8uYxYcfHhQC0QffnVovdY,7944
|
|
16
|
-
pyfemtet/_util/excel_parse_util.py,sha256
|
|
16
|
+
pyfemtet/_util/excel_parse_util.py,sha256=AoVMTcjSm5PEytK5AdDTXZ4Gbj3V5KTlj0KfrN1ZzkU,4809
|
|
17
17
|
pyfemtet/_util/sample.xlsx,sha256=OU8mBY48YESJFQrdt4OkntlE1z-6WiyUyOV-PMr09DQ,9423
|
|
18
18
|
pyfemtet/_warning.py,sha256=TSOj8mOhuyfOUJB24LsW6GNhTA3IzIEevJw_hLKTrq8,2205
|
|
19
19
|
pyfemtet/brep/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -24,16 +24,20 @@ pyfemtet/dispatch_extensions/_impl.py,sha256=yH_yeAnQ-Xi9GfjX-FQt9u3yHnrLYIteRb6
|
|
|
24
24
|
pyfemtet/logger/__init__.py,sha256=UOJ9n_U2xwdTrp0Xgg-N6geySxNzKqTBQlXsaH0kW_w,420
|
|
25
25
|
pyfemtet/logger/_impl.py,sha256=rsAd0HpmveOaLS39ucp3U2OcDhQMWjC5fnVGhbJtWVw,6375
|
|
26
26
|
pyfemtet/opt/__init__.py,sha256=wRR8LbEhb5I6MUgmnCgjB6-tqHlOVxDIo7yPkq0QbBs,758
|
|
27
|
-
pyfemtet/opt/_femopt.py,sha256=
|
|
28
|
-
pyfemtet/opt/_femopt_core.py,sha256=
|
|
27
|
+
pyfemtet/opt/_femopt.py,sha256=MSqSJzyD2sRYBNQAe0P5rpSvvVihOV2ugUa-hZyYnBA,40671
|
|
28
|
+
pyfemtet/opt/_femopt_core.py,sha256=mm7ySxFSp4RhRT_Bt2TxWVUXaA2ejRJJZDOHj9CV6Ho,39348
|
|
29
29
|
pyfemtet/opt/_test_utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
30
30
|
pyfemtet/opt/_test_utils/control_femtet.py,sha256=8oAl9y5V2n8Nnsgx_ebcZVzwFt1eI3swkdiKg6pg3-M,1085
|
|
31
31
|
pyfemtet/opt/_test_utils/hyper_sphere.py,sha256=nQhw8EIY0DwvcTqrbKhkxiITLZifr4-nG77E-_6ggmA,700
|
|
32
32
|
pyfemtet/opt/_test_utils/record_history.py,sha256=7V2LCZ8F985c_NNUVu-K7_2-p2mwG1lRMZhkYhSy_Dw,4356
|
|
33
33
|
pyfemtet/opt/advanced_samples/excel_ui/(ref) original_project.femprj,sha256=5OqZfynTpVCrgEIOBOMYuDGaMvepi5lojVNFr1jAsEI,157489
|
|
34
|
-
pyfemtet/opt/advanced_samples/excel_ui/femtet-macro.xlsm,sha256=
|
|
34
|
+
pyfemtet/opt/advanced_samples/excel_ui/femtet-macro.xlsm,sha256=7G9hr1Oj1zwTFv6mh2fWk4FZ0R5ZNDQmvjNvujy6gbw,124145
|
|
35
35
|
pyfemtet/opt/advanced_samples/excel_ui/pyfemtet-core.py,sha256=aF2TWXdbt7dnkeBqqVO6GvIExozjFp0mxx3BX8rpYNc,9879
|
|
36
36
|
pyfemtet/opt/advanced_samples/excel_ui/test-pyfemtet-core.cmd,sha256=r-Pa1Ng9sa6wfDqIhTf2BUDrN9rePWFymz7pmtBbvcQ,895
|
|
37
|
+
pyfemtet/opt/advanced_samples/meta_script/meta_script.py,sha256=v0D-4xqH_fvMEQ4B_OnJrtlUsJ6kQfLLcE4YHlsgmMw,4896
|
|
38
|
+
pyfemtet/opt/advanced_samples/meta_script/sample.yaml,sha256=_X95DVX1BMIFlML1mW4UqymOMxLElw3aeWiI9KJBD-k,351
|
|
39
|
+
pyfemtet/opt/advanced_samples/meta_script/yaml_generator.txt,sha256=n2IWoAge_fWWBDfOi-rHQYZvfyGQqdS4BOSTvsdKYjk,670
|
|
40
|
+
pyfemtet/opt/advanced_samples/meta_script/yaml_generator.xlsm,sha256=YUaVVqtoa5dTY0c2gJ5C3s4y7eC5Gx5PRtxA2rwV9-s,18287
|
|
37
41
|
pyfemtet/opt/advanced_samples/restart/gal_ex13_parametric.femprj,sha256=iIHH1X-wWBqEYj4cFJXco73LCJXSrYBsSKOD0HxYu60,87599
|
|
38
42
|
pyfemtet/opt/advanced_samples/restart/gal_ex13_parametric_restart.py,sha256=YCqtLjazFDRKhEu7sGJlDJDDL7YPH6GmWEb6X0e30Og,3045
|
|
39
43
|
pyfemtet/opt/advanced_samples/restart/gal_ex13_parametric_restart_jp.py,sha256=Oaua2Eb8NGtlWjvYC9B1uYTKcEuWxWZxzJbLi_4IqxE,3580
|
|
@@ -42,19 +46,21 @@ pyfemtet/opt/advanced_samples/surrogate_model/gal_ex13_create_training_data_jp.p
|
|
|
42
46
|
pyfemtet/opt/advanced_samples/surrogate_model/gal_ex13_optimize_with_surrogate.py,sha256=s0b31wuN3iXjb78dt0ro0ZjxHa8uLIH94jRfEuj1EVY,3090
|
|
43
47
|
pyfemtet/opt/advanced_samples/surrogate_model/gal_ex13_optimize_with_surrogate_jp.py,sha256=OAOpHKyMMo1StSqNMqx4saYDn4hiGOKDypyK6uhTILQ,3215
|
|
44
48
|
pyfemtet/opt/advanced_samples/surrogate_model/gal_ex13_parametric.femprj,sha256=iIHH1X-wWBqEYj4cFJXco73LCJXSrYBsSKOD0HxYu60,87599
|
|
45
|
-
pyfemtet/opt/interface/__init__.py,sha256=
|
|
46
|
-
pyfemtet/opt/interface/_base.py,sha256=
|
|
47
|
-
pyfemtet/opt/interface/_excel_interface.py,sha256=
|
|
48
|
-
pyfemtet/opt/interface/_femtet.py,sha256=
|
|
49
|
+
pyfemtet/opt/interface/__init__.py,sha256=SstCN9WMYqF5lKNbb8xAzq0hBV-Hk8YuCrajvF3sOg0,1350
|
|
50
|
+
pyfemtet/opt/interface/_base.py,sha256=zbRhNB4fwznKHsllC1X29TONoB9MP8qMH8Nqz4NX_yA,2838
|
|
51
|
+
pyfemtet/opt/interface/_excel_interface.py,sha256=pJ2JGBbAuU_UrxVYj6_DL51WkUbsl1-eEJsUxeq_dQk,40007
|
|
52
|
+
pyfemtet/opt/interface/_femtet.py,sha256=bAeFG4oik0zt3PcbPOhhQOm0-kboS83JKn0RX_mIrP0,37779
|
|
53
|
+
pyfemtet/opt/interface/_femtet_excel.py,sha256=4o1jdP1WZxaVhe8Me60SGKV4AP7Dvy0ZqnUjyeIfCWY,5882
|
|
49
54
|
pyfemtet/opt/interface/_femtet_parametric.py,sha256=rhvnpHdbjNJAKxiCkgnExnZdV5qOB6pBv6AaLeTkeF8,10155
|
|
50
55
|
pyfemtet/opt/interface/_femtet_with_nx/__init__.py,sha256=-6W2g2FDEcKzGHmI5KAKQe-4U5jDpMj0CXuma-GZca0,83
|
|
51
56
|
pyfemtet/opt/interface/_femtet_with_nx/_interface.py,sha256=LkaODUSpBLq05uz5Jf-JKuH6Evq8ElZoItXxFZopWeM,5994
|
|
52
57
|
pyfemtet/opt/interface/_femtet_with_nx/update_model.py,sha256=P7VH0i_o-X9OUe6AGaLF1fACPeHNrMjcrOBCA3MMrI4,3092
|
|
53
58
|
pyfemtet/opt/interface/_femtet_with_sldworks.py,sha256=rjEgebuP1w1eAFVWw4eRJUq3lsyBcmXlkMjZKIpD0kw,11019
|
|
54
59
|
pyfemtet/opt/interface/_surrogate/__init__.py,sha256=2UT5NuBylyWQJNjg1zsBRCV-MzNCUswTUt6ZuSrYFUM,120
|
|
55
|
-
pyfemtet/opt/interface/_surrogate/_base.py,sha256=
|
|
60
|
+
pyfemtet/opt/interface/_surrogate/_base.py,sha256=s_Mqo7CUAhaj-ZYYxxGKekiox4EnH_SnWB8eVj-VnFU,4739
|
|
56
61
|
pyfemtet/opt/interface/_surrogate/_chaospy.py,sha256=Bqej89Mo0zgdJq1OK7YKRqHOcuyN0wL4ZQUQXdJtYJ8,1987
|
|
57
62
|
pyfemtet/opt/interface/_surrogate/_singletaskgp.py,sha256=bHzY5QIjA9zhLxweexz259XQMZLgkHWfrIDW7f3q-2k,2520
|
|
63
|
+
pyfemtet/opt/interface/_surrogate_excel.py,sha256=YOXa4EMqPw8fo75tr_cb1wJw6vKzUipI3m-1BQAl-5Y,3501
|
|
58
64
|
pyfemtet/opt/optimizer/__init__.py,sha256=Ia6viowECkG0IFXtFef0tJ4jDKsoDzJLqMJ9xLFH2LQ,543
|
|
59
65
|
pyfemtet/opt/optimizer/_base.py,sha256=1TY1iVZdpgJcmF6g3-CcY-6u4REs8_gR_0y9cXUQe2s,12932
|
|
60
66
|
pyfemtet/opt/optimizer/_optuna/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -133,7 +139,7 @@ pyfemtet/opt/visualization/_complex_components/pm_graph_creator.py,sha256=f-ikYA
|
|
|
133
139
|
pyfemtet/opt/visualization/_create_wrapped_components.py,sha256=9AltJHr1DM6imZfpNp867rC-uAYqQ-emdgTLChKDrl8,2513
|
|
134
140
|
pyfemtet/opt/visualization/_process_monitor/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
135
141
|
pyfemtet/opt/visualization/_process_monitor/application.py,sha256=8ShNMPWrD_1IHyPz2a63tlzENQg7by3kg4pdXSuv0_4,8659
|
|
136
|
-
pyfemtet/opt/visualization/_process_monitor/pages.py,sha256
|
|
142
|
+
pyfemtet/opt/visualization/_process_monitor/pages.py,sha256=a94MWLSnjr6bbPqIcAWbvJ3D4bMEP98DvoomSFFkBqE,15711
|
|
137
143
|
pyfemtet/opt/visualization/_wrapped_components/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
138
144
|
pyfemtet/opt/visualization/_wrapped_components/dbc.py,sha256=iSh4QRmLIQMfiAWowG1ThXLPhmKluRYOYPcdDFVI0t0,42162
|
|
139
145
|
pyfemtet/opt/visualization/_wrapped_components/dcc.py,sha256=-Iw6MjFQmvJ__KcddPhFDqui6lk2ixB2U2tZH_Il5pA,17500
|
|
@@ -143,8 +149,8 @@ pyfemtet/opt/visualization/result_viewer/.gitignore,sha256=ryvb4aqbbsHireHWlPQfx
|
|
|
143
149
|
pyfemtet/opt/visualization/result_viewer/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
144
150
|
pyfemtet/opt/visualization/result_viewer/application.py,sha256=WcHBx_J5eNLKSaprpk9BGifwhO04oN8FiNGYTWorrXA,1691
|
|
145
151
|
pyfemtet/opt/visualization/result_viewer/pages.py,sha256=MZAjzbuq0toZrR-iJhElM3A12_jHVCTt65gz1kdNPbw,32193
|
|
146
|
-
pyfemtet-0.8.
|
|
147
|
-
pyfemtet-0.8.
|
|
148
|
-
pyfemtet-0.8.
|
|
149
|
-
pyfemtet-0.8.
|
|
150
|
-
pyfemtet-0.8.
|
|
152
|
+
pyfemtet-0.8.10.dist-info/LICENSE,sha256=sVQBhyoglGJUu65-BP3iR6ujORI6YgEU2Qm-V4fGlOA,1485
|
|
153
|
+
pyfemtet-0.8.10.dist-info/METADATA,sha256=IfB4bF5vQgSvuRP8aMQZqIsn7bO9UnNH5rME4ZIOXNY,3549
|
|
154
|
+
pyfemtet-0.8.10.dist-info/WHEEL,sha256=XbeZDeTWKc1w7CSIyre5aMDU_-PohRwTQceYnisIYYY,88
|
|
155
|
+
pyfemtet-0.8.10.dist-info/entry_points.txt,sha256=ZfYqRaoiPtuWqFi2_msccyrVF0LurMn-IHlYamAegZo,104
|
|
156
|
+
pyfemtet-0.8.10.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|