research's People
research's Issues
プログラムの実行について
takeru0001さん,
千葉工大の藤原です.ご無沙汰していますが,お元気ですか?
卒研のプログラムを今年の4年生に勉強してもらっています.
本日,本プロジェクトのプログラムを実行してみましたが,
simulator.pyの491行目でエラーが出るようです.
$ python3 simulator.py
number_of_cars: 2
num_of_division: 9
epsilon greedy: 0.1
(37.789895827461, -122.4196618795395, 37.792380016410476, -122.41523623466492)
got map
create road network started ### 2021-11-18 13:09:48.916964
create road network ended ### 2021-11-18 13:09:48.965609
create road segments started ### 2021-11-18 13:09:48.965716
create road segments ended ### 2021-11-18 13:09:48.966069
create cars started ### 2021-11-18 13:09:48.966090
create cars ended ### 2021-11-18 13:09:48.967529
92.49999999906868 505.0 260.99999999813735 554.0
map image loading ### 2021-11-18 13:09:48.994291
map image loaded ### 2021-11-18 13:09:49.020226
Start of simulation ### 2021-11-18 13:09:49.070352
(4, 1)
Traceback (most recent call last):
File "simulator.py", line 654, in
ani.save(str(epsilon) + "sfc-small.mp4", writer="ffmpeg")
File "/usr/local/lib/python3.8/dist-packages/matplotlib/animation.py", line 1173, in save
anim._draw_next_frame(d, blit=False)
File "/usr/local/lib/python3.8/dist-packages/matplotlib/animation.py", line 1208, in _draw_next_frame
self._draw_frame(framedata)
File "/usr/local/lib/python3.8/dist-packages/matplotlib/animation.py", line 1776, in _draw_frame
self._drawn_artists = self._func(framedata, *self._args)
File "simulator.py", line 491, in animate
if ((index_x, index_y) in i.keys()):
AttributeError: 'tuple' object has no attribute 'keys'
本件について,エラーの原因が何か分かれば,教えてもらえたら幸いです.
お手数ですが,どうぞよろしくお願いします.
藤原明広
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.