google / google/digitalbuildings

scorer.py AttributeError

Open
#1,004 6 comments 0 reactions 0 assignees View on GitHub
bug P2
Dominant language
Python
Stars
461
Forks
178
Avg merge
9h 26m
Merged PRs (30d)
5

Description

**Describe the bug**
Unable to run scorer.py, throws an AttributeError:

**To Reproduce**
`python3 tools/scoring/scorer.py -prop ahu_prop.yaml -sol ahu_solution.yaml`
...
`Scoring — building universe
FieldUniverse undefined in ConfigUniverse`
...
`Traceback (most recent call last):
File "/home/brian/github/digitalbuildings/tools/scoring/scorer.py", line 72, in
pp.pprint(scorer.execute())
File "/home/brian/github/digitalbuildings/tools/scoring/score/parse_config.py", line 248, in execute
self.results = self.aggregate_results(
File "/home/brian/github/digitalbuildings/tools/scoring/score/parse_config.py", line 218, in aggregate_results
evaluated = dimension(deserialized_files=deserialized_files).evaluate()
File "/home/brian/github/digitalbuildings/tools/scoring/score/dimensions/entity_point_identification.py", line 195, in evaluate
self._evaluate_virtual(proposed_file=proposed_file,
File "/home/brian/github/digitalbuildings/tools/scoring/score/dimensions/entity_point_identification.py", line 107, in _evaluate_virtual
proposed_points_virtual = self._fetch_points_virtual(
File "/home/brian/github/digitalbuildings/tools/scoring/score/dimensions/entity_point_identification.py", line 55, in _fetch_points_virtual
return [
File "/home/brian/github/digitalbuildings/tools/scoring/score/dimensions/entity_point_identification.py", line 57, in
set(file[link.source].translation[target_field].raw_field_name
File "/home/brian/github/digitalbuildings/tools/scoring/score/dimensions/entity_point_identification.py", line 57, in
set(file[link.source].translation[target_field].raw_field_name
AttributeError: 'UndefinedField' object has no attribute 'raw_field_name'`

**OS (please complete the following information):**
Ubuntu

**Test Files**
Sending test files to digitalbuildings-support@googlegroups.com

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.