epyt-flow 0.14.1__py3-none-any.whl → 0.15.0__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.
Files changed (108) hide show
  1. epyt_flow/VERSION +1 -1
  2. epyt_flow/__init__.py +0 -37
  3. epyt_flow/data/benchmarks/battledim.py +2 -2
  4. epyt_flow/data/benchmarks/leakdb.py +12 -9
  5. epyt_flow/gym/scenario_control_env.py +32 -33
  6. epyt_flow/simulation/events/actuator_events.py +24 -18
  7. epyt_flow/simulation/events/leakages.py +59 -57
  8. epyt_flow/simulation/events/quality_events.py +21 -30
  9. epyt_flow/simulation/events/system_event.py +3 -3
  10. epyt_flow/simulation/scada/complex_control.py +14 -12
  11. epyt_flow/simulation/scada/custom_control.py +22 -21
  12. epyt_flow/simulation/scada/scada_data.py +108 -105
  13. epyt_flow/simulation/scada/simple_control.py +38 -31
  14. epyt_flow/simulation/scenario_simulator.py +368 -395
  15. epyt_flow/simulation/sensor_config.py +31 -32
  16. epyt_flow/topology.py +11 -10
  17. epyt_flow/uncertainty/model_uncertainty.py +146 -122
  18. epyt_flow/utils.py +66 -0
  19. epyt_flow/visualization/visualization_utils.py +4 -2
  20. {epyt_flow-0.14.1.dist-info → epyt_flow-0.15.0.dist-info}/METADATA +14 -19
  21. epyt_flow-0.15.0.dist-info/RECORD +65 -0
  22. epyt_flow/EPANET/EPANET/SRC_engines/AUTHORS +0 -60
  23. epyt_flow/EPANET/EPANET/SRC_engines/LICENSE +0 -21
  24. epyt_flow/EPANET/EPANET/SRC_engines/enumstxt.h +0 -151
  25. epyt_flow/EPANET/EPANET/SRC_engines/epanet.c +0 -5930
  26. epyt_flow/EPANET/EPANET/SRC_engines/epanet2.c +0 -961
  27. epyt_flow/EPANET/EPANET/SRC_engines/errors.dat +0 -79
  28. epyt_flow/EPANET/EPANET/SRC_engines/flowbalance.c +0 -186
  29. epyt_flow/EPANET/EPANET/SRC_engines/funcs.h +0 -219
  30. epyt_flow/EPANET/EPANET/SRC_engines/genmmd.c +0 -1000
  31. epyt_flow/EPANET/EPANET/SRC_engines/hash.c +0 -177
  32. epyt_flow/EPANET/EPANET/SRC_engines/hash.h +0 -28
  33. epyt_flow/EPANET/EPANET/SRC_engines/hydcoeffs.c +0 -1303
  34. epyt_flow/EPANET/EPANET/SRC_engines/hydraul.c +0 -1172
  35. epyt_flow/EPANET/EPANET/SRC_engines/hydsolver.c +0 -781
  36. epyt_flow/EPANET/EPANET/SRC_engines/hydstatus.c +0 -442
  37. epyt_flow/EPANET/EPANET/SRC_engines/include/epanet2.h +0 -464
  38. epyt_flow/EPANET/EPANET/SRC_engines/include/epanet2_2.h +0 -1960
  39. epyt_flow/EPANET/EPANET/SRC_engines/include/epanet2_enums.h +0 -518
  40. epyt_flow/EPANET/EPANET/SRC_engines/inpfile.c +0 -884
  41. epyt_flow/EPANET/EPANET/SRC_engines/input1.c +0 -672
  42. epyt_flow/EPANET/EPANET/SRC_engines/input2.c +0 -735
  43. epyt_flow/EPANET/EPANET/SRC_engines/input3.c +0 -2265
  44. epyt_flow/EPANET/EPANET/SRC_engines/leakage.c +0 -527
  45. epyt_flow/EPANET/EPANET/SRC_engines/mempool.c +0 -146
  46. epyt_flow/EPANET/EPANET/SRC_engines/mempool.h +0 -24
  47. epyt_flow/EPANET/EPANET/SRC_engines/output.c +0 -853
  48. epyt_flow/EPANET/EPANET/SRC_engines/project.c +0 -1691
  49. epyt_flow/EPANET/EPANET/SRC_engines/quality.c +0 -695
  50. epyt_flow/EPANET/EPANET/SRC_engines/qualreact.c +0 -800
  51. epyt_flow/EPANET/EPANET/SRC_engines/qualroute.c +0 -696
  52. epyt_flow/EPANET/EPANET/SRC_engines/report.c +0 -1557
  53. epyt_flow/EPANET/EPANET/SRC_engines/rules.c +0 -1500
  54. epyt_flow/EPANET/EPANET/SRC_engines/smatrix.c +0 -871
  55. epyt_flow/EPANET/EPANET/SRC_engines/text.h +0 -508
  56. epyt_flow/EPANET/EPANET/SRC_engines/types.h +0 -928
  57. epyt_flow/EPANET/EPANET/SRC_engines/util/cstr_helper.c +0 -59
  58. epyt_flow/EPANET/EPANET/SRC_engines/util/cstr_helper.h +0 -38
  59. epyt_flow/EPANET/EPANET/SRC_engines/util/errormanager.c +0 -92
  60. epyt_flow/EPANET/EPANET/SRC_engines/util/errormanager.h +0 -39
  61. epyt_flow/EPANET/EPANET/SRC_engines/util/filemanager.c +0 -212
  62. epyt_flow/EPANET/EPANET/SRC_engines/util/filemanager.h +0 -81
  63. epyt_flow/EPANET/EPANET/SRC_engines/validate.c +0 -408
  64. epyt_flow/EPANET/EPANET-MSX/MSX_Updates.txt +0 -53
  65. epyt_flow/EPANET/EPANET-MSX/Src/dispersion.h +0 -27
  66. epyt_flow/EPANET/EPANET-MSX/Src/hash.c +0 -107
  67. epyt_flow/EPANET/EPANET-MSX/Src/hash.h +0 -28
  68. epyt_flow/EPANET/EPANET-MSX/Src/include/epanetmsx.h +0 -102
  69. epyt_flow/EPANET/EPANET-MSX/Src/include/epanetmsx_export.h +0 -42
  70. epyt_flow/EPANET/EPANET-MSX/Src/mathexpr.c +0 -937
  71. epyt_flow/EPANET/EPANET-MSX/Src/mathexpr.h +0 -39
  72. epyt_flow/EPANET/EPANET-MSX/Src/mempool.c +0 -204
  73. epyt_flow/EPANET/EPANET-MSX/Src/mempool.h +0 -24
  74. epyt_flow/EPANET/EPANET-MSX/Src/msxchem.c +0 -1285
  75. epyt_flow/EPANET/EPANET-MSX/Src/msxcompiler.c +0 -368
  76. epyt_flow/EPANET/EPANET-MSX/Src/msxdict.h +0 -42
  77. epyt_flow/EPANET/EPANET-MSX/Src/msxdispersion.c +0 -586
  78. epyt_flow/EPANET/EPANET-MSX/Src/msxerr.c +0 -116
  79. epyt_flow/EPANET/EPANET-MSX/Src/msxfile.c +0 -260
  80. epyt_flow/EPANET/EPANET-MSX/Src/msxfuncs.c +0 -175
  81. epyt_flow/EPANET/EPANET-MSX/Src/msxfuncs.h +0 -35
  82. epyt_flow/EPANET/EPANET-MSX/Src/msxinp.c +0 -1504
  83. epyt_flow/EPANET/EPANET-MSX/Src/msxout.c +0 -401
  84. epyt_flow/EPANET/EPANET-MSX/Src/msxproj.c +0 -791
  85. epyt_flow/EPANET/EPANET-MSX/Src/msxqual.c +0 -2010
  86. epyt_flow/EPANET/EPANET-MSX/Src/msxrpt.c +0 -400
  87. epyt_flow/EPANET/EPANET-MSX/Src/msxtank.c +0 -422
  88. epyt_flow/EPANET/EPANET-MSX/Src/msxtoolkit.c +0 -1164
  89. epyt_flow/EPANET/EPANET-MSX/Src/msxtypes.h +0 -551
  90. epyt_flow/EPANET/EPANET-MSX/Src/msxutils.c +0 -524
  91. epyt_flow/EPANET/EPANET-MSX/Src/msxutils.h +0 -56
  92. epyt_flow/EPANET/EPANET-MSX/Src/newton.c +0 -158
  93. epyt_flow/EPANET/EPANET-MSX/Src/newton.h +0 -34
  94. epyt_flow/EPANET/EPANET-MSX/Src/rk5.c +0 -287
  95. epyt_flow/EPANET/EPANET-MSX/Src/rk5.h +0 -39
  96. epyt_flow/EPANET/EPANET-MSX/Src/ros2.c +0 -293
  97. epyt_flow/EPANET/EPANET-MSX/Src/ros2.h +0 -35
  98. epyt_flow/EPANET/EPANET-MSX/Src/smatrix.c +0 -816
  99. epyt_flow/EPANET/EPANET-MSX/Src/smatrix.h +0 -29
  100. epyt_flow/EPANET/EPANET-MSX/readme.txt +0 -14
  101. epyt_flow/EPANET/compile_linux.sh +0 -4
  102. epyt_flow/EPANET/compile_macos.sh +0 -4
  103. epyt_flow/simulation/backend/__init__.py +0 -1
  104. epyt_flow/simulation/backend/my_epyt.py +0 -1101
  105. epyt_flow-0.14.1.dist-info/RECORD +0 -148
  106. {epyt_flow-0.14.1.dist-info → epyt_flow-0.15.0.dist-info}/WHEEL +0 -0
  107. {epyt_flow-0.14.1.dist-info → epyt_flow-0.15.0.dist-info}/licenses/LICENSE +0 -0
  108. {epyt_flow-0.14.1.dist-info → epyt_flow-0.15.0.dist-info}/top_level.txt +0 -0
@@ -1,102 +0,0 @@
1
- /******************************************************************************
2
- ** MODULE: EPANETMSX.H
3
- ** PROJECT: EPANET-MSX
4
- ** DESCRIPTION: C/C++ header file for EPANET Multi-Species Extension Toolkit
5
- ** AUTHORS: see AUTHORS
6
- ** Copyright: see AUTHORS
7
- ** License: see LICENSE
8
- ** VERSION: 2.0.0
9
- ** LAST UPDATE: 11/01/10
10
- *******************************************************************************/
11
-
12
- #include "epanet2.h" // EPANET toolkit header file
13
-
14
- #ifndef EPANETMSX_H
15
- #define EPANETMSX_H
16
-
17
- #ifndef MSXDLLEXPORT
18
- #ifdef _WIN32
19
- #ifdef epanetmsx_EXPORTS
20
- #define MSXDLLEXPORT __declspec(dllexport) __stdcall
21
- #else
22
- #define MSXDLLEXPORT __declspec(dllimport) __stdcall
23
- #endif
24
- #elif defined(__CYGWIN__)
25
- #define MSXDLLEXPORT __stdcall
26
- #else
27
- #define MSXDLLEXPORT
28
- #endif
29
- #endif
30
-
31
- // --- Declare the EPANETMSX toolkit functions
32
- #if defined(__cplusplus)
33
- extern "C" {
34
- #endif
35
-
36
- // --- define MSX constants
37
-
38
- #define MSX_NODE 0
39
- #define MSX_LINK 1
40
- #define MSX_TANK 2
41
- #define MSX_SPECIES 3
42
- #define MSX_TERM 4
43
- #define MSX_PARAMETER 5
44
- #define MSX_CONSTANT 6
45
- #define MSX_PATTERN 7
46
-
47
- #define MSX_BULK 0
48
- #define MSX_WALL 1
49
-
50
- #define MSX_NOSOURCE -1
51
- #define MSX_CONCEN 0
52
- #define MSX_MASS 1
53
- #define MSX_SETPOINT 2
54
- #define MSX_FLOWPACED 3
55
-
56
- // --- declare MSX functions
57
-
58
- int MSXDLLEXPORT MSXENopen(const char *inpFile, const char *rptFile,
59
- const char *outFile);
60
- int MSXDLLEXPORT MSXopen(char *fname);
61
- int MSXDLLEXPORT MSXsolveH(void);
62
- int MSXDLLEXPORT MSXusehydfile(char *fname);
63
- int MSXDLLEXPORT MSXsolveQ(void);
64
- int MSXDLLEXPORT MSXinit(int saveFlag);
65
- int MSXDLLEXPORT MSXstep(double *t, double *tleft);
66
- int MSXDLLEXPORT MSXsaveoutfile(char *fname);
67
- int MSXDLLEXPORT MSXsavemsxfile(char *fname);
68
- int MSXDLLEXPORT MSXreport(void);
69
- int MSXDLLEXPORT MSXclose(void);
70
- int MSXDLLEXPORT MSXENclose(void);
71
-
72
- int MSXDLLEXPORT MSXgetindex(int type, char *id, int *index);
73
- int MSXDLLEXPORT MSXgetIDlen(int type, int index, int *len);
74
- int MSXDLLEXPORT MSXgetID(int type, int index, char *id, int len);
75
- int MSXDLLEXPORT MSXgetcount(int type, int *count);
76
- int MSXDLLEXPORT MSXgetspecies(int index, int *type, char *units, double *aTol,
77
- double *rTol);
78
- int MSXDLLEXPORT MSXgetconstant(int index, double *value);
79
- int MSXDLLEXPORT MSXgetparameter(int type, int index, int param, double *value);
80
- int MSXDLLEXPORT MSXgetsource(int node, int species, int *type, double *level,
81
- int *pat);
82
- int MSXDLLEXPORT MSXgetpatternlen(int pat, int *len);
83
- int MSXDLLEXPORT MSXgetpatternvalue(int pat, int period, double *value);
84
- int MSXDLLEXPORT MSXgetinitqual(int type, int index, int species, double *value);
85
- int MSXDLLEXPORT MSXgetqual(int type, int index, int species, double *value);
86
- int MSXDLLEXPORT MSXgeterror(int code, char *msg, int len);
87
-
88
- int MSXDLLEXPORT MSXsetconstant(int index, double value);
89
- int MSXDLLEXPORT MSXsetparameter(int type, int index, int param, double value);
90
- int MSXDLLEXPORT MSXsetinitqual(int type, int index, int species, double value);
91
- int MSXDLLEXPORT MSXsetsource(int node, int species, int type, double level,
92
- int pat);
93
- int MSXDLLEXPORT MSXsetpatternvalue(int pat, int period, double value);
94
- int MSXDLLEXPORT MSXsetpattern(int pat, double mult[], int len);
95
- int MSXDLLEXPORT MSXaddpattern(char *id);
96
-
97
-
98
- #if defined(__cplusplus)
99
- }
100
- #endif
101
-
102
- #endif
@@ -1,42 +0,0 @@
1
-
2
- #ifndef MSXDLLEXPORT_H
3
- #define MSXDLLEXPORT_H
4
-
5
- #ifdef SHARED_EXPORTS_BUILT_AS_STATIC
6
- # define MSXDLLEXPORT
7
- # define EPANETMSX_NO_EXPORT
8
- #else
9
- # ifndef MSXDLLEXPORT
10
- # ifdef epanetmsx_EXPORTS
11
- /* We are building this library */
12
- # define MSXDLLEXPORT __attribute__((visibility("default")))
13
- # else
14
- /* We are using this library */
15
- # define MSXDLLEXPORT __attribute__((visibility("default")))
16
- # endif
17
- # endif
18
-
19
- # ifndef EPANETMSX_NO_EXPORT
20
- # define EPANETMSX_NO_EXPORT __attribute__((visibility("hidden")))
21
- # endif
22
- #endif
23
-
24
- #ifndef EPANETMSX_DEPRECATED
25
- # define EPANETMSX_DEPRECATED __attribute__ ((__deprecated__))
26
- #endif
27
-
28
- #ifndef EPANETMSX_DEPRECATED_EXPORT
29
- # define EPANETMSX_DEPRECATED_EXPORT MSXDLLEXPORT EPANETMSX_DEPRECATED
30
- #endif
31
-
32
- #ifndef EPANETMSX_DEPRECATED_NO_EXPORT
33
- # define EPANETMSX_DEPRECATED_NO_EXPORT EPANETMSX_NO_EXPORT EPANETMSX_DEPRECATED
34
- #endif
35
-
36
- #if 0 /* DEFINE_NO_DEPRECATED */
37
- # ifndef EPANETMSX_NO_DEPRECATED
38
- # define EPANETMSX_NO_DEPRECATED
39
- # endif
40
- #endif
41
-
42
- #endif /* MSXDLLEXPORT_H */