Skip to content

Commit

Permalink
Merge pull request #25 from SINTEF/fix/convert_feems_result_ptipto_co…
Browse files Browse the repository at this point in the history
…nfig

A bug fixed
  • Loading branch information
kevinksyTRD authored Aug 14, 2024
2 parents 3682533 + a67aa07 commit ed3f51e
Show file tree
Hide file tree
Showing 17 changed files with 34 additions and 33 deletions.
Binary file removed .DS_Store
Binary file not shown.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ __pycache__/
Data
PythonScript
venv
.venv
.idea/
build
dist
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@
" TypeComponent.BATTERY_SYSTEM,\n",
" ]:\n",
" pass\n",
" elif power_source.type == [TypeComponent.PTI_PTO_SYSTEM]:\n",
" elif power_source.type == TypeComponent.PTI_PTO_SYSTEM:\n",
" pass\n",
" else:\n",
" raise NotImplementedError(\n",
Expand Down
2 changes: 1 addition & 1 deletion machinery-system-structure/MachSysS/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.6.6"
__version__ = "0.6.7"
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ class FEEMSResultConverter:
def __init__(
self,
feems_result: Union[FEEMSResult, FEEMSResultForMachinerySystem],
system_feems: [
system_feems: Union[
MechanicalPropulsionSystemWithElectricPowerSystem,
ElectricPowerSystem,
HybridPropulsionSystem,
Expand Down Expand Up @@ -193,7 +193,7 @@ def _retrieve_time_series_data_from_components(self):
TypeComponent.BATTERY_SYSTEM,
]:
pass
elif power_source.type == [TypeComponent.PTI_PTO_SYSTEM]:
elif power_source.type == TypeComponent.PTI_PTO_SYSTEM:
pass
else:
raise NotImplementedError(
Expand Down
4 changes: 2 additions & 2 deletions machinery-system-structure/settings.ini
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ user = keviny
author = Kevin Koosup Yum
author_email = [email protected]
copyright = SINTEF Ocean
version = 0.6.6
version = 0.6.7
min_python = 3.10
audience = Developers
language = English
Expand All @@ -24,7 +24,7 @@ license = apache2
status = 1

# Optional. Same format as setuptools requirements
requirements = protobuf
requirements = protobuf~=4.21.12
# Optional. Same format as setuptools console_scripts
# console_scripts =
# Optional. Same format as setuptools dependency-links
Expand Down
Binary file modified machinery-system-structure/tests/electric_propulsion_system.mss
Binary file not shown.
Binary file modified machinery-system-structure/tests/electric_system_with_pto.mss
Binary file not shown.
Binary file modified machinery-system-structure/tests/hybrid_propulsion_system.mss
Binary file not shown.
Binary file not shown.
Binary file modified machinery-system-structure/tests/mechanical_system_with_pto.mss
Binary file not shown.
Binary file modified machinery-system-structure/tests/system_proto.mss
Binary file not shown.
Binary file modified machinery-system-structure/tests/system_proto_with_coges.mss
Binary file not shown.
52 changes: 26 additions & 26 deletions machinery-system-structure/timeseries_test.csv
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
1604188800.0,speed through water,0.0
1604188800.0,sea current speed in meter pr sec,0.0
1604188800.0,sea current direction in degrees relative to geographic north,0.0
1604188800.0,power,311.6036210421622
1604188800.0,power,717.1476301461336
1604188800.0,torque,0.0
1604188800.0,thrust,0.0
1604188800.0,rtot,0.0
Expand All @@ -36,7 +36,7 @@
1604189706.0,speed through water,0.0
1604189706.0,sea current speed in meter pr sec,0.0
1604189706.0,sea current direction in degrees relative to geographic north,0.0
1604189706.0,power,112.98942864346961
1604189706.0,power,162.46938726790404
1604189706.0,torque,0.0
1604189706.0,thrust,0.0
1604189706.0,rtot,0.0
Expand All @@ -57,7 +57,7 @@
1604190517.0,speed through water,0.0
1604190517.0,sea current speed in meter pr sec,0.0
1604190517.0,sea current direction in degrees relative to geographic north,0.0
1604190517.0,power,495.01570738457923
1604190517.0,power,722.284852947919
1604190517.0,torque,0.0
1604190517.0,thrust,0.0
1604190517.0,rtot,0.0
Expand All @@ -78,7 +78,7 @@
1604191186.0,speed through water,0.0
1604191186.0,sea current speed in meter pr sec,0.0
1604191186.0,sea current direction in degrees relative to geographic north,0.0
1604191186.0,power,580.5793529320733
1604191186.0,power,267.47993452384844
1604191186.0,torque,0.0
1604191186.0,thrust,0.0
1604191186.0,rtot,0.0
Expand All @@ -99,7 +99,7 @@
1604192400.0,speed through water,0.0
1604192400.0,sea current speed in meter pr sec,0.0
1604192400.0,sea current direction in degrees relative to geographic north,0.0
1604192400.0,power,277.2219163791282
1604192400.0,power,662.7298790034673
1604192400.0,torque,0.0
1604192400.0,thrust,0.0
1604192400.0,rtot,0.0
Expand All @@ -120,7 +120,7 @@
1604192423.0,speed through water,0.0
1604192423.0,sea current speed in meter pr sec,0.0
1604192423.0,sea current direction in degrees relative to geographic north,0.0
1604192423.0,power,25.905163402709206
1604192423.0,power,202.39072768222442
1604192423.0,torque,0.0
1604192423.0,thrust,0.0
1604192423.0,rtot,0.0
Expand All @@ -141,7 +141,7 @@
1604193529.0,speed through water,0.0
1604193529.0,sea current speed in meter pr sec,0.0
1604193529.0,sea current direction in degrees relative to geographic north,0.0
1604193529.0,power,493.91605516134297
1604193529.0,power,160.51544456133814
1604193529.0,torque,0.0
1604193529.0,thrust,0.0
1604193529.0,rtot,0.0
Expand All @@ -162,7 +162,7 @@
1604194874.0,speed through water,0.0
1604194874.0,sea current speed in meter pr sec,0.0
1604194874.0,sea current direction in degrees relative to geographic north,0.0
1604194874.0,power,681.3837164029684
1604194874.0,power,17.59906533610811
1604194874.0,torque,0.0
1604194874.0,thrust,0.0
1604194874.0,rtot,0.0
Expand All @@ -183,7 +183,7 @@
1604196000.0,speed through water,0.0
1604196000.0,sea current speed in meter pr sec,0.0
1604196000.0,sea current direction in degrees relative to geographic north,0.0
1604196000.0,power,844.1279292397296
1604196000.0,power,945.3973205466585
1604196000.0,torque,0.0
1604196000.0,thrust,0.0
1604196000.0,rtot,0.0
Expand All @@ -204,7 +204,7 @@
1604197749.0,speed through water,0.0
1604197749.0,sea current speed in meter pr sec,0.0
1604197749.0,sea current direction in degrees relative to geographic north,0.0
1604197749.0,power,148.257820839521
1604197749.0,power,331.9244617913355
1604197749.0,torque,0.0
1604197749.0,thrust,0.0
1604197749.0,rtot,0.0
Expand All @@ -225,7 +225,7 @@
1604199600.0,speed through water,0.0
1604199600.0,sea current speed in meter pr sec,0.0
1604199600.0,sea current direction in degrees relative to geographic north,0.0
1604199600.0,power,906.6903161480209
1604199600.0,power,191.7547965503028
1604199600.0,torque,0.0
1604199600.0,thrust,0.0
1604199600.0,rtot,0.0
Expand All @@ -246,7 +246,7 @@
1604199914.0,speed through water,0.0
1604199914.0,sea current speed in meter pr sec,0.0
1604199914.0,sea current direction in degrees relative to geographic north,0.0
1604199914.0,power,563.1002964115078
1604199914.0,power,134.81254918298714
1604199914.0,torque,0.0
1604199914.0,thrust,0.0
1604199914.0,rtot,0.0
Expand All @@ -267,7 +267,7 @@
1604203037.0,speed through water,0.0
1604203037.0,sea current speed in meter pr sec,0.0
1604203037.0,sea current direction in degrees relative to geographic north,0.0
1604203037.0,power,788.0065500622838
1604203037.0,power,859.7682686278378
1604203037.0,torque,0.0
1604203037.0,thrust,0.0
1604203037.0,rtot,0.0
Expand All @@ -288,7 +288,7 @@
1604203200.0,speed through water,0.0
1604203200.0,sea current speed in meter pr sec,0.0
1604203200.0,sea current direction in degrees relative to geographic north,0.0
1604203200.0,power,423.3180725307778
1604203200.0,power,686.392719607387
1604203200.0,torque,0.0
1604203200.0,thrust,0.0
1604203200.0,rtot,0.0
Expand All @@ -309,7 +309,7 @@
1604204886.0,speed through water,0.0
1604204886.0,sea current speed in meter pr sec,0.0
1604204886.0,sea current direction in degrees relative to geographic north,0.0
1604204886.0,power,945.3084160727689
1604204886.0,power,530.6514197826817
1604204886.0,torque,0.0
1604204886.0,thrust,0.0
1604204886.0,rtot,0.0
Expand All @@ -330,7 +330,7 @@
1604205991.0,speed through water,0.0
1604205991.0,sea current speed in meter pr sec,0.0
1604205991.0,sea current direction in degrees relative to geographic north,0.0
1604205991.0,power,699.2054333685735
1604205991.0,power,82.02053738617798
1604205991.0,torque,0.0
1604205991.0,thrust,0.0
1604205991.0,rtot,0.0
Expand All @@ -351,7 +351,7 @@
1604206800.0,speed through water,0.0
1604206800.0,sea current speed in meter pr sec,0.0
1604206800.0,sea current direction in degrees relative to geographic north,0.0
1604206800.0,power,152.91384664645767
1604206800.0,power,942.9539935999537
1604206800.0,torque,0.0
1604206800.0,thrust,0.0
1604206800.0,rtot,0.0
Expand All @@ -372,7 +372,7 @@
1604207782.0,speed through water,0.0
1604207782.0,sea current speed in meter pr sec,0.0
1604207782.0,sea current direction in degrees relative to geographic north,0.0
1604207782.0,power,274.58177599789303
1604207782.0,power,864.4027876293283
1604207782.0,torque,0.0
1604207782.0,thrust,0.0
1604207782.0,rtot,0.0
Expand All @@ -393,7 +393,7 @@
1604208824.0,speed through water,0.0
1604208824.0,sea current speed in meter pr sec,0.0
1604208824.0,sea current direction in degrees relative to geographic north,0.0
1604208824.0,power,593.0435028248605
1604208824.0,power,668.0044438526122
1604208824.0,torque,0.0
1604208824.0,thrust,0.0
1604208824.0,rtot,0.0
Expand All @@ -414,7 +414,7 @@
1604209673.0,speed through water,0.0
1604209673.0,sea current speed in meter pr sec,0.0
1604209673.0,sea current direction in degrees relative to geographic north,0.0
1604209673.0,power,126.71827310428397
1604209673.0,power,635.3339693658279
1604209673.0,torque,0.0
1604209673.0,thrust,0.0
1604209673.0,rtot,0.0
Expand All @@ -435,7 +435,7 @@
1604210400.0,speed through water,0.0
1604210400.0,sea current speed in meter pr sec,0.0
1604210400.0,sea current direction in degrees relative to geographic north,0.0
1604210400.0,power,4.692365611099425
1604210400.0,power,572.9768087283618
1604210400.0,torque,0.0
1604210400.0,thrust,0.0
1604210400.0,rtot,0.0
Expand All @@ -456,7 +456,7 @@
1604211652.0,speed through water,0.0
1604211652.0,sea current speed in meter pr sec,0.0
1604211652.0,sea current direction in degrees relative to geographic north,0.0
1604211652.0,power,532.0021501000223
1604211652.0,power,290.9076682165619
1604211652.0,torque,0.0
1604211652.0,thrust,0.0
1604211652.0,rtot,0.0
Expand All @@ -477,7 +477,7 @@
1604212887.0,speed through water,0.0
1604212887.0,sea current speed in meter pr sec,0.0
1604212887.0,sea current direction in degrees relative to geographic north,0.0
1604212887.0,power,863.9798013880974
1604212887.0,power,814.2485514996213
1604212887.0,torque,0.0
1604212887.0,thrust,0.0
1604212887.0,rtot,0.0
Expand All @@ -498,7 +498,7 @@
1604214000.0,speed through water,0.0
1604214000.0,sea current speed in meter pr sec,0.0
1604214000.0,sea current direction in degrees relative to geographic north,0.0
1604214000.0,power,117.12681198092245
1604214000.0,power,672.8158717665798
1604214000.0,torque,0.0
1604214000.0,thrust,0.0
1604214000.0,rtot,0.0
Expand All @@ -519,7 +519,7 @@
1604214565.0,speed through water,0.0
1604214565.0,sea current speed in meter pr sec,0.0
1604214565.0,sea current direction in degrees relative to geographic north,0.0
1604214565.0,power,172.50684009842354
1604214565.0,power,41.415835338854066
1604214565.0,torque,0.0
1604214565.0,thrust,0.0
1604214565.0,rtot,0.0
Expand All @@ -540,7 +540,7 @@
1604215950.0,speed through water,0.0
1604215950.0,sea current speed in meter pr sec,0.0
1604215950.0,sea current direction in degrees relative to geographic north,0.0
1604215950.0,power,870.7189882146831
1604215950.0,power,160.1465220216649
1604215950.0,torque,0.0
1604215950.0,thrust,0.0
1604215950.0,rtot,0.0
Binary file modified machinery-system-structure/timeseries_test.sim
Binary file not shown.
Binary file modified machinery-system-structure/timeseries_test_.sim
Binary file not shown.
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
pandas
numpy
scipy
protobuf
protobuf~=4.21.12
pandas

0 comments on commit ed3f51e

Please sign in to comment.