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 while trying to save stats with DL-torch.yml config #368

Closed
nik1806 opened this issue Jun 5, 2022 · 1 comment · Fixed by #370
Closed

Error while trying to save stats with DL-torch.yml config #368

nik1806 opened this issue Jun 5, 2022 · 1 comment · Fixed by #370

Comments

@nik1806
Copy link
Contributor

nik1806 commented Jun 5, 2022

the code:

python3 driver.py -c ./configs/DL-torch.yml -g

Error message:

20: GazeboEnv: launching gzserver.
20: Executing app
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
20: Reloading brain... /root/BehaviorMetrics/behavior_metrics/brains/f1/brain_f1_torch.py
20: Resuming simulation
20: Recording metrics bag at: ./
Traceback (most recent call last):
  File "/root/BehaviorMetrics/behavior_metrics/ui/gui/views/toolbar.py", line 251, in mousePressEvent
    self.parent.start_recording_stats()
  File "/root/BehaviorMetrics/behavior_metrics/ui/gui/views/toolbar.py", line 585, in start_recording_stats
    self.controller.record_metrics(filename, dirname)
  File "/root/BehaviorMetrics/behavior_metrics/utils/controller.py", line 199, in record_metrics
    self.experiment_metadata['experiment_timeout'] = self.pilot.configuration.experiment_timeouts[world_counter]
TypeError: 'int' object is not subscriptable
Aborted (core dumped)
@nik1806
Copy link
Contributor Author

nik1806 commented Jun 5, 2022

One work around to solve the issue is to comment out following lines:

Experiment:
Name: "Experiment name"
Description: "Experiment description"
Timeout: 30
Repetitions: 2

but first we need to verifty if other codes are using these lines.

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

Successfully merging a pull request may close this issue.

1 participant