Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitd8ae1da

Browse files
committed
Merge branch 'main' of bitbucket.org:supportloghub/log-hub-python
2 parents469ed11 +d74293f commitd8ae1da

14 files changed

+1601
-197
lines changed

‎CHANGELOG.md‎

Lines changed: 39 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,32 @@ All notable changes to the `log_hub` project will be documented in this file.
44

55
The format is based on[Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to[Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

7+
##[0.1.8] - 2025-10-3
8+
9+
###Added
10+
-`reverse_freight_shipment_emissions_air` and`reverse_freight_shipment_emissions_sea` services are added into this version to help you calculate the CO2 footprint based on your shipments or route legs defined as separate shipments transported by air or sea with the corresponding coordinates of the port.
11+
-`reverse_freigth_shipment_emissions_river` services are added as a new type of transport mode. It helps you calculate the CO2 footprint based on your shipments or route legs defined as separate shipments transported by inland waterways with the corresponding coordinates of the port.
12+
13+
###Changed
14+
-`forward_freight_shipment_emissions_road` and`reverse_freight_shipment_emissions_road` services have new input column 'vehicleType' which allows you to use different vehicle types for your shipments without having to run multiple calculations. If not specified, the vehicle type from the 'Parameters' section will be used.
15+
-`forward_milkrun_optimization_plus` and`reverse_milkrun_optimization_plus` services have new input parameter 'costAllocationBy' and new output column 'costs' in the route details output table.
16+
17+
###Fixed
18+
- N/A (no fixes in this release).
19+
20+
###Deprecated
21+
- N/A (no deprecations in this release).
22+
23+
###Removed
24+
- N/A (no removals in this release).
25+
726
##[0.1.7] - 2025-08-31
827

928
###Added
1029
-`forward_freight_shipment_emissions_rail` and`reverse_freight_shipment_emissions_rail` services are added back into this version to help you calculate the CO2 footprint based on your shipments or route legs defined as separate shipments transported by train with the corresponding UN/LOCODEs or their coordinates provided.
1130

1231
###Changed
13-
-`forward_shipment_analyzer` and`reverse_shipment_analyzer` services are changed due to the API changes to a longrun version.
1432
-`forward_shipment_analyzer` and`reverse_shipment_analyzer` services have new input parameter 'distanceUnit'.
15-
-`forward_freight_shipment_emissions_road`,`reverse_freight_shipment_emissions_road`,`forward_freight_shipment_emissions_air` and`forward_freight_shipment_emissions_sea` services have additional input column 'distance'.
16-
-`forward_freight_shipment_emissions_air` service has additional input parameters 'planeType' and 'refrigerantFactor'.
17-
-`forward_freight_shipment_emissions_sea` service has additional input parameter 'refrigerantFactor'.
1833
-`forward_network_design_plus` and`reverse_network_design_plus` services have additional input column 'costumerGroup' in the 'customers' input table and output column with the same name in the 'customer_assignement' table.
1934
-`forward_milkrun_optimization_plus` and`reverse_milkrun_optimization_plus` services have new input column 'timeWindowProfile' in the 'depots' input table.
2035

@@ -27,6 +42,26 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
2742
###Removed
2843
-`forward_freight_shipment_emissions_rail` and`reverse_freight_shipment_emissions_rail` services are removed from this version.
2944

45+
##[0.1.6] - 2025-06-13
46+
47+
###Added
48+
- N/A (no additions in this release).
49+
50+
###Changed
51+
-`forward_shipment_analyzer` and`reverse_shipment_analyzer` services are changed due to the API changes to a longrun version.
52+
-`forward_freight_shipment_emissions_road`,`reverse_freight_shipment_emissions_road`,`forward_freight_shipment_emissions_air` and`forward_freight_shipment_emissions_sea` services have additional input column 'distance'.
53+
-`forward_freight_shipment_emissions_air` service has additional input parameters 'planeType' and 'refrigerantFactor'
54+
-`forward_freight_shipment_emissions_sea` service has additional input parameter 'refrigerantFactor'
55+
56+
###Fixed
57+
- N/A (no fixes in this release).
58+
59+
###Deprecated
60+
- N/A (no deprecations in this release).
61+
62+
###Removed
63+
-`forward_freight_shipment_emissions_rail` and`reverse_freight_shipment_emissions_rail`services are removed from this version.
64+
3065
##[0.1.5] - 2025-03-25
3166

3267
###Added

‎README.md‎

Lines changed: 58 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1292,7 +1292,7 @@ freight_emissions_df = reverse_freight_shipment_emissions_rail(coordinates_df, p
12921292
display(freight_emissions_df.head())
12931293
```
12941294

1295-
#### CO2 Emissions Air
1295+
####ForwardCO2 Emissions Air
12961296
Calculating a CO2 footprint based on your shipments transported by air.
12971297

12981298
```python
@@ -1311,7 +1311,26 @@ freight_emissions_df = forward_freight_shipment_emissions_air(iata_codes_df, par
13111311
freight_emissions_df.head()
13121312
```
13131313

1314-
#### CO2 Emissions Sea
1314+
#### Reverse CO2 Emissions Air
1315+
Calculating a CO2 footprint based on your shipments transported by air.
1316+
1317+
```python
1318+
from pyloghub.freight_shipment_emissions_air import reverse_freight_shipment_emissions_air_sample_data, reverse_freight_shipment_emissions_air
1319+
1320+
sample_data =reverse_freight_shipment_emissions_air_sample_data()
1321+
coordinates_df = sample_data['coordinates']
1322+
parameters = sample_data['parameters']
1323+
1324+
save_scenario = sample_data['saveScenarioParameters']
1325+
save_scenario['saveScenario'] = True
1326+
save_scenario['workspaceId'] ="YOUR WORKSPACE ID"
1327+
save_scenario['scenarioName'] ="YOUR SCENARIO NAME"
1328+
1329+
freight_emissions_df = reverse_freight_shipment_emissions_air(coordinates_df, parameters, api_key, save_scenario, show_buttons=True)
1330+
freight_emissions_df.head()
1331+
```
1332+
1333+
#### Forward CO2 Emissions Sea
13151334
Calculating a CO2 footprint based on your shipments transported by sea.
13161335

13171336
```python
@@ -1330,6 +1349,43 @@ freight_emissions_df = forward_freight_shipment_emissions_sea(un_locodes_df, par
13301349
freight_emissions_df.head()
13311350
```
13321351

1352+
#### Reverse CO2 Emissions Sea
1353+
Calculating a CO2 footprint based on your shipments transported by sea.
1354+
1355+
```python
1356+
from pyloghub.freight_shipment_emissions_sea import reverse_freight_shipment_emissions_sea_sample_data, reverse_freight_shipment_emissions_sea
1357+
1358+
sample_data =reverse_freight_shipment_emissions_sea_sample_data()
1359+
coordinates_df = sample_data['coordinates']
1360+
parameters = sample_data['parameters']
1361+
1362+
save_scenario = sample_data['saveScenarioParameters']
1363+
save_scenario['saveScenario'] = True
1364+
save_scenario['workspaceId'] ="YOUR WORKSPACE ID"
1365+
save_scenario['scenarioName'] ="YOUR SCENARIO NAME"
1366+
1367+
freight_emissions_df = reverse_freight_shipment_emissions_sea(coordinates_df, parameters, api_key, save_scenario, show_buttons=True)
1368+
freight_emissions_df.head()
1369+
```
1370+
1371+
#### Reverse CO2 Emissions Inland Waterways
1372+
Calculating a CO2 footprint based on your shipments transported by inland waterways.
1373+
```python
1374+
from pyloghub.freight_shipment_emissions_river import reverse_freight_shipment_emissions_river_sample_data, reverse_freight_shipment_emissions_river
1375+
1376+
sample_data =reverse_freight_shipment_emissions_river_sample_data()
1377+
coordinates_df = sample_data['coordinates']
1378+
parameters = sample_data['parameters']
1379+
1380+
save_scenario = sample_data['saveScenarioParameters']
1381+
save_scenario['saveScenario'] = True
1382+
save_scenario['workspaceId'] ="YOUR WORKSPACE ID"
1383+
save_scenario['scenarioName'] ="YOUR SCENARIO NAME"
1384+
1385+
freight_emissions_df = reverse_freight_shipment_emissions_river(coordinates_df, parameters, api_key, save_scenario, show_buttons=True)
1386+
freight_emissions_df.head()
1387+
```
1388+
13331389
<p align="left">
13341390
<img src="examples\assets\demand_forecasting.png" alt="Demand Forecasting" width="980"/>
13351391
</p>

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp