pyfemtet 1.0.6__py3-none-any.whl → 1.0.8__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.

@@ -647,6 +647,7 @@ class AbstractOptimizer:
647
647
  other_outputs = TrialFunctionOutput()
648
648
  try:
649
649
  opt_._other_outputs(other_outputs)
650
+ record.other_outputs = other_outputs
650
651
 
651
652
  # if intentional error (by user)
652
653
  except _HiddenConstraintViolation as e:
@@ -1,6 +1,6 @@
1
1
  from __future__ import annotations
2
2
 
3
- from typing import Literal
3
+ from typing import Literal, TypeAlias
4
4
 
5
5
  import pandas as pd
6
6
  import optuna
@@ -21,6 +21,9 @@ from pyfemtet.opt.visualization.plotter.parallel_plot_creator import parallel_pl
21
21
  from pyfemtet.opt.visualization.plotter.contour_creator import contour_creator
22
22
 
23
23
 
24
+ ItemKind: TypeAlias = Literal['prm', 'all_output', 'obj', 'cns', 'other_output']
25
+
26
+
24
27
  class SelectablePlot(AbstractPage):
25
28
  location: dcc.Location
26
29
  graph: dcc.Graph
@@ -29,8 +32,8 @@ class SelectablePlot(AbstractPage):
29
32
  InputItemsClass = dcc.Checklist
30
33
  OutputItemsClass = dcc.Checklist
31
34
  alerts: html.Div
32
- input_item_kind: set[Literal['all', 'prm', 'obj', 'cns']] = {'prm'}
33
- output_item_kind: set[Literal['all', 'prm', 'obj', 'cns']] = {'obj', 'cns'}
35
+ input_item_kind: set[ItemKind] = {'prm'}
36
+ output_item_kind: set[ItemKind] = {'all_output'}
34
37
  description_markdown: str = ''
35
38
 
36
39
  def __init__(self, title='base-page', rel_url='/', application=None,
@@ -109,21 +112,23 @@ class SelectablePlot(AbstractPage):
109
112
  return history, df, main_df
110
113
 
111
114
  @staticmethod
112
- def _return_checklist_options_and_value(history, types) -> tuple[list[dict], list[str]]:
115
+ def _return_checklist_options_and_value(history, types: set[Literal]) -> tuple[list[dict], list[str]]:
113
116
 
114
117
  keys = []
115
118
 
116
- if 'all' in types:
117
- keys.extend(history.prm_names)
118
- keys.extend(history.obj_names)
119
- keys.extend(history.cns_names)
120
-
121
119
  if 'prm' in types:
122
120
  keys.extend(history.prm_names)
123
- if 'obj' in types:
124
- keys.extend(history.obj_names)
125
- if 'cns' in types:
126
- keys.extend(history.cns_names)
121
+
122
+ if 'all_output' in types:
123
+ keys.extend(history.all_output_names)
124
+
125
+ else:
126
+ if 'obj' in types:
127
+ keys.extend(history.obj_names)
128
+ if 'cns' in types:
129
+ keys.extend(history.cns_names)
130
+ if 'other_output' in types:
131
+ keys.extend(history.other_output_names)
127
132
 
128
133
  return [dict(label=key, value=key) for key in keys], keys
129
134
 
@@ -1,9 +1,9 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: pyfemtet
3
- Version: 1.0.6
3
+ Version: 1.0.8
4
4
  Summary: Design parameter optimization using Femtet.
5
5
  License: MIT
6
- Author: kazuma.naito
6
+ Author: pyfemtet
7
7
  Author-email: 148934231+pyfemtet@users.noreply.github.com
8
8
  Requires-Python: >= 3.10, < 3.14
9
9
  Classifier: License :: OSI Approved :: MIT License
@@ -63,7 +63,7 @@ pyfemtet/opt/meta_script/__main__.py,sha256=9-QM6eZOLpZ_CxERpRu3RAMqpudorSJdPCiK
63
63
  pyfemtet/opt/meta_script/sample/sample.bas,sha256=2iuSYMgPDyAdiSDVGxRu3avjcZYnULz0l8e25YBa7SQ,27966
64
64
  pyfemtet/opt/meta_script/sample/sample.femprj,sha256=6_0ywhgXxZjdzZzQFog8mgMUEjKNCFVNlEgAWoptovk,292885
65
65
  pyfemtet/opt/optimizer/__init__.py,sha256=A4QYeF0KHEFdwoxLfkDND7ikDQ186Ryy3oXEGdakFSg,463
66
- pyfemtet/opt/optimizer/_base_optimizer.py,sha256=WmRl4RvwVVenq6seU7sG7p8U4pFKPcVgLRfBOvQgpY8,33438
66
+ pyfemtet/opt/optimizer/_base_optimizer.py,sha256=4Jcnj5WTKXpuHzMgjsBk1W8nhUbbBFfHUybQF2jB5kw,33495
67
67
  pyfemtet/opt/optimizer/optuna_optimizer/__init__.py,sha256=u2Bwc79tkZTU5dMbhzzrPQi0RlFg22UgXc-m9K9G6wQ,242
68
68
  pyfemtet/opt/optimizer/optuna_optimizer/_optuna_attribute.py,sha256=7eZsruVCGgMlcnf3a9Vf55FOEE-D7V777MJQajI12Cw,1842
69
69
  pyfemtet/opt/optimizer/optuna_optimizer/_optuna_optimizer.py,sha256=UWD2o0pUqsQg8ZGE2J847czmNYmAbXvQpVSsDxWmElI,28772
@@ -93,7 +93,7 @@ pyfemtet/opt/visualization/history_viewer/_common_pages.py,sha256=uslb21IG3Ll58H
93
93
  pyfemtet/opt/visualization/history_viewer/_complex_components/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
94
94
  pyfemtet/opt/visualization/history_viewer/_complex_components/alert_region.py,sha256=0plsq5cqVFiPPYCLtvDlmf_S_onjyOhrWvU2aWcQ-8o,2097
95
95
  pyfemtet/opt/visualization/history_viewer/_complex_components/control_femtet.py,sha256=FQUR9bYtMoj_3bvHXfzAhYMoYpbIWcDP8j7M2EwnYQM,6253
96
- pyfemtet/opt/visualization/history_viewer/_complex_components/detail_graphs.py,sha256=iZ-LcXUUPXQRP4bxWunVOkWpeMUuEMfuYffqUkZEbpw,19025
96
+ pyfemtet/opt/visualization/history_viewer/_complex_components/detail_graphs.py,sha256=friaHAJOG5BEUAkoy7ukpO-vUhJ0DlJFwMB2ayNJ4so,19134
97
97
  pyfemtet/opt/visualization/history_viewer/_complex_components/main_graph.py,sha256=dMphOHbSV2R3oQvPlIQj7GwtV0phPiBwKniblxTAxMY,25978
98
98
  pyfemtet/opt/visualization/history_viewer/_complex_components/pm_graph.py,sha256=JafoGlLGFrOH7XQe46DWjg5TftqVs27gpLO4sEBssF8,24769
99
99
  pyfemtet/opt/visualization/history_viewer/_detail_page.py,sha256=2LdCFSCcxZkAH6QMa9q6QX-KLYhVrRf-iTh7jNPrnnA,3406
@@ -168,9 +168,9 @@ pyfemtet/opt/visualization/plotter/parallel_plot_creator.py,sha256=VRhT0CUG1mCHD
168
168
  pyfemtet/opt/visualization/plotter/pm_graph_creator.py,sha256=hds2Z9jGnj4exFrj-gdfr4RmvfmzhsfHItKeKKC7Wt4,10950
169
169
  pyfemtet/opt/wat_ex14_parametric_jp.femprj,sha256=dMwQMt6yok_PbZLyxPYdmg5wJQwgQDZ4RhS76zdGLGk,177944
170
170
  pyfemtet/opt/worker_status.py,sha256=xSVW9lcw5jzYBwnmlVzk-1zCCyvmXVOH6EoRjqVbE9M,3605
171
- pyfemtet-1.0.6.dist-info/LICENSE,sha256=LWUL5LlMGjSRTvsalS8_fFuwS4VMw18fJSNWFwDK8pc,1060
172
- pyfemtet-1.0.6.dist-info/LICENSE_THIRD_PARTY.txt,sha256=8_9-cgzTpmeuCqItPZb9-lyAZcH2Qp9sZTU_hYuOZIQ,191
173
- pyfemtet-1.0.6.dist-info/METADATA,sha256=gGszbUSqTdtS1gQ7sUTSK18zNc2ZANKzbPPYcoiWYkU,3471
174
- pyfemtet-1.0.6.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
175
- pyfemtet-1.0.6.dist-info/entry_points.txt,sha256=Tsb_l_8Z6pyyq2tRfuKiwfJUV3nq_cHoLS61foALtsg,134
176
- pyfemtet-1.0.6.dist-info/RECORD,,
171
+ pyfemtet-1.0.8.dist-info/LICENSE,sha256=LWUL5LlMGjSRTvsalS8_fFuwS4VMw18fJSNWFwDK8pc,1060
172
+ pyfemtet-1.0.8.dist-info/LICENSE_THIRD_PARTY.txt,sha256=8_9-cgzTpmeuCqItPZb9-lyAZcH2Qp9sZTU_hYuOZIQ,191
173
+ pyfemtet-1.0.8.dist-info/METADATA,sha256=8bcuKrTIJ7wZbEKVXFjYM3CTOv833vQBQt01vPsPYXU,3467
174
+ pyfemtet-1.0.8.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
175
+ pyfemtet-1.0.8.dist-info/entry_points.txt,sha256=Tsb_l_8Z6pyyq2tRfuKiwfJUV3nq_cHoLS61foALtsg,134
176
+ pyfemtet-1.0.8.dist-info/RECORD,,