Skip to content

Commit

Permalink
docs fix
Browse files Browse the repository at this point in the history
  • Loading branch information
JoFrhwld committed May 18, 2024
1 parent b85aada commit 9edb92d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/objects.py
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
import new_fave
import fave_measurement_point
import sphobjinv as soi
from pathlib import Path
inv = soi.Inventory(fname_plain = Path("objects.txt"))

for idx in range(len(inv.objects)):
obj = inv.objects[idx]
basename = obj.name.split(".")[-1]
if hasattr(new_fave, basename):
if hasattr(fave_measurement_point, basename):
obj_dict = obj.json_dict()
if not "new_fave." + basename in obj_dict:
obj_dict["name"] = "aligned_textgrid." + basename
obj_dict["name"] = "fave_measurement_point." + basename
new_obj = soi.DataObjStr(**obj_dict)
inv.objects.append(new_obj)

Expand Down

0 comments on commit 9edb92d

Please sign in to comment.