Skip to content

Commit 8eae8b7

Browse files
committed
Cleaning stray code
1 parent 948aebe commit 8eae8b7

File tree

1 file changed

+0
-31
lines changed

1 file changed

+0
-31
lines changed

openml/study/study.py

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -119,37 +119,6 @@ def __str__(self):
119119
body = '\n'.join(field_line_format.format(name, value) for name, value in fields)
120120
return body
121121

122-
def old_str(self):
123-
object_dict = self.__dict__
124-
output_str = ''
125-
id = '{:.<16}: {}\n'.format("ID", object_dict['id'])
126-
name = '{:.<16}: {}\n'.format("Name", object_dict['name'])
127-
status = '{:.<16}: {}\n'.format("Status", object_dict['status'])
128-
main_entity_type = '{:.<16}: {}\n'.format("Main Entity Type",
129-
object_dict['main_entity_type'])
130-
url = 'https://www.openml.org/s/' + str(object_dict['id'])
131-
study_url = '{:.<16}: {}\n'.format("Study URL", url)
132-
data = ''
133-
if object_dict['data'] is not None:
134-
data = '{:.<16}: {}\n'.format("# of Data", len(object_dict['data']))
135-
tasks = ''
136-
if object_dict['tasks'] is not None:
137-
tasks = '{:.<16}: {}\n'.format("# of Tasks", len(object_dict['tasks']))
138-
flows = ''
139-
if object_dict['flows'] is not None:
140-
flows = '{:.<16}: {}\n'.format("# of Flows", len(object_dict['flows']))
141-
runs = ''
142-
if object_dict['runs'] is not None:
143-
runs = '{:.<16}: {}\n'.format("# of Runs", len(object_dict['runs']))
144-
145-
url = 'https://www.openml.org/u/' + str(object_dict['creator'])
146-
creator = '{:.<16}: {}\n'.format("Creator", url)
147-
upload_time = '{:.<16}: {}\n'.format("Upload Time",
148-
object_dict['creation_date'].replace('T', ' '))
149-
output_str = id + name + status + main_entity_type + study_url + data + \
150-
tasks + flows + runs + creator + upload_time
151-
return output_str
152-
153122
def publish(self) -> int:
154123
"""
155124
Publish the study on the OpenML server.

0 commit comments

Comments
 (0)