Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in tutorials #43

Open
LaurensKrudde opened this issue Feb 5, 2024 · 0 comments
Open

Error in tutorials #43

LaurensKrudde opened this issue Feb 5, 2024 · 0 comments

Comments

@LaurensKrudde
Copy link

The tutorial 00_MaaSSim_at_glance.ipynb gives an error:

05-02-24 10:11:15-WARNING-Setting up 4h simulation at 2024-02-05 09:21:50 for 2 vehicles and 5 passengers in Nootdorp, Netherlands
05-02-24 10:11:15-INFO--------------------	Starting simulation	-------------------
---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
[c:\Users\z004w6wr\Documents\MaaSSim\MaaSSim\driver.py](file:///C:/Users/z004w6wr/Documents/MaaSSim/MaaSSim/driver.py) in loop_day(self)
    127                 self.update(event=driverEvent.REPOSITIONED, pos=repos.pos)
--> 128             self.platform.appendVeh(self.id)  # appended for the queue
    129             yield self.requested | self.sim.timeout(self.till_end())  # wait until requested or shift end

[c:\Users\z004w6wr\Documents\MaaSSim\MaaSSim\platform.py](file:///C:/Users/z004w6wr/Documents/MaaSSim/MaaSSim/platform.py) in appendVeh(self, veh)
    107         self.vehQ.append(veh)
--> 108         self.trigger_event()
    109 

[c:\Users\z004w6wr\Documents\MaaSSim\MaaSSim\platform.py](file:///C:/Users/z004w6wr/Documents/MaaSSim/MaaSSim/platform.py) in trigger_event(self)
    113             with self.resource.request() as req:
--> 114                 self.f_match(platform=self)
    115                 self.resource.release(req)

[c:\Users\z004w6wr\Documents\MaaSSim\MaaSSim\decisions.py](file:///C:/Users/z004w6wr/Documents/MaaSSim/MaaSSim/decisions.py) in f_match(**kwargs)
    204 
--> 205         request, sim = pool_price_fun(sim, veh, request, sim.params.shareability)
    206         #print('Vehicle id =', veh_id)

[c:\Users\z004w6wr\Documents\MaaSSim\MaaSSim\pool_price.py](file:///C:/Users/z004w6wr/Documents/MaaSSim/MaaSSim/pool_price.py) in pool_price_fun(sim, veh, request, sp)
     12 
---> 13     if len(request.rides)>1: # only if there is a choice
...
    228             exc = type(event._value)(*event._value.args)
    229             exc.__cause__ = event._value
--> 230             raise exc

AttributeError: 'Series' object has no attribute 'rides'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant