Skip to content

Commit e5d8365

Browse files
Add missing newline in generated categories.json and properties.json files
1 parent 21ee107 commit e5d8365

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

openMINDS_pipeline/resolver.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ def _save_categories(directory_structure, categories):
6060
categories_file = os.path.join(directory_structure.target_directory, "vocab", "categories.json")
6161
with open(categories_file, "w+") as categories_f:
6262
categories_f.write(json.dumps(categories, sort_keys=True, indent=2))
63+
categories_f.write("\n")
6364

6465

6566
def _schemas_by_category(schemas: List[SchemaStructure]) -> Dict[str, List[str]]:

openMINDS_pipeline/vocab.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -291,6 +291,7 @@ def _load_properties(self):
291291
def _save_properties(self):
292292
with open(self._properties_file, "w+") as properties_file:
293293
properties_file.write(json.dumps(self._properties, sort_keys=True, indent=2))
294+
properties_file.write("\n")
294295

295296
def clean_properties(self):
296297
to_be_removed = []

0 commit comments

Comments
 (0)