Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Primary file extension not defined in legacy EMU template file #249

Open
krisbara opened this issue Jun 23, 2021 · 1 comment
Open

Primary file extension not defined in legacy EMU template file #249

krisbara opened this issue Jun 23, 2021 · 1 comment

Comments

@krisbara
Copy link

emuR version 2.2.0

I am using the function convert_legacyEmuDB() with my file (.hlb). It appears an error 'Primary file extension not defined in legacy EMU template file'.

However, it creates a folder (name.hlb_emuDB) with the file containing the next information:

{
  "name": "vp01-HLL-linn0.ton",
  "UUID": "4d3d5807-6618-423d-8338-5c8158da0943",
  "mediafileExtension": {},
  "ssffTrackDefinitions": [],
  "levelDefinitions": [],
  "linkDefinitions": [],
  "EMUwebAppConfig": {
    "perspectives": [
      {
        "name": "default",
        "signalCanvases": {
          "order": ["OSCI", "SPEC"],
          "assign": [],
          "contourLims": []
        },
        "levelCanvases": {
          "order": []
        },
        "twoDimCanvases": {
          "order": []
        }
      }
    ],
    "activeButtons": {
      "saveBundle": true,
      "showHierarchy": true
    }
  }
}

The function 'summary' shows:

Name:	 vp01-HLL-linn0.hlb 
UUID:	 c9fa6d92-0b33-49ce-86ab-43243cede98c 
Directory:	 C:\work\konstanz\05 May\R-Studio\vp01-HLL-linn0.hlb_emuDB 
Session count: 0 
Bundle count: 0 
Annotation item count:  0 
Label count:  0 
Link count:  0 

Database configuration:

SSFF track definitions:
NULL

Level definitions:
NULL

Link definitions:
NULL
> summary(vp01)  
Name:	 vp01-HLL-linn0.hlb 
UUID:	 c9fa6d92-0b33-49ce-86ab-43243cede98c 
Directory:	 C:\work\vp01-HLL-linn0.hlb_emuDB 
Session count: 0 
Bundle count: 0 
Annotation item count:  0 
Label count:  0 
Link count:  0 

Database configuration:

SSFF track definitions:
NULL

Level definitions:
NULL

Link definitions:
NULL

It would be great if you could help me to deal with this issue. I need this file to convert into TextGrid afterwards.

@raphywink
Copy link

You will have to address the error: Primary file extension not defined in legacy EMU template file as the conversion function doesn't know which audio/media files to look 4. The reason a directory is created is because it initially converts the tpl file to the DBconfig.json file then keeps on going. The generated emuDB ist basically broken and can not be regarded as a working database (simply delete and retry). You will prob. have to fix/add this line to your .tpl file:

https://github.com/IPS-LMU/emuR/blob/master/inst/extdata/rawDemoData/configFiles/ae.tpl#L65

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants