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 on tutorial #5 #10

Open
pedrocamargo opened this issue May 14, 2017 · 3 comments
Open

Error on tutorial #5 #10

pedrocamargo opened this issue May 14, 2017 · 3 comments

Comments

@pedrocamargo
Copy link

Running tutorial #5 I find an error in the cell below. I was not able to quickly find the issue, so it was probably better to report it!

for d in DISPERSION_TESTS:
OUTPUT_FOLDER = OUTPUT_FOLDER_BASE+"%2.2f" % (d)
Run.run_fasttrips(input_network_dir = INPUT_NETWORKS,
input_demand_dir = INPUT_DEMAND,
run_config = RUN_CONFIG,
input_weights = INPUT_WEIGHTS,
output_dir = OUTPUT_DIR,
output_folder = OUTPUT_FOLDER,
pathfinding_type = PATHFINDING_TYPE,
iters = ITERATIONS,
overlap_variable = OVERLAP,
dispersion = d )

trace error below.

{'dispersion': 0.5, 'overlap_variable': 'None'}

NoSectionError Traceback (most recent call last)
in ()
10 iters = ITERATIONS,
11 overlap_variable = OVERLAP,
---> 12 dispersion = d )

/home/pedro/SourceCode/fast-trips/fasttrips/Run.pyc in run_fasttrips(**kwargs)
189 # print "%40s => %s" % (key, args_dict[key])
190
--> 191 ft = run_setup(**kwargs)
192 # Read the networks and demand
193 ft.read_input_files()

/home/pedro/SourceCode/fast-trips/fasttrips/Run.pyc in run_setup(input_network_dir, input_demand_dir, input_weights, run_config, iters, output_dir, pathfinding_type, input_functions, output_folder, trace_only, **kwargs)
121
122 # Read the configuration file and overwrite with any options called with the function call
--> 123 ft.read_configuration()
124
125 if iters > 0:

/home/pedro/SourceCode/fast-trips/fasttrips/FastTrips.pyc in read_configuration(self)
112 if Assignment.CONFIGURATION_FUNCTIONS_FILE:
113 Assignment.read_functions(func_file = Assignment.CONFIGURATION_FUNCTIONS_FILE)
--> 114 Assignment.read_configuration(config_fullpath = Assignment.CONFIGURATION_FILE)
115 Assignment.read_weights(weights_file = Assignment.INPUT_WEIGHTS)
116

/home/pedro/SourceCode/fast-trips/fasttrips/Assignment.pyc in read_configuration(config_fullpath)
306 parser.read(config_fullpath)
307
--> 308 Assignment.MAX_ITERATIONS = parser.getint ('fasttrips','max_iterations')
309 Assignment.SIMULATION = parser.getboolean('fasttrips','simulation')
310 Assignment.OUTPUT_PASSENGER_TRAJECTORIES = parser.getboolean('fasttrips','output_passenger_trajectories')

/usr/lib/python2.7/ConfigParser.pyc in getint(self, section, option)
357
358 def getint(self, section, option):
--> 359 return self._get(section, int, option)
360
361 def getfloat(self, section, option):

/usr/lib/python2.7/ConfigParser.pyc in _get(self, section, conv, option)
354
355 def _get(self, section, conv, option):
--> 356 return conv(self.get(section, option))
357
358 def getint(self, section, option):

/usr/lib/python2.7/ConfigParser.pyc in get(self, section, option)
328 if section not in self._sections:
329 if section != DEFAULTSECT:
--> 330 raise NoSectionError(section)
331 if opt in self._defaults:
332 return self._defaults[opt]

NoSectionError: No section: 'fasttrips'

@e-lo
Copy link
Member

e-lo commented May 14, 2017

@pedrocamargo : what version of Fast-Trips are you using? a13 or a14?

@pedrocamargo
Copy link
Author

pedrocamargo commented May 14, 2017 via email

@e-lo
Copy link
Member

e-lo commented May 14, 2017

@pedrocamargo - looks like you need to update your fork from master? be sure and update to latest tutorial too.

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

2 participants