ltbams 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.
Files changed (53) hide show
  1. ams/_version.py +3 -3
  2. ams/cases/5bus/pjm5bus_demo.xlsx +0 -0
  3. ams/cases/5bus/pjm5bus_ev.xlsx +0 -0
  4. ams/cases/5bus/pjm5bus_jumper.xlsx +0 -0
  5. ams/cases/hawaii40/Hawaii40.m +375 -0
  6. ams/cases/ieee14/ieee14_uced.xlsx +0 -0
  7. ams/cases/ieee39/ieee39_uced.xlsx +0 -0
  8. ams/cases/ieee39/ieee39_uced_esd1.xlsx +0 -0
  9. ams/cases/ieee39/ieee39_uced_pvd1.xlsx +0 -0
  10. ams/cases/ieee39/ieee39_uced_vis.xlsx +0 -0
  11. ams/cases/matpower/case5.m +25 -0
  12. ams/core/matprocessor.py +7 -16
  13. ams/core/service.py +4 -3
  14. ams/interface.py +17 -4
  15. ams/io/__init__.py +1 -0
  16. ams/io/matpower.py +165 -7
  17. ams/io/psse.py +1 -1
  18. ams/models/__init__.py +1 -1
  19. ams/models/group.py +77 -6
  20. ams/models/line.py +3 -164
  21. ams/models/renewable/regc.py +1 -5
  22. ams/models/reserve.py +2 -2
  23. ams/models/static/gen.py +11 -3
  24. ams/models/static/pq.py +2 -2
  25. ams/models/timeslot.py +1 -1
  26. ams/routines/dcopf.py +1 -1
  27. ams/routines/dcpf0.py +1 -1
  28. ams/routines/dopf.py +10 -10
  29. ams/routines/ed.py +3 -4
  30. ams/routines/pflow.py +9 -10
  31. ams/routines/rted.py +20 -29
  32. ams/routines/uc.py +1 -1
  33. ams/system.py +11 -18
  34. docs/source/api.rst +2 -0
  35. docs/source/getting_started/copyright.rst +1 -1
  36. docs/source/release-notes.rst +24 -0
  37. {ltbams-1.0.6.dist-info → ltbams-1.0.8.dist-info}/METADATA +1 -1
  38. {ltbams-1.0.6.dist-info → ltbams-1.0.8.dist-info}/RECORD +48 -51
  39. {ltbams-1.0.6.dist-info → ltbams-1.0.8.dist-info}/WHEEL +1 -1
  40. tests/test_1st_system.py +31 -0
  41. tests/test_case.py +27 -19
  42. tests/test_io.py +15 -0
  43. tests/test_rtn_ed.py +4 -4
  44. tests/test_rtn_rted.py +4 -4
  45. tests/test_rtn_uc.py +4 -4
  46. tests/test_service.py +2 -2
  47. ams/cases/5bus/pjm5bus_uced.json +0 -1062
  48. ams/cases/5bus/pjm5bus_uced.xlsx +0 -0
  49. ams/cases/5bus/pjm5bus_uced_esd1.xlsx +0 -0
  50. ams/cases/5bus/pjm5bus_uced_ev.xlsx +0 -0
  51. tests/test_andes_mats.py +0 -61
  52. {ltbams-1.0.6.dist-info → ltbams-1.0.8.dist-info}/entry_points.txt +0 -0
  53. {ltbams-1.0.6.dist-info → ltbams-1.0.8.dist-info}/top_level.txt +0 -0
Binary file
Binary file
Binary file
tests/test_andes_mats.py DELETED
@@ -1,61 +0,0 @@
1
- """
2
- Test ANDES matrices.
3
- """
4
-
5
- import unittest
6
- import numpy as np
7
- import importlib.metadata
8
- from packaging.version import parse as parse_version
9
-
10
- import ams
11
-
12
-
13
- class TestMatrices(unittest.TestCase):
14
- """
15
- Tests for system matrices consistency.
16
- """
17
-
18
- andes_version = importlib.metadata.version("andes")
19
- if parse_version(andes_version) < parse_version('1.9.2'):
20
- raise unittest.SkipTest("Requires ANDES version >= 1.9.2")
21
-
22
- sp = ams.load(ams.get_case('5bus/pjm5bus_demo.xlsx'),
23
- setup=True, no_output=True, default_config=True,)
24
- sa = sp.to_andes(setup=True, no_output=True, default_config=True,)
25
-
26
- def setUp(self) -> None:
27
- """
28
- Test setup.
29
- """
30
-
31
- def test_build_y(self):
32
- """
33
- Test build_y consistency.
34
- """
35
- ysp = self.sp.Line.build_y()
36
- ysa = self.sa.Line.build_y()
37
- np.testing.assert_equal(np.array(ysp.V), np.array(ysa.V))
38
-
39
- def test_build_Bp(self):
40
- """
41
- Test build_Bp consistency.
42
- """
43
- Bp_sp = self.sp.Line.build_Bp()
44
- Bp_sa = self.sa.Line.build_Bp()
45
- np.testing.assert_equal(np.array(Bp_sp.V), np.array(Bp_sa.V))
46
-
47
- def test_build_Bpp(self):
48
- """
49
- Test build_Bpp consistency.
50
- """
51
- Bpp_sp = self.sp.Line.build_Bpp()
52
- Bpp_sa = self.sa.Line.build_Bpp()
53
- np.testing.assert_equal(np.array(Bpp_sp.V), np.array(Bpp_sa.V))
54
-
55
- def test_build_Bdc(self):
56
- """
57
- Test build_Bdc consistency.
58
- """
59
- Bdc_sp = self.sp.Line.build_Bdc()
60
- Bdc_sa = self.sa.Line.build_Bdc()
61
- np.testing.assert_equal(np.array(Bdc_sp.V), np.array(Bdc_sa.V))