Explicit masterfeats/feats removal
This commit is contained in:
@@ -527,7 +527,7 @@ func discoverNativeDatasets(dataDir string) ([]nativeDataset, error) {
|
||||
}
|
||||
outputName, _ := baseData["output"].(string)
|
||||
if strings.TrimSpace(outputName) == "" {
|
||||
outputName = filepath.Base(path) + ".2da"
|
||||
outputName = nativeDatasetDefaultOutputName(path, nativeDatasetBase)
|
||||
}
|
||||
datasets = append(datasets, nativeDataset{
|
||||
Kind: nativeDatasetBase,
|
||||
@@ -561,7 +561,7 @@ func discoverNativeDatasets(dataDir string) ([]nativeDataset, error) {
|
||||
}
|
||||
outputName, _ := tableData["output"].(string)
|
||||
if strings.TrimSpace(outputName) == "" {
|
||||
outputName = strings.TrimSuffix(name, filepath.Ext(name)) + ".2da"
|
||||
outputName = nativeDatasetDefaultOutputName(filePath, nativeDatasetPlain)
|
||||
}
|
||||
datasets = append(datasets, nativeDataset{
|
||||
Kind: nativeDatasetPlain,
|
||||
@@ -4208,6 +4208,14 @@ func outputStem(outputName string) string {
|
||||
return strings.TrimSuffix(outputName, filepath.Ext(outputName))
|
||||
}
|
||||
|
||||
func nativeDatasetDefaultOutputName(path string, kind nativeDatasetKind) string {
|
||||
name := filepath.Base(path)
|
||||
if kind == nativeDatasetPlain {
|
||||
name = strings.TrimSuffix(name, filepath.Ext(name))
|
||||
}
|
||||
return name + ".2da"
|
||||
}
|
||||
|
||||
func loadJSONObject(path string) (map[string]any, error) {
|
||||
raw, err := os.ReadFile(path)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user