iwopy 0.1.8__py3-none-any.whl → 0.1.9__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.
iwopy/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.8
1
+ 0.1.9
iwopy/__init__.py CHANGED
@@ -13,6 +13,11 @@ from . import interfaces
13
13
  from . import benchmarks
14
14
  from . import optimizers
15
15
 
16
- from importlib.resources import read_text
16
+ try:
17
+ from importlib.resources import files
17
18
 
18
- __version__ = read_text(__package__, "VERSION")
19
+ __version__ = files(__package__).joinpath("VERSION").read_text()
20
+ except ImportError:
21
+ from importlib.resources import read_text
22
+
23
+ __version__ = read_text(__package__, "VERSION")
@@ -752,7 +752,7 @@ class RegularDiscretizationGrid:
752
752
  ).all(), f"Found coordinates above 1: {qts[np.any(qts>1., axis=-1)].tolist()}"
753
753
 
754
754
  opts = self._get_opts()
755
- return np.product(1 - np.abs(qts[:, None] - opts[None, :]), axis=-1)
755
+ return np.prod(1 - np.abs(qts[:, None] - opts[None, :]), axis=-1)
756
756
 
757
757
  def interpolation_coeffs_point(self, p):
758
758
  """
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: iwopy
3
- Version: 0.1.8
3
+ Version: 0.1.9
4
4
  Summary: Fraunhofer IWES optimization tools in Python
5
5
  Home-page: https://github.com/FraunhoferIWES/iwopy
6
6
  Author: Fraunhofer IWES
@@ -34,8 +34,8 @@ Provides-Extra: scripts
34
34
  Provides-Extra: test
35
35
  Requires-Dist: flake8 ; extra == 'test'
36
36
  Requires-Dist: pytest ; extra == 'test'
37
- Requires-Dist: pymoo >=0.6 ; extra == 'test'
38
37
  Requires-Dist: pygmo ; extra == 'test'
38
+ Requires-Dist: pymoo >=0.6 ; extra == 'test'
39
39
 
40
40
  # iwopy
41
41
 
@@ -141,6 +141,20 @@ Then you can either install from this directory via
141
141
  pip install -e .
142
142
  ```
143
143
 
144
+ ## Testing
145
+
146
+ For testing, please clone the repository and install the required dependencies:
147
+ ```console
148
+ git clone https://github.com/FraunhoferIWES/iwopy.git
149
+ cd iwopy
150
+ pip install -e .[test]
151
+ ```
152
+
153
+ The tests are then run by
154
+ ```console
155
+ pytest tests
156
+ ```
157
+
144
158
  ## Contributing
145
159
 
146
160
  1. Fork _iwopy_ on _github_.
@@ -1,5 +1,5 @@
1
- iwopy/VERSION,sha256=dvgfZOzijQvP453TX20U88h_4AC3eu4RVh4Y0ZGfYH4,6
2
- iwopy/__init__.py,sha256=6bQcJJYYOA_DMXkGw3spJnQVutirE13L_HM5Q1RMrYY,389
1
+ iwopy/VERSION,sha256=41jYRVKAilwL1medaQwoO5OOvhXCvYQ8iYaB0JMhMQc,6
2
+ iwopy/__init__.py,sha256=UtLW52FR7VH1WAhSUcr4uJu1Zd4c4ChkuXLBcCQscXs,533
3
3
  iwopy/benchmarks/__init__.py,sha256=WQii3TCGi4Q30p_X86mCOQ3RsYpPFegsMHedbQX4QC4,46
4
4
  iwopy/benchmarks/branin.py,sha256=5cDSbKf8zW-6zYtHz73JuGfeqiQ56CeI7jprcsvIyRg,2608
5
5
  iwopy/benchmarks/rosenbrock.py,sha256=CYuiYKN1XcolHDW012Pa2-A8wgSX3Qy6H7GXsFH35Qw,2469
@@ -30,7 +30,7 @@ iwopy/interfaces/scipy/optimizer.py,sha256=OHLTUwEhU5MqHADJBaSgLs4EsNun0mpy-raYU
30
30
  iwopy/optimizers/__init__.py,sha256=qfKVpw4PtH61umx3GulWSN21jjiJuUf5oUTfUGxU1pk,19
31
31
  iwopy/optimizers/gg.py,sha256=hg-cUHP6oasvbnLJ4AJ5a3M-ugJdmNUz5JPJbeVQrGU,14479
32
32
  iwopy/utils/__init__.py,sha256=qPtdU7hcWPuwEeqd9G-SXqGrakvM9_zfwOiDJdPc8pk,122
33
- iwopy/utils/discretization.py,sha256=XBUm2zbIUAo7v8HFoeM0DaKiNJDVDbkdvpOPLO4Ffq8,36635
33
+ iwopy/utils/discretization.py,sha256=4rjE6Ldo9I3xVXCr7m0a08XFe47CMi-BfQsrLeou3vo,36632
34
34
  iwopy/utils/load.py,sha256=HBX55VV4H2azK1m3sGrD-led31KErBOS8EI0VGYuBG0,766
35
35
  iwopy/utils/stdout.py,sha256=ZVyt8rT8GxQE6mpbFh8V5kf5i_UnP3AP8r9gCGhd1hg,689
36
36
  iwopy/wrappers/__init__.py,sha256=dBQebvXOf0g-67Lof3rmscDzF20EO688Lm2ywIT_uEE,261
@@ -40,9 +40,9 @@ iwopy/wrappers/problem_wrapper.py,sha256=txebURNkFXpoAmxu14GZt5chmQTsrHNRCxOPp-3
40
40
  iwopy/wrappers/simple_constraint.py,sha256=Fq16EhV8Dr8zDEyHUvznIWsci-0DVEX4lNJYn2GeHt4,6632
41
41
  iwopy/wrappers/simple_objective.py,sha256=M0QgPNy1aXeFZDXZpJ3FdJt4ifDSP3bCGaU9lbLsSew,6520
42
42
  iwopy/wrappers/simple_problem.py,sha256=jlFikZw_wIcWezJoIeC0lYLRRh4WcTVDXUMEEqRyWmE,7365
43
- iwopy-0.1.8.dist-info/LICENSE,sha256=bBCH6mYTPzSepk2s2UUZ3II_ZYXrn1bnSqB85-aZHxU,1071
44
- iwopy-0.1.8.dist-info/METADATA,sha256=ePvr5iU2q1gF3Dk_VfNjgXlW8SfvMFBtKtuYQPK1tgw,5461
45
- iwopy-0.1.8.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
46
- iwopy-0.1.8.dist-info/top_level.txt,sha256=51KNQr27ur_u9xKpuDl7GQiBINPKGOqMaMM63kFNzQE,6
47
- iwopy-0.1.8.dist-info/zip-safe,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
48
- iwopy-0.1.8.dist-info/RECORD,,
43
+ iwopy-0.1.9.dist-info/LICENSE,sha256=bBCH6mYTPzSepk2s2UUZ3II_ZYXrn1bnSqB85-aZHxU,1071
44
+ iwopy-0.1.9.dist-info/METADATA,sha256=CSq-mbl7EcI7YonM9jqFgcQO7CjOCJ9_0m80UhM-HuM,5710
45
+ iwopy-0.1.9.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
46
+ iwopy-0.1.9.dist-info/top_level.txt,sha256=51KNQr27ur_u9xKpuDl7GQiBINPKGOqMaMM63kFNzQE,6
47
+ iwopy-0.1.9.dist-info/zip-safe,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
48
+ iwopy-0.1.9.dist-info/RECORD,,
File without changes
File without changes