Git Product home page Git Product logo

Comments (13)

sguo28 avatar sguo28 commented on September 2, 2024

I have uploaded sample data sets (e.g., cs_snap_unique.shp, cs_snap_unique.csv). However, those datasets can be safely removed due to limited functionality regarding this version.

from drop_simulator.

ZhiWeiCui avatar ZhiWeiCui commented on September 2, 2024

Thank you very much for your immediate reply.

I will continue to follow your project and look forward to a more detailed wiki.

My recent work on matching, repositioning and pricing in ride‐hailing.

from drop_simulator.

ZhiWeiCui avatar ZhiWeiCui commented on September 2, 2024

Error parsing parsed_routes.pkl

Traceback (most recent call last):
  File "/mnt/d/git/DROP_Simulator/code/train_loops.py", line 35, in <module>
    simulator.init(HEX_SHP_PATH, CS_SHP_PATH, TRIP_FILE, TRAVEL_TIME_FILE, NUM_NEAREST_CS)
  File "/mnt/d/git/DROP_Simulator/code/simulator/simulator_cnn.py", line 172, in init
    self.hex_routes=pickle.load(f)
_pickle.UnpicklingError: invalid load key, 'v'.

When I regenerated this data file via routes_interpolate.py, I found that all_routes.pkl does not exist.

Disturbed again!

from drop_simulator.

sguo28 avatar sguo28 commented on September 2, 2024

"all_routes.pkl" is not included in our simulator. You may try use ALL_HEX_ROUTE_FILE = '../data/parsed_routes.pkl' HEX_ROUTE_FILE = '../data/hex_routes.pkl' # the route between necessary pair of hex zone interchangeably to make it run.
You may start with "main_cnn.py".

from drop_simulator.

ZhiWeiCui avatar ZhiWeiCui commented on September 2, 2024

Thanks for your patient reply. Error parsing parsed_routes.pkl has been resolved by the method.

But unfortunately it says that another file is missing hex_diffusion.pkl.

  File "/mnt/d/DROP_Simulator/code/main_cnn.py", line 43, in <module>
    simulator.init(HEX_SHP_PATH, CS_SHP_PATH, TRIP_FILE, TRAVEL_TIME_FILE, NUM_NEAREST_CS)
  File "/mnt/d/DROP_Simulator/code/simulator/simulator_cnn.py", line 194, in init
    self.hex_diffusions = self.get_hex_diffusions(HEX_DIFFUSION_PATH, row_col_coords)
  File "/mnt/d/DROP_Simulator/code/simulator/simulator_cnn.py", line 130, in get_hex_diffusions
    with open(diff_file, "rb") as f:
FileNotFoundError: [Errno 2] No such file or directory: '../data/hex_diffusion.pkl

It would be great if a script to generate this data from the raw data could be provided !

from drop_simulator.

sguo28 avatar sguo28 commented on September 2, 2024

Hi, I tried to find the original file to generate the diffusion matrix. I will upload the original dataset once I find it. As an alternative, you can tentatively use the code below to bypass the error:
hex_diffusion={i: [0.1 for _ in range(1347)] for i in range(1347)}
where 1347 is the total number of hexagon cells in this simulator.

from drop_simulator.

ZhiWeiCui avatar ZhiWeiCui commented on September 2, 2024

I tried the solution you mentioned and still got the following error:

  File "/home/cuizhiwei/.vscode-server/extensions/ms-python.python-2022.8.0/pythonFiles/lib/python/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_vars.py", line 247, in eval_in_context
    result = eval(_expression_to_evaluate(expression), globals)
  File "<string>", line 1, in <module>
  File "<__array_function__ internals>", line 6, in concatenate
ValueError: all the input array dimensions for the concatenation axis must match exactly, but along dimension 2, the array at index 0 has size 54 and the array at index 1 has size 1

image

from drop_simulator.

sguo28 avatar sguo28 commented on September 2, 2024

Hi, we have uploaded all large files to OneDrive, which can be accessed here.

from drop_simulator.

WahabMam avatar WahabMam commented on September 2, 2024

Hello, sorry to bother you can you explain a little bit with details main files(which are more important), i have studies several times you good work, but still I have some confusion regarding your code.
thanks in advance!

from drop_simulator.

sguo28 avatar sguo28 commented on September 2, 2024

Hi, I'm willing to help. Can you specify your confusion?

from drop_simulator.

WahabMam avatar WahabMam commented on September 2, 2024

from drop_simulator.

sguo28 avatar sguo28 commented on September 2, 2024

You can start with running main_cnn.py. As we're extending this version to an electrified one, more details will be provided. Please stay tuned!

from drop_simulator.

WahabMam avatar WahabMam commented on September 2, 2024

from drop_simulator.

Related Issues (3)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.