Spaces:
Sleeping

dn commited on
Commit
1f930eb
·
1 Parent(s): 9dfcd18

add instructions for sb79

Browse files
Files changed (1) hide show
  1. notebooks/sb79map.py +12 -1
notebooks/sb79map.py CHANGED
@@ -893,6 +893,16 @@ with app.setup(hide_code=True):
893
  )
894
 
895
 
 
 
 
 
 
 
 
 
 
 
896
  @app.cell(hide_code=True)
897
  def _():
898
  file_input = mo.ui.file(
@@ -903,7 +913,6 @@ def _():
903
  url_input = mo.ui.text(
904
  label="Or paste a URL to a GTFS zip",
905
  placeholder="https://example.com/gtfs.zip",
906
- value="https://github.com/dknomura/missing_metro/raw/refs/heads/main/notebooks/public/oc-streetcar_gtfs.zip",
907
  )
908
 
909
  mo.hstack([file_input, url_input], justify="start")
@@ -913,6 +922,8 @@ def _():
913
  @app.cell
914
  def _(file_input, url_input):
915
  # --- React to user input ---
 
 
916
  def get_gtfs_bytes() -> bytes | None:
917
  """Return GTFS bytes from whichever input the user used."""
918
  if file_input.value:
 
893
  )
894
 
895
 
896
+ @app.cell(hide_code=True)
897
+ def _():
898
+ mo.md("""
899
+ # Instructions for GTFS SB-79 analysis:
900
+ 1. If you do not have your own GTFS zip file [click here](https://github.com/dknomura/missing_metro/raw/refs/heads/main/notebooks/public/oc-streetcar_gtfs.zip) to download the GTFS zip for the OC streetcar
901
+ 2. GTFS file needs to be for a transit system in the SCAG region (LA, Orange, Riverside, San Bernardino, Ventura).
902
+ """) # noqa: E501
903
+ return
904
+
905
+
906
  @app.cell(hide_code=True)
907
  def _():
908
  file_input = mo.ui.file(
 
913
  url_input = mo.ui.text(
914
  label="Or paste a URL to a GTFS zip",
915
  placeholder="https://example.com/gtfs.zip",
 
916
  )
917
 
918
  mo.hstack([file_input, url_input], justify="start")
 
922
  @app.cell
923
  def _(file_input, url_input):
924
  # --- React to user input ---
925
+ mo.stop(not file_input.value, mo.md("⬆️ Upload a GTFS zip to continue"))
926
+
927
  def get_gtfs_bytes() -> bytes | None:
928
  """Return GTFS bytes from whichever input the user used."""
929
  if file_input.value: