Optimize parameters

This commit is contained in:
Ruben Hartenstein (PEA4-Fe) 2021-02-19 09:03:46 +00:00
parent e79816e789
commit c676cb5424
6 changed files with 9 additions and 1757 deletions

5
.gitignore vendored
View File

@ -43,3 +43,8 @@ docs/
# translation temp files
po/*~
# Folders
DPT/
OPUS/
OPUS_save/

File diff suppressed because it is too large Load Diff

Binary file not shown.

View File

@ -4,8 +4,8 @@
source("ReadOpus.R")
# Determine file path
path <- paste0(getwd(), "/OPUS/")
file_name <- commandArgs(trailingOnly = TRUE)[1]
path <- commandArgs(trailingOnly = TRUE)[1]
file_name <- commandArgs(trailingOnly = TRUE)[2]
file_path <- paste(path, file_name, sep = "")
# Convert opus binary file into dataframe

View File

@ -1,5 +1,5 @@
#!/bin/bash
inotifywait -m OPUS -e create -e moved_to |
while read fpath action file; do
Rscript OpusData.R $file
Rscript OpusData.R $fpath $file
done

View File

@ -23,12 +23,3 @@ headers = {
}
data = '{"topic":"definma_connect/Rng/things/twin/commands/modify", "path":"features/data","value":{"properties":' + jsonString + '}}'
print(data)
# Convert jsonString to dictionary
#jsonDict = json.loads(jsonString)
# Write Json into file
#with open(file_name, 'w') as jsonFile:
# json.dump(jsonDict, jsonFile)