Skip to content

Commit 1d5be7c

Browse files
authored
Merge pull request #1192 from VisLab/add_examples
Remove HedLogger - addresses issue #1189
2 parents 14eeef4 + 1fd670f commit 1d5be7c

File tree

7 files changed

+5
-147
lines changed

7 files changed

+5
-147
lines changed

RELEASE_GUIDE.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ Add a new entry at the top of `CHANGELOG.md` with:
7575
- Documentation improvements
7676
- Breaking changes (if any)
7777

78-
\*\*Recommend asking coPilot to produce a draft change log reflecting changes between the last release and the current commit on the main branch.
78+
**Recommend asking coPilot to produce a draft change log reflecting changes between the last release and the current commit on the main branch.**
7979

8080
**Example:**
8181

@@ -213,7 +213,7 @@ Zenodo automatically creates a DOI and archives the release when a GitHub releas
213213

214214
**Wait a few minutes** after creating the GitHub release for Zenodo to process it.
215215

216-
1. Go to: https://zenodo.org/records/17866854 (or the latest Zenodo record for hed-python)
216+
1. Go to: https://zenodo.org/records/8056010 (or the latest Zenodo record for hed-python)
217217
2. Verify that a new version appears for your release
218218
3. Check that the DOI is generated
219219
4. Confirm the metadata is correct (title, authors, description)

hed/tools/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@
4040
from .remodeling.operations.summarize_column_values_op import SummarizeColumnValuesOp
4141
from .remodeling.operations.summarize_hed_type_op import SummarizeHedTypeOp
4242

43-
from .util.hed_logger import HedLogger
4443
from .util.data_util import get_new_dataframe, get_value_dict, replace_values, reorder_columns
4544
from .util.io_util import check_filename, clean_filename, extract_suffix_path, get_file_list, make_path
4645
from .util.io_util import get_path_components

hed/tools/analysis/file_dictionary.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -105,28 +105,22 @@ def key_diffs(self, other_dict):
105105
diffs = set(self._file_dict.keys()).symmetric_difference(set(other_dict.file_dict.keys()))
106106
return list(diffs)
107107

108-
def output_files(self, title=None, logger=None):
108+
def output_files(self, title=None):
109109
"""Return a string with the output of the list.
110110
111111
Parameters:
112112
title (None, str): Optional title.
113-
logger (HedLogger): Optional HED logger for recording.
114113
115114
Returns:
116115
str: The dictionary in string form.
117116
118-
Notes:
119-
- The logger is updated if available.
120-
121117
"""
122118
output_list = []
123119
if title:
124120
output_list.append(f"{title} ({len(self.key_list)} files)")
125121
for key, _value in self._file_dict.items():
126122
basename = os.path.basename(self.get_file_path(key))
127123
output_list.append(f"{key}: {basename}")
128-
if logger:
129-
logger.add(key, f"{self.name}: {basename}")
130124
return "\n".join(output_list)
131125

132126
@staticmethod

hed/tools/util/hed_logger.py

Lines changed: 0 additions & 76 deletions
This file was deleted.

spec_tests/hed-tests/json_test_data/validation_tests/SCHEMA_LOAD_FAILED.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@
8888
},
8989
{
9090
"error_code": "SCHEMA_LOAD_FAILED",
91-
"name": "incompatible-merge-schemas ",
91+
"name": "incompatible-merge-schemas",
9292
"description": "Schemas in a merge group must be associated with the same standard schema].",
9393
"schema": [
9494
"score_2.0.0",

spec_tests/hed-tests/json_test_data/validation_tests/TAG_INVALID.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@
149149
{
150150
"error_code": "TAG_INVALID",
151151
"alt_codes": [],
152-
"name": "tag-has-extra-white space",
152+
"name": "tag-has-extra-whitespace",
153153
"description": "A HED tag has extra internal whitespace, including directly before or after slashes.",
154154
"warning": false,
155155
"schema": "8.4.0",

tests/tools/util/test_hed_logger.py

Lines changed: 0 additions & 59 deletions
This file was deleted.

0 commit comments

Comments
 (0)