Dustin Carlino
a25751ea43
add more sanity checks for schedules, because every other map is
...
crashing
and fix the problem -- SpawnTrip -> TripSpec MUST succeed. auto-abort
some trips, to still warp the person to the right spot.
2020-04-23 13:20:25 -07:00
Dustin Carlino
6ef3a180a3
start to simplify the dynamic nabbing of parked cars
2020-04-22 14:39:02 -07:00
Dustin Carlino
2a98f4ea27
Person now has a fixed pedestrian, car, and bike ID. <start massive breakage>
2020-04-22 09:43:03 -07:00
Dustin Carlino
a39d19f36a
remove the tiny fraction of people with non-continuous schedules from
...
the PSRC scenarios
2020-04-20 17:55:26 -07:00
Dustin Carlino
0574d4316c
add some stuff to match people in scenarios with the raw input
2020-04-20 16:52:54 -07:00
Dustin Carlino
8b975f5083
validation was wrong, and also panicking is bad right now
2020-04-20 16:12:09 -07:00
Dustin Carlino
d80513235d
defer choosing a starting lane for borders in scenarios, to respond to lane edits
2020-04-19 10:51:23 -07:00
Dustin Carlino
35c193eebc
associated parked cars with people, not buildings
...
pt1: scenario layer
2020-04-15 15:01:49 -07:00
Dustin Carlino
70875d104d
Scenario should just have specific trips. split a different structure for generating Scenarios. has the happy side effect of removing lots of weird old spawning code, duplicated checks
2020-04-01 13:50:36 -07:00
Dustin Carlino
bf8c35788b
moving popdat+precompute into the new unified importer
2020-03-26 10:26:01 -07:00
Dustin Carlino
41ce8fe8f3
force trips per person to be time ordered
2020-03-18 14:01:03 -07:00
Dustin Carlino
0bcbac1fee
upgrade a few misc packages
2020-03-17 10:35:37 -07:00
Dustin Carlino
fa013f70d4
woops, have to skip the gdal dependency in wasm
2020-03-15 14:20:05 -07:00
Dustin Carlino
41f37f666c
switch popdat from cs2cs binary to gdal bindings. cleaner and will likely need gdal for elevation data anyway. also fix synthetic maps, which i accidentally broke few days ago with elevation
2020-03-15 12:34:23 -07:00
Dustin Carlino
87e9431f91
rearrange people/trips in the Scenario layer
2020-03-12 15:38:58 -07:00
Dustin Carlino
b835f8a6f7
unused deps
2020-03-06 08:27:00 -08:00
Dustin Carlino
bd2cb6ddd1
first steps towards representing people, not just trips
2020-03-05 17:28:57 -08:00
Dustin Carlino
f97918ff04
fixing the bug with grouping PSRC trips by unique person -- thanks to
...
folks at PSRC for helping track this down
2020-03-05 11:19:32 -08:00
Dustin Carlino
7407e5778f
some investigation into psrc tour segments again
2020-03-02 15:50:32 -08:00
Dustin Carlino
682668d4f6
use named csv fields in psrc parser. group trips by person in popdat layer, discovering that almost no people have multiple trips...
2020-02-05 11:22:56 -08:00
Dustin Carlino
f4c6b4453a
scrape info from PSRC to relate trips to people. not plumbed into
...
scenario layer yet.
2020-02-04 19:54:13 -08:00
Dustin Carlino
07995fb060
starting a tutorial for bus lanes too
2020-01-27 12:38:51 -08:00
Dustin Carlino
95a84fd26a
tweaking rustfmt options; the long literal string vecs in tutorial look awful
2020-01-21 15:20:02 -08:00
Dustin Carlino
ca6b81099c
rename scenarios to be less confusing
2020-01-19 14:39:46 -08:00
Dustin Carlino
dc2cc81249
make Timer methods and ModalMenu take &str or String
2019-12-12 10:25:48 -08:00
Dustin Carlino
89a3d1cf5f
one generic prebake method to rule them all
2019-12-06 13:45:15 -08:00
Dustin Carlino
72c68aa320
remove old census popdat stuff
2019-12-03 11:42:02 -08:00
Dustin Carlino
a043a9ba05
clean up more of abstutil path/filesystem API
2019-12-03 09:59:43 -08:00
Dustin Carlino
720f9b8b30
similar for writing
2019-12-02 20:41:09 -08:00
Dustin Carlino
808c3da141
panic early with a nice error if we cant read a binary or json file
2019-12-02 20:35:20 -08:00
Dustin Carlino
c6bfab7cde
cutover scenrio-layer stuff to use Time
2019-11-27 12:50:52 -08:00
Dustin Carlino
e3ddd5b3db
new release
2019-11-25 15:37:47 -08:00
Max Shenfield
f89bdbab86
Fix cs2cs call when generating popdat.bin ( #5 )
...
* Fix cs2cs call when generating popdat.bin
I got the following error when running `cs2cs`
```
cannot instantiate source coordinate system
program abnormally terminated
```
[The "+init=esri:1234" syntax is deprecated](https://pyproj4.github.io/pyproj/dev/gotchas.html#init-auth-auth-code-should-be-replaced-with-auth-auth-code ). This just uses
the new "esri:1234" syntax, which runs on Mac OSx.
* Also update the corresponding command comment
2019-11-24 08:02:13 -08:00
Dustin Carlino
22397b93a7
NOW ban bikes from motorways. popdat trip filtering needed to handle
...
some impossible-to-fulfill requests involving borders
2019-11-15 10:48:33 -08:00
Dustin Carlino
f73e0c15af
clean up dupe logic in popdat for figuring out path from a trip. instead just repeat the main path used in simulation layer
2019-11-15 10:32:49 -08:00
Dustin Carlino
59913d79e9
also switch some border-related methods to use PathConstraints
2019-11-14 20:37:03 -08:00
Dustin Carlino
4c9975f8b0
be a little more precise with PathRequest
2019-11-14 19:18:22 -08:00
Dustin Carlino
6a5b312a07
same for correct end lanes
2019-11-07 16:32:26 -08:00
Dustin Carlino
8d32671834
dont spawn buses by default in scenarios
2019-11-04 09:59:52 -08:00
Dustin Carlino
1a4cf8c1a0
fix crash in all trip viz. path request might not even be possible
2019-10-26 10:29:44 -07:00
Dustin Carlino
299b5bb77f
remove old functionality for creating only partial PSRC scenarios.
...
rename the main scenario to be much more enticing
2019-10-23 08:04:55 -07:00
Dustin Carlino
d6a9e0e541
just one copy of the code to calculate parked car seeding per bldg, in popdat. remove variant in scenario manager
2019-10-18 11:47:03 -07:00
Dustin Carlino
85ff33e72d
basic, but working, impl of cars lane-changing opportunistically
2019-10-13 14:30:20 -07:00
Dustin Carlino
ad67027250
tweak psrc scenario name, so savestates are easier to use on the CLI
2019-09-28 16:39:44 -07:00
Dustin Carlino
80106eb3d5
script psrc import
2019-09-28 10:44:46 -07:00
Dustin Carlino
fbb7d8ac96
cleaning up CmdArgs usage
2019-09-19 10:42:16 -07:00
Dustin Carlino
62d1777433
getting rid of structopt in more crates
2019-09-18 16:50:32 -07:00
Dustin Carlino
caaf0954ab
rename the main editor crate to game -- map editing is just a tiny piece ;)
2019-09-07 13:09:09 -07:00
Dustin Carlino
cf7d847f32
some of the plumbing to make psrc trips dynamically use a parked car, when possible. very
...
complicated impl. should blow up when one of these trips actually
starts.
2019-09-05 13:01:46 -07:00
Dustin Carlino
048976a256
spawn a specific number of parked cars per bldg for a scenario. dont use
...
them yet.
2019-09-05 09:45:02 -07:00