From de05eb599f80909794f7deb74527b2c05b40102f Mon Sep 17 00:00:00 2001 From: Matt Bhagat-Conway Date: Fri, 6 Sep 2024 18:54:42 -0400 Subject: [PATCH 1/3] [unc-ebike] add new survey and labels --- configs/unc-ebike.nrel-op.json | 7 +- label_options/unc-ebike-label-options.json | 100 ++++++++++++++++++ survey_resources/unc-ebike/onboarding-v1.xlsx | Bin 0 -> 10049 bytes survey_resources/unc-ebike/onboarding-v1.xml | 1 + 4 files changed, 105 insertions(+), 3 deletions(-) create mode 100644 label_options/unc-ebike-label-options.json create mode 100644 survey_resources/unc-ebike/onboarding-v1.xlsx create mode 100644 survey_resources/unc-ebike/onboarding-v1.xml diff --git a/configs/unc-ebike.nrel-op.json b/configs/unc-ebike.nrel-op.json index 318aead..ac8f737 100644 --- a/configs/unc-ebike.nrel-op.json +++ b/configs/unc-ebike.nrel-op.json @@ -1,7 +1,7 @@ { "url_abbreviation": "unc-ebike", - "version": 1, - "ts": 1719593268395, + "version": 2, + "ts": 1725639256133, "server": { "connectUrl": "https://unc-ebike-openpath.nrel.gov/api/", "aggregate_call_auth": "user_only" @@ -54,7 +54,7 @@ "survey_info": { "surveys": { "UserProfileSurvey": { - "formPath": "json/demo-survey-v2.json", + "formPath": "https://raw.githubusercontent.com/e-mission/nrel-openpath-deploy-configs/main/survey_resources/unc-ebike/onboarding-v1.xml", "version": 1, "compatibleWith": 1, "dataKey": "manual/demographic_survey", @@ -66,6 +66,7 @@ }, "trip-labels": "MULTILABEL" }, + "label_options": "https://raw.githubusercontent.com/e-mission/nrel-openpath-deploy-configs/main/label_options/unc-ebike-label-options.json", "display_config": { "use_imperial": true }, diff --git a/label_options/unc-ebike-label-options.json b/label_options/unc-ebike-label-options.json new file mode 100644 index 0000000..01670b9 --- /dev/null +++ b/label_options/unc-ebike-label-options.json @@ -0,0 +1,100 @@ +{ + "MODE": [ + {"value": "car", "baseMode": "CAR", "met_equivalent": "IN_VEHICLE", "kgCo2PerKm": 0.22031}, + {"value": "walk", "baseMode":"WALKING", "met_equivalent":"WALKING", "kgCo2PerKm": 0}, + {"value": "ebike", "baseMode":"E_BIKE", "met": {"ALL": {"range": [0, -1], "mets": 4.9}}, "kgCo2PerKm": 0.00728}, + {"value": "bike", "baseMode":"BICYCLING", "met_equivalent":"BICYCLING", "kgCo2PerKm": 0}, + {"value": "bus", "baseMode": "BUS", "met_equivalent": "IN_VEHICLE", "kgCo2PerKm": 0.20727}, + {"value": "taxi", "baseMode":"TAXI", "met_equivalent":"IN_VEHICLE", "kgCo2PerKm": 0.30741}, + {"value": "ridehail", "baseMode":"TAXI", "met_equivalent":"IN_VEHICLE", "kgCo2PerKm": 0.30741}, + {"value": "train", "baseMode": "TRAIN", "met_equivalent":"IN_VEHICLE", "kgCo2PerKm": 0.12256}, + {"value": "air", "baseMode":"AIR", "met_equivalent":"IN_VEHICLE", "kgCo2PerKm": 0.09975}, + {"value": "not_a_trip", "baseMode":"UNKNOWN", "met_equivalent":"UNKNOWN", "kgCo2PerKm": 0}, + {"value": "other", "baseMode":"OTHER", "met_equivalent":"UNKNOWN", "kgCo2PerKm": 0} + ], + "PURPOSE": [ + {"value": "home"}, + {"value": "work"}, + {"value": "school"}, + {"value": "shopping"}, + {"value": "medical"}, + {"value": "friends_family"}, + {"value": "religious"}, + {"value": "restaurant"}, + {"value": "entertainment"}, + {"value": "recreation"}, + {"value": "pudo"}, + {"value": "accbus"}, + {"value": "acctrainair"}, + {"value": "other"} + ], + "REPLACED_MODE": [ + {"value": "no_travel"}, + {"value": "car"}, + {"value": "walk"}, + {"value": "e-bike"}, + {"value": "bike"}, + {"value": "bus"}, + {"value": "taxi"}, + {"value": "ridehail"}, + {"value": "train"}, + {"value": "air"}, + {"value": "other"} + ], + "translations": { + "en": { + "car": "Car", + "walk": "Walk", + "bike": "Regular bike", + "ebike": "E-bike", + "bus": "Bus", + "taxi": "Taxi", + "ridehail": "Uber / Lyft", + "train": "Train / Amtrak", + "air": "Airplane", + "not_a_trip": "Not a trip", + "other": "Other", + "home": "Home", + "work": "Work", + "school": "School", + "shopping": "Shopping", + "medical": "Medical", + "friends_family": "Visiting friends or family", + "religious": "Church or house of worship", + "restaurant": "Restaurant", + "entertainment": "Entertainment, sightseeing, etc.", + "recreation": "Recreation / exercise", + "pudo": "Pick up / drop off a person", + "accbus": "Get to / from bus stop", + "acctrainair": "Get to / from train station or airport", + "no_travel": "Would not have made trip" + }, + "es": { + "car": "Car", + "walk": "Walk", + "bike": "Regular bike", + "ebike": "E-bike", + "bus": "Bus", + "taxi": "Taxi", + "ridehail": "Uber / Lyft", + "train": "Train / Amtrak", + "air": "Airplane", + "not_a_trip": "Not a trip", + "other": "Other", + "home": "Home", + "work": "Work", + "school": "School", + "shopping": "Shopping", + "medical": "Medical", + "friends_family": "Visiting friends or family", + "religious": "Church or house of worship", + "restaurant": "Restaurant", + "entertainment": "Entertainment, sightseeing, etc.", + "recreation": "Recreation / exercise", + "pudo": "Pick up / drop off a person", + "accbus": "Get to / from bus stop", + "acctrainair": "Get to / from train station or airport", + "no_travel": "Would not have made trip" + } + } + } \ No newline at end of file diff --git a/survey_resources/unc-ebike/onboarding-v1.xlsx b/survey_resources/unc-ebike/onboarding-v1.xlsx new file mode 100644 index 0000000000000000000000000000000000000000..22d1f59d93b7ddb0513d66f47a73d233f423fe91 GIT binary patch literal 10049 zcmeHNWmFt%wnc-xTX2HAI|=S?2~Okg4#6R~G){1b0Kq*F8g~dDXo3b0!9(*pnLF>^ z$=vtz{hFyCRjb$Pb5_+?d!MswpHE#09swWb2@Em}3=B04F7fAeOIR2fVni4iJQ!rS zmoJ>1JOEA}CfdF(0CyvHA4dnOA_O?b0vI^x|NndZ2d}`#v?-^4PIS;|>J_F=ofg?9 zrwU%g0EAqiqycG|^abrKT`Wde>svC@>@v)7$(2$KvitiWR|~A6Ly#3qv`rU_Oz(aS z`m3F0*9*-qwYL`{$<$2c>6e&_4Y2rMW-b?8I#5DLtVLL5RPawqKUPJ`nt|a3KWE)8 zF>WmiW=QFv@gW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UC%Ne8?^!%DWw&s;o#oTQT??K7WduPhyISK zI}Oa;&eO7tSw)P<$w(b80B?Db$fLmMdZtX}z%9)EMR=UNf&YMrfg1`6~5t&MB->Fs?kP?QCF~Jwbu@+1y$2o9{y# z1j3Hmd!_<-U*xzA;-ZNpft%H8X%Bzf-(+pnWPngC3P4>T?7w2s%*ExuP=qeoA4hJg ziv8M82P^`DRP3)i*%ID3j0%`bdGUhCD>YZgw~H{DzBr5T5OSB`xaE`cqOkSW$M@1k zR+&%zk)X}k)z>0A%JI~ya~hy3H^P%5F+Obhx{DvO{aI9L>c-9Q3p2?DC?4L~ zk{tI%sYUewOlx~uYP~;UZ)i#g=Fos*8<8xG3Zgx)jvYR*w5Kucu7!!w%XLqtzbdnH zj*nuaEM)nDlNP{I;mA#8jU@N<%(|H;1|lQMt=xr&nXifT zkmAhH?78jPYfU-y0Y5meGhW61`Bc2n9k?G&yd}!V8rfJb&_Mfsg^tlzNU{rxthf4;ka zUjJs((eDZVbt}X_1Akugpal8L#)#hoe;*J38QKq3j=v3ye-HlG`O}}FFfjS3zk>gd zY1Hp|exFACnQ00Ae{bU7W)r_>`P~%$GfM{4DF2%Y$1jWc_bk6VWPfIv#{HG$cfaiS z1ivfqKNGZ*{z~wt4*xy$cY*U~XgtL~LVuS#zi0T@7X4>D^dkW3m;PJB{yqF(tLk6F ev#9?P{zr{fS3-nhdemographic-surveyiPhoneAndroidDon't knowOtherWhat type of smartphone do you have?iPhoneAndroidNo lo séOtro tipo¿Que tipo de teléfono inteligente usted tiene?smartphone-0iphonesmartphone-1androidsmartphone-2dontknowsmartphone-3other \ No newline at end of file From 47c3dccda9084542094a6a01c292c33329f03043 Mon Sep 17 00:00:00 2001 From: Matt Bhagat-Conway Date: Sat, 7 Sep 2024 09:37:21 -0400 Subject: [PATCH 2/3] [unc-ebike] correct mode studied --- configs/unc-ebike.nrel-op.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configs/unc-ebike.nrel-op.json b/configs/unc-ebike.nrel-op.json index ac8f737..a451193 100644 --- a/configs/unc-ebike.nrel-op.json +++ b/configs/unc-ebike.nrel-op.json @@ -17,7 +17,7 @@ "program_or_study": "program", "start_month": "08", "start_year": "2024", - "mode_studied": "e-bike", + "mode_studied": "ebike", "program_admin_contact": "Matt Bhagat-Conway, UNC (email: mwbc@unc.edu)", "deployment_partner_name": "University of North Carolina at Chapel Hill", "translated_text": { From a52a8f54af31d959412ce239a2eca418f2626e7d Mon Sep 17 00:00:00 2001 From: Matt Bhagat-Conway Date: Sat, 7 Sep 2024 09:38:02 -0400 Subject: [PATCH 3/3] [unc-ebike] don't autogen opcodes --- configs/unc-ebike.nrel-op.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configs/unc-ebike.nrel-op.json b/configs/unc-ebike.nrel-op.json index a451193..8d92244 100644 --- a/configs/unc-ebike.nrel-op.json +++ b/configs/unc-ebike.nrel-op.json @@ -7,7 +7,7 @@ "aggregate_call_auth": "user_only" }, "opcode": { - "autogen": true, + "autogen": false, "subgroups": [ "test", "default"