Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
313 commits
Select commit Hold shift + click to select a range
1cc854f
fixed buffering network
haitamlaarabi Nov 15, 2024
8df110f
fix code
haitamlaarabi Nov 15, 2024
b63d590
now the script should update coordinates
haitamlaarabi Nov 16, 2024
bca91e6
adding optimized approach
haitamlaarabi Nov 16, 2024
44405cc
it's actually working now
haitamlaarabi Nov 16, 2024
8fc9e42
it works
haitamlaarabi Nov 16, 2024
3ed0998
cleaning code
haitamlaarabi Nov 16, 2024
8ac0e63
update r5 version
haitamlaarabi Nov 19, 2024
3d55f2c
now we cache snapped coordinates
haitamlaarabi Nov 19, 2024
9394194
any change
haitamlaarabi Jan 29, 2025
f4d1ba8
cosmetic changes
haitamlaarabi Feb 1, 2025
744b7ba
adding download_osm_network
haitamlaarabi Feb 4, 2025
1558a0f
new download osm script
haitamlaarabi Feb 4, 2025
001daf1
fixing weight restriction
haitamlaarabi Feb 4, 2025
cd0571d
fixing crs
haitamlaarabi Feb 4, 2025
4981b79
adding CRSConfig
haitamlaarabi Feb 4, 2025
aec84e1
fixing CRS
haitamlaarabi Feb 4, 2025
1d9cbf6
more fixes
haitamlaarabi Feb 4, 2025
1114bf6
it executes
haitamlaarabi Feb 4, 2025
9ab7597
seems to work, but not the projection
haitamlaarabi Feb 4, 2025
49cbfa2
updates
haitamlaarabi Feb 5, 2025
3ab689c
works
haitamlaarabi Feb 7, 2025
78fb295
wip
haitamlaarabi Feb 7, 2025
25089f2
works like charm
haitamlaarabi Feb 7, 2025
b5aba05
pbf file
haitamlaarabi Feb 7, 2025
3463466
update
haitamlaarabi Feb 7, 2025
50a591f
adding ferry links
haitamlaarabi Feb 8, 2025
c1fd807
updating frism to beam script
haitamlaarabi Feb 10, 2025
3c1251d
update save xm;
haitamlaarabi Feb 10, 2025
6c5ca35
update
haitamlaarabi Feb 10, 2025
22430a2
wip
haitamlaarabi Feb 11, 2025
20ef496
wip
haitamlaarabi Feb 11, 2025
f12f809
seems to be working
haitamlaarabi Feb 11, 2025
c6f0167
fixing oneway str
haitamlaarabi Feb 12, 2025
ba6b2cc
update
haitamlaarabi Feb 13, 2025
2a39146
update script
haitamlaarabi Feb 14, 2025
411b94c
update
haitamlaarabi Feb 14, 2025
b3835b8
update
haitamlaarabi Feb 14, 2025
8580949
1.0.beta.1
haitamlaarabi Feb 20, 2025
6f7d600
updae RunBeam to check paths
haitamlaarabi Feb 26, 2025
c0df367
testing paths
haitamlaarabi Feb 26, 2025
02fd20a
removing logging paths from RunBeam
haitamlaarabi Feb 26, 2025
f5c0f03
update network script
haitamlaarabi Feb 27, 2025
bd4b9fd
update
haitamlaarabi Feb 27, 2025
dc978d6
updating matsim version to 12.0-beam-9
haitamlaarabi Feb 27, 2025
a703316
fix attempt to java.util.NoSuchElementException: key not found: 16774…
haitamlaarabi Feb 27, 2025
1328840
adding exception management to dumpMatsimStuffAtTheBeginningOfSimulation
haitamlaarabi Feb 28, 2025
a271af8
if throwable then throw error instead of warn
haitamlaarabi Feb 28, 2025
678e1f0
from & to &&
haitamlaarabi Feb 28, 2025
2f2e4fe
adding payloads+crowdshipments
haitamlaarabi Feb 28, 2025
eaceafb
updating payloads+crowdshipments
haitamlaarabi Feb 28, 2025
d93c5dd
fix
haitamlaarabi Feb 28, 2025
964349c
temporary fix
haitamlaarabi Feb 28, 2025
198aa31
more fix to temp fix
haitamlaarabi Feb 28, 2025
9c34c79
fixing coordinates conversion in events
haitamlaarabi Feb 28, 2025
58b99e7
better check for whether a person has departed before giving up their…
zneedell Feb 28, 2025
cdaf407
test
haitamlaarabi Feb 28, 2025
16c856d
Note that ResourceCapacityExhausted replanning counts as withinTripRe…
zneedell Feb 28, 2025
b60b7e0
Add buffer after failed drive_transit trip
zneedell Feb 28, 2025
6302d5c
clean up
zneedell Feb 28, 2025
ffadeb5
Go back to checking for isWithinTripReplanning now that we set it to …
zneedell Feb 28, 2025
ae9bcfb
Merge branch 'freight-develop' of github.com:LBNL-UCB-STI/beam into f…
haitamlaarabi Feb 28, 2025
b4dfa7d
merging changes from Zach
haitamlaarabi Feb 28, 2025
7770a5f
adjustment to Zach's fix
haitamlaarabi Mar 1, 2025
b733912
wip
haitamlaarabi Mar 1, 2025
bf95959
search for fips column
haitamlaarabi Mar 1, 2025
924d2a6
update
haitamlaarabi Mar 5, 2025
3f43fe6
fix for missing legmode
zneedell Mar 7, 2025
b49ec6f
ignore null legs and activities
zneedell Mar 7, 2025
f5cc469
shifting to two level network generation
haitamlaarabi Mar 9, 2025
2eb58c1
Merge branch 'freight-develop' of github.com:LBNL-UCB-STI/beam into f…
haitamlaarabi Mar 9, 2025
cf6ae0e
fix latest, with bug
haitamlaarabi Mar 9, 2025
70ce771
it seems this code works better
haitamlaarabi Mar 9, 2025
c9fa88f
adding better buffering
haitamlaarabi Mar 10, 2025
3755e7c
ignore null legs and activities
zneedell Mar 7, 2025
6c42dfc
update build.gradle
zneedell Mar 10, 2025
e9b1c69
fix for missing travel time
zneedell Mar 10, 2025
f7077ef
fix for missing travel time
zneedell Mar 10, 2025
04886f9
processing ways
haitamlaarabi Mar 11, 2025
fca703a
this works for now
haitamlaarabi Mar 11, 2025
ca849dd
adding study_area_config
haitamlaarabi Mar 11, 2025
52d85eb
fixing projection issue
haitamlaarabi Mar 11, 2025
c47c687
more code fixing
haitamlaarabi Mar 11, 2025
9afe272
fix
haitamlaarabi Mar 11, 2025
62bc02e
fix
haitamlaarabi Mar 11, 2025
7ea04c6
test
haitamlaarabi Mar 11, 2025
7e8cda9
code refactoring
haitamlaarabi Mar 11, 2025
32258e5
okay, now it works
haitamlaarabi Mar 11, 2025
c91b324
script looks good
haitamlaarabi Mar 11, 2025
f011524
updating FRISM to plans
haitamlaarabi Mar 11, 2025
6c6fc68
fix
haitamlaarabi Mar 13, 2025
3a528ea
breaking down validation utils into multiple files
haitamlaarabi Mar 13, 2025
9743478
fix
haitamlaarabi Mar 13, 2025
4a7a2b7
some fixes
haitamlaarabi Mar 13, 2025
746f499
improving osm formatting
haitamlaarabi Mar 14, 2025
474e19b
updating processing tags
haitamlaarabi Mar 14, 2025
a2f9a73
fixing network generation
haitamlaarabi Mar 14, 2025
b3c4664
fixing script
haitamlaarabi Mar 14, 2025
c57d114
moving from tru/false to yes/no
haitamlaarabi Mar 14, 2025
6c0c496
integrating old osmnx save xml
haitamlaarabi Mar 14, 2025
fc009d5
update osm
haitamlaarabi Mar 14, 2025
fff510d
testing a fix
haitamlaarabi Mar 15, 2025
6b53f17
maybe works
haitamlaarabi Mar 15, 2025
60536de
adding map_link_to_isrm.py
haitamlaarabi Mar 16, 2025
c4d8abb
maybe working :/ ?
haitamlaarabi Mar 16, 2025
b3d3faa
handling runtime errors
haitamlaarabi Mar 16, 2025
4ed1fd7
process isrm network
haitamlaarabi Mar 16, 2025
fde0484
update
haitamlaarabi Mar 16, 2025
e6f6c47
it works
haitamlaarabi Mar 16, 2025
ce274fc
process isrm cleaned
haitamlaarabi Mar 16, 2025
7351edd
clean download osm
haitamlaarabi Mar 16, 2025
e262b0b
cleaning osm_utils
haitamlaarabi Mar 16, 2025
70bcc77
projection to utm for intersection
haitamlaarabi Mar 16, 2025
b7d61ab
almost done
haitamlaarabi Mar 16, 2025
836a453
removing null origid
haitamlaarabi Mar 16, 2025
808d5a1
Update ReplanningUtil.scala
wrashid Mar 18, 2025
d7ed75f
update network
haitamlaarabi Mar 18, 2025
a83d049
Merge branch 'freight-develop' of github.com:LBNL-UCB-STI/beam into f…
haitamlaarabi Mar 18, 2025
3740619
any non commited updates
haitamlaarabi Mar 19, 2025
aa3b05a
docker fix
zneedell Mar 19, 2025
69e9ba3
any change
haitamlaarabi Mar 20, 2025
fe8e397
fmt
haitamlaarabi Mar 20, 2025
e49955b
we generate now road dust rates
haitamlaarabi Mar 21, 2025
726c9bb
adding new files
haitamlaarabi Mar 21, 2025
e3b71d2
breaking down emissions functions
haitamlaarabi Mar 21, 2025
7814fb2
cleaning 1
haitamlaarabi Mar 22, 2025
9458bf8
update
haitamlaarabi Mar 22, 2025
97082b8
update
haitamlaarabi Mar 22, 2025
d1dd3b3
update
haitamlaarabi Mar 22, 2025
0a2e223
fix
haitamlaarabi Mar 22, 2025
1dea5e8
generating emissions scripts okay
haitamlaarabi Mar 23, 2025
1e52739
update
haitamlaarabi Mar 23, 2025
6a1854b
freight generation check
haitamlaarabi Mar 24, 2025
58b61e1
need to test pax ft integration
haitamlaarabi Mar 24, 2025
334681a
still buggy
haitamlaarabi Mar 24, 2025
6c5ff6c
this works
haitamlaarabi Mar 25, 2025
7ce35d8
adding emfac beam vmt
haitamlaarabi Mar 25, 2025
31adf31
update
haitamlaarabi Mar 25, 2025
a0c45e4
improve matching code
haitamlaarabi Mar 25, 2025
fde7499
emfac_beam_vmt matching done
haitamlaarabi Mar 25, 2025
fc34358
emfac and emissions rates processing
haitamlaarabi Mar 25, 2025
7e6b627
code optimization
haitamlaarabi Mar 25, 2025
82eb28a
adding progress bar
haitamlaarabi Mar 25, 2025
98234a6
script done
haitamlaarabi Mar 26, 2025
002775d
trimming
haitamlaarabi Mar 26, 2025
346b4ee
let's see if it works
haitamlaarabi Mar 26, 2025
01f3347
formatted and cleaned
haitamlaarabi Mar 26, 2025
0e26c8a
there are still bugs
haitamlaarabi Mar 26, 2025
a0c762e
latest changes, but still no working
haitamlaarabi Apr 1, 2025
e1ea54e
fixing ft generation
haitamlaarabi Apr 1, 2025
f2a707a
emissions rates seems to work yay
haitamlaarabi Apr 1, 2025
4658f10
add script
haitamlaarabi Apr 3, 2025
db50ec6
fix
haitamlaarabi Apr 4, 2025
bcf3b04
fix
haitamlaarabi Apr 4, 2025
de9b606
estimate operation duration
haitamlaarabi Apr 4, 2025
f43361b
update script
haitamlaarabi Apr 5, 2025
701b460
updating passenger mapping
haitamlaarabi Apr 8, 2025
d74c5e1
fix
haitamlaarabi Apr 8, 2025
329967c
changign paths
haitamlaarabi Apr 8, 2025
8d61e11
fixing paths
haitamlaarabi Apr 8, 2025
27f3dc0
fix this
haitamlaarabi Apr 8, 2025
fb6bf27
seems to be working so far
haitamlaarabi Apr 8, 2025
21fddcd
fixing state of charge
haitamlaarabi Apr 8, 2025
d0ccbcc
fix
haitamlaarabi Apr 8, 2025
0604988
merged
haitamlaarabi Apr 8, 2025
ca09179
fix income number processing
haitamlaarabi Apr 8, 2025
c7a88f1
adding atlas crosswalk
haitamlaarabi Apr 8, 2025
f61bbf3
fix
haitamlaarabi Apr 9, 2025
db60913
fix
haitamlaarabi Apr 9, 2025
62b1399
update code
haitamlaarabi Apr 9, 2025
3c3d210
atlas integration seems to work
haitamlaarabi Apr 9, 2025
1f2bb06
formatting done
haitamlaarabi Apr 9, 2025
bb28246
update
haitamlaarabi Apr 9, 2025
38b85d2
now we generated emissions rates by emfacId only
haitamlaarabi Apr 9, 2025
ab45ef1
update
haitamlaarabi Apr 9, 2025
8e2e98c
performance improvements in the router
zneedell Apr 10, 2025
071f97f
performance improvements in the router
zneedell Apr 10, 2025
4d97e50
lookup from linkstats using underlying array rather than linkId strin…
zneedell Apr 11, 2025
69f61dd
Merge branch 'zn/fill-skims-option' into HEAD
zneedell Apr 11, 2025
873f04e
stuckness fixes
zneedell Apr 11, 2025
643f83b
less strict check for retaining vehicle
zneedell Apr 11, 2025
e7cec29
missing file!
zneedell Apr 11, 2025
3699722
Merge branch 'zn/perf-improvements' into zn/fill-skims-expected-tt-merge
zneedell Apr 11, 2025
ad28347
fixes for missing return leg vehicles
zneedell Apr 11, 2025
0769d95
performance improvements in the router
zneedell Apr 10, 2025
07cee9b
performance improvements in the router
zneedell Apr 10, 2025
d7a0ade
lookup from linkstats using underlying array rather than linkId strin…
zneedell Apr 11, 2025
4141d55
missing file!
zneedell Apr 11, 2025
1731f55
cache closest edges to bounding box
zneedell Apr 11, 2025
ffd3677
cache closest edges to bounding box
zneedell Apr 11, 2025
75dbcef
Merge branch 'zn/develop-performance-improvements' into zn/fill-skims…
zneedell Apr 13, 2025
6db285b
vehicle tracking replanning fix
zneedell Apr 14, 2025
5aa75c6
fewer suboptimal minutes for drive access
zneedell Apr 14, 2025
5244f94
Turn off suboptimal for drive_transit
zneedell Apr 14, 2025
6e8671c
Merge remote-tracking branch 'refs/remotes/origin/hl/freight-parking-…
zneedell Apr 17, 2025
7ec5e39
merge & fmt
haitamlaarabi Apr 17, 2025
c798c8b
memory improvements
zneedell Apr 22, 2025
320d555
memory improvements
zneedell Apr 22, 2025
9e9dfee
merge fix
zneedell Apr 22, 2025
af453a4
replanning fix
zneedell Apr 23, 2025
cf3d238
another replanning fix
zneedell Apr 23, 2025
1536b87
another replanning fix, + documentation
zneedell Apr 23, 2025
84449c5
gotta try mode choice again
zneedell Apr 23, 2025
2eddd57
ugh bitwise &
zneedell Apr 23, 2025
251c996
last chance emergency walk trip
zneedell Apr 23, 2025
0f7ccb5
Don't just replan by getting back on the same bus you couldn't get on…
zneedell Apr 24, 2025
ec71a0c
Correctly define -> home trips
zneedell Apr 24, 2025
5446f6d
Merge remote-tracking branch 'refs/remotes/origin/zn/expected-travel-…
zneedell Apr 29, 2025
8c89098
merge fix -- additional attributes in parquet plans
zneedell Apr 29, 2025
d7d01a7
More subtle plans and vehicles fixes
zneedell Apr 29, 2025
4f9b864
Send some additional non-chosen trips to skimmer, keep better track o…
zneedell Apr 29, 2025
2a4f332
Don't allow agents to use vehicles from parent tours if they are park…
zneedell Apr 29, 2025
fe52541
router improvements
zneedell Apr 30, 2025
f5d9401
add buffer to drive transit too
zneedell May 1, 2025
025721c
optimal routing for drive_transit
zneedell May 1, 2025
d4a8065
make leg start time consistent
zneedell May 1, 2025
84fe12b
clean up logging
zneedell May 1, 2025
9ace821
improve VOT multiplier code
zneedell May 1, 2025
7b03bb2
additional replanning tweaks
zneedell May 1, 2025
003bb01
better fix for updating legs in passenger schedule
zneedell May 1, 2025
4a7805f
block certain modes after trip failure
zneedell May 2, 2025
826a433
can't modify passengerSchedule in place
zneedell May 2, 2025
2dc02e3
test fixes
zneedell May 8, 2025
2f8df91
plan reader fix
zneedell May 8, 2025
8ad76bf
fix test to deal with single vs double precision
zneedell May 9, 2025
6befd1c
use less memory in omx writer
zneedell May 14, 2025
2fa43f1
HOV mode transformer fix to bring back teleportation trips
zneedell May 14, 2025
b0dd9e6
handle empty string
zneedell May 15, 2025
4726224
Bugfix for catching teleportation trips. Also extract throwing mode c…
zneedell May 15, 2025
48367f0
more robust experienced plans writing
zneedell May 16, 2025
8c581e6
more tweaks for plans loading and writing
zneedell May 19, 2025
2b832ad
1) fix way late transit trip, and 2) better handling of denied boardi…
zneedell Jun 2, 2025
1017b3d
Add support for writing skims to .zarr rather than .omx format
zneedell Jun 3, 2025
2152a5d
fix for zarr writer
zneedell Jun 6, 2025
fd45a26
Fix for ridehail init
zneedell Jun 6, 2025
ed41c47
Update ParkingZoneFileUtils.parseTimeRestrictions regex and example i…
jlaz Jun 10, 2025
5bc2b56
Revert ParkingZoneFileUtils.parseTimeRestrictions regex
jlaz Jun 11, 2025
ea64703
adding commercial parking
haitamlaarabi Jun 11, 2025
a8b7746
Added AnyCategory => 0 to vehicleCategoryToWeightInKg
jlaz Jun 11, 2025
f4736ee
comemrcial parking fix
haitamlaarabi Jun 12, 2025
dccc993
Merge branch 'hl/freight-develop-fill-skims-expected-tt-merge' of git…
jlaz Jun 18, 2025
d769850
Removed AnyCategory => 0
jlaz Jun 18, 2025
1449e8a
fixing unrecorgnized parking activity
haitamlaarabi Jun 27, 2025
a9343ab
Merge branch 'hl/freight-develop-fill-skims-expected-tt-merge' of git…
haitamlaarabi Jun 27, 2025
2b2b865
additional fix
haitamlaarabi Jul 1, 2025
ce825e3
adding discretionary activities to parking activities
haitamlaarabi Jul 2, 2025
f2d4fd3
vmt
haitamlaarabi Jul 9, 2025
1405efc
debug
haitamlaarabi Jul 10, 2025
513dea9
script update
haitamlaarabi Jul 11, 2025
80fbba6
Merge branch 'hl/freight-develop-fill-skims-expected-tt-merge' into z…
zneedell Jul 14, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
61 changes: 49 additions & 12 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ plugins {
id 'com.bmuschko.docker-java-application' version '9.4.0'
id "cz.alenkacz.gradle.scalafmt" version "1.16.2"
id "java-library"
id 'scala'
}

apply plugin: 'java'
Expand All @@ -44,7 +45,8 @@ apply plugin: 'ManifestClasspath'
apply plugin: 'scalafmt'

group = 'beam'
version = '1.0.beta'
version = '1.0.beta.1'
version = '0.9.13-beta-v6'

description = """"""

Expand Down Expand Up @@ -145,13 +147,20 @@ configurations.all {
// we need this in order to get Elki library working fine.
force 'net.jafama:jafama:2.3.2'
// we need this in order to get Elki library working fine.
force 'it.unimi.dsi:fastutil:8.5.4'
force 'it.unimi.dsi:fastutil:8.5.12'

force 'org.apache.logging.log4j:log4j-core:2.15.0'
force 'org.apache.logging.log4j:log4j-api:2.15.0'
force 'org.apache.parquet:parquet-avro:1.12.3'
force 'org.apache.parquet:parquet-hadoop:1.12.3'
force 'org.apache.parquet:parquet-common:1.12.3'
force 'org.apache.parquet:parquet-column:1.12.3'
force 'org.apache.parquet:parquet-encoding:1.12.3'
}
exclude group: "log4j", module: "log4j"
exclude group: "org.matsim", module: "matsim"
exclude group: 'org.slf4j', module: 'slf4j-log4j12'
exclude group: 'org.slf4j', module: 'slf4j-reload4j'
}

dependencies {
Expand All @@ -167,6 +176,13 @@ dependencies {
implementation group: 'com.google.inject.extensions', name: 'guice-multibindings', version: '4.1.0'
implementation group: 'org.apache.commons', name: 'commons-collections4', version: '4.4'
implementation group: 'org.apache.commons', name: 'commons-math3', version: '3.6.1'
implementation 'org.apache.commons:commons-lang3:3.12.0'
implementation 'commons-io:commons-io:2.11.0'
implementation 'org.apache.commons:commons-csv:1.8'
implementation 'org.apache.commons:commons-text:1.10.0'
implementation 'commons-lang:commons-lang:2.6'
implementation 'org.glassfish:javax.el:3.0.0'
implementation 'javax.el:javax.el-api:3.0.0'
implementation group: 'org.apache.httpcomponents', name: 'fluent-hc', version: '4.5.13'

// Apache 2.0
Expand Down Expand Up @@ -208,7 +224,7 @@ dependencies {

implementation(group: 'org.matsim.contrib', name: 'decongestion', version: '12.0')

implementation(group: 'com.github.LBNL-UCB-STI.matsim', name: 'matsim', version: '12.0-beam-8') {
implementation(group: 'com.github.LBNL-UCB-STI.matsim', name: 'matsim', version: '12.0-beam-9') {
exclude group: 'log4j', module: 'log4j'
}

Expand All @@ -229,6 +245,8 @@ dependencies {
implementation("com.github.LBNL-UCB-STI:jsprit-wrapper:v0.5.1")
implementation("com.github.LBNL-UCB-STI:omx-java:v2.0.2")

implementation group: 'dev.zarr', name: 'jzarr', version: '0.4.2'

testImplementation group: 'junit', name: 'junit', version: '4.8'
testImplementation group: 'org.mockito', name: 'mockito-inline', version: '2.27.0'
testImplementation group: "org.mockito", name: "mockito-core", version: "2.28.2"
Expand Down Expand Up @@ -281,12 +299,12 @@ dependencies {
// https://mvnrepository.com/artifact/io.circe/circe-parser_2.12
implementation group: 'io.circe', name: "circe-parser_${scalaBinaryVersion}", version: circeBinaryVersion

implementation group: 'com.typesafe.play', name: "play-json_${scalaBinaryVersion}", version: '2.6.3'
implementation group: 'com.typesafe.play', name: "play-json_${scalaBinaryVersion}", version: '2.8.1'

implementation(group: 'com.github.romix.akka', name: "akka-kryo-serialization_${scalaBinaryVersion}", version: '0.5.2') {
exclude group: 'com.esotericsoftware', module: 'kryo'
}
implementation group: 'com.esotericsoftware', name: 'kryo', version: '4.0.2'
implementation group: 'com.esotericsoftware', name: 'kryo', version: '4.0.3'

implementation "com.github.vagmcs:optimus_${scalaBinaryVersion}:3.1.0"
implementation "com.github.vagmcs:optimus-solver-oj_${scalaBinaryVersion}:3.1.0"
Expand Down Expand Up @@ -328,16 +346,19 @@ dependencies {
implementation group: 'com.zaxxer', name: 'nuprocess', version: '1.2.4'

def parquet = "1.12.3"
implementation group: 'org.apache.parquet', name: 'parquet-hadoop', version: parquet
implementation group: 'org.apache.parquet', name: 'parquet-avro', version: parquet
implementation(group: 'org.apache.hadoop', name: 'hadoop-client', version: '2.7.3') {
exclude group: 'org.slf4j', module: 'slf4j-log4j12'
// Parquet dependencies with shading
implementation 'org.apache.parquet:parquet-avro:1.12.3'
implementation 'org.apache.parquet:parquet-hadoop:1.12.3'
implementation 'org.apache.hadoop:hadoop-common:3.3.4'
implementation 'org.apache.hadoop:hadoop-mapreduce-client-core:3.3.4'
implementation('org.apache.hadoop:hadoop-client:3.3.6') {
// Exclude `ASM` because it is binary incompatible with the one which is gotten from `com.conveyal:kryo-tools`: `org.ow2.asm:asm:5.0.4`
exclude group: 'asm', module: 'asm'
// Exclude jsp-api because it contains an older version of javax.el (Expression Language) which is incompatible
// with one that Hibernate-validator uses
exclude group: 'javax.servlet.jsp', module: 'jsp-api'
}
implementation 'it.unimi.dsi:fastutil:8.5.12'

implementation(group: 'com.lihaoyi', name: "sourcecode_${scalaBinaryVersion}", version: '0.1.9')

Expand Down Expand Up @@ -792,6 +813,9 @@ tasks.register('createDockerfile', Dockerfile) {
addFile 'entrypoint.sh', 'entrypoint.sh'
runCommand('chmod +x /app/entrypoint.sh')
entryPoint('/app/entrypoint.sh')

mainClassName = 'beam.sim.RunBeam' // Replace with the desired main class

}

ext.getDockerTag = { ->
Expand All @@ -816,17 +840,30 @@ ext.getDockerRepository = { ->
}
}

tasks.register('buildImageWithoutTags', DockerBuildImage) { dependsOn createDockerfile }
tasks.register('buildImageWithoutTags', DockerBuildImage) {
dependsOn createDockerfile
platform = 'linux/amd64'
}

// one can build a docker image with command ./gradlew -Ptag=beammodel/beam:0.9.12 buildImage
tasks.register('buildImage', DockerTagImage) {
description 'Builds the Docker BEAM image, all code and test data are included into the image.'
group 'Docker'
group 'Docker '

dependsOn buildImageWithoutTags

// Ensure platform compatibility
inputs.property("platform", "linux/amd64")

tag = getDockerTag()
repository = getDockerRepository()
println("The new image will be tagged '$getDockerRepository:$getDockerTag'. To change use 'tag' project parameter, i.e. '-Ptag=<value>'")
targetImageId buildImageWithoutTags.getImageId()
}

// Force OCI format compatibility
doFirst {
if (!project.hasProperty('tag')) {
throw new GradleException("Please specify a tag using -Ptag=repository:version")
}
}
}
4 changes: 1 addition & 3 deletions gcp/src/main/python/createImage/requirements.txt
Git LFS file not shown
4 changes: 1 addition & 3 deletions gcp/src/main/python/createSnapshot/requirements.txt
Git LFS file not shown
4 changes: 1 addition & 3 deletions gcp/src/main/python/delete-snapshot/requirements.txt
Git LFS file not shown
4 changes: 1 addition & 3 deletions gcp/src/main/python/deploy_beam/requirements.txt
Git LFS file not shown
4 changes: 1 addition & 3 deletions gcp/src/main/python/notify_idle/requirements.txt
Git LFS file not shown
5 changes: 2 additions & 3 deletions gcp/src/main/python/update-base-image/requirements.txt
Git LFS file not shown
Git LFS file not shown
2 changes: 1 addition & 1 deletion production/seattle
Submodule seattle updated 130 files
2 changes: 1 addition & 1 deletion production/sfbay
Submodule sfbay updated 9000 files
48 changes: 27 additions & 21 deletions src/main/R/freight/freight-processing.R
Original file line number Diff line number Diff line change
Expand Up @@ -30,40 +30,46 @@ isCav <- function(x) {
return(x >= 4)
}

### Test
# work_folder <- normalizePath("~/Workspace/Data/Scenarios/sfbay/validation_data/BEAM")
# speed <- readCsv(pp(work_folder, "/sfbay_residential_simpl_network.csv.gz"))
# ggplot(speed, aes(x=speed_beam-speed_npmrds)) + geom_histogram() + xlim(0, 100)


# emission
emfac_sf_file <- normalizePath('~/Workspace/Models/emfac/2018/SF_2018_Annual_fleet_data_population_20240311153419.csv')
emfac_sf <- readCsv(emfac_sf_file)
emfac_sf_normalized <- emfac_sf[,.(sum_population=(sum(population))),by=.(vehicle_class, fuel)]
emfac_sf_normalized$share_population <- emfac_sf_normalized$sum_population/sum(emfac_sf_normalized$sum_population)
# emfac_sf_file <- normalizePath('~/Workspace/Models/emfac/2018/SF_2018_Annual_fleet_data_population_20240311153419.csv')
# emfac_sf <- readCsv(emfac_sf_file)
# emfac_sf_normalized <- emfac_sf[,.(sum_population=(sum(population))),by=.(vehicle_class, fuel)]
# emfac_sf_normalized$share_population <- emfac_sf_normalized$sum_population/sum(emfac_sf_normalized$sum_population)

###

# Create a sample data frame
data <- data.frame(
Name = c("John", "Jane", "Bob", "Alice", "John", "Jane", "Bob", "Alice"),
Age = c(25, 30, 35, 40, 27, 32, 38, 42),
City = c("New York", "London", "Paris", "Tokyo", "New York", "London", "Paris", "Tokyo"),
Gender = c("M", "F", "M", "F", "M", "F", "M", "F")
)
# data <- data.frame(
# Name = c("John", "Jane", "Bob", "Alice", "John", "Jane", "Bob", "Alice"),
# Age = c(25, 30, 35, 40, 27, 32, 38, 42),
# City = c("New York", "London", "Paris", "Tokyo", "New York", "London", "Paris", "Tokyo"),
# Gender = c("M", "F", "M", "F", "M", "F", "M", "F")
# )

# Load the required packages
library(dplyr)
library(stringr)
# library(dplyr)
# library(stringr)

# Group the data frame by 'City' and 'Gender', and concatenate 'Name' into a new column
grouped <- data %>%
group_by(City, Gender) %>%
summarise(Names = str_c(Name, collapse = ", "))

print(grouped)
# grouped <- data %>%
# group_by(City, Gender) %>%
# summarise(Names = str_c(Name, collapse = ", "))
#
# print(grouped)

### RouteE

work_folder <- normalizePath("~/Workspace/Data/FREIGHT/seattle")
household <- readCsv(pp(work_folder, "/households.csv.gz"))
ggplot(household, aes(x=income/1000)) + geom_histogram() + xlim(0, 100)
# work_folder <- normalizePath("~/Workspace/Data/FREIGHT/seattle")
# household <- readCsv(pp(work_folder, "/households.csv.gz"))
# ggplot(household, aes(x=income/1000)) + geom_histogram() + xlim(0, 100)


##
work_folder <- normalizePath("~/Workspace/Data/FREIGHT/seattle")
geo <- geojson_sf(pp(work_folder, "/validation/npmrds/Seattle_counties.geojson"))

Expand Down
1 change: 1 addition & 0 deletions src/main/R/freight/freight-smart2-plotting.R
Original file line number Diff line number Diff line change
Expand Up @@ -356,6 +356,7 @@ dgb2b_runs <-
demand_growth_runs_dir,
"all_b2b_growth"
)
dgb2b_runs_2018 <- readCsv(pp(demand_growth_runs_dir,"2018_base/0.events.csv.gz"))
dgb2b_runs <- format_path_traversals(dgb2b_runs)

dgb2b_summary <- dgb2b_runs[,
Expand Down
Loading