Optimize parameters
This commit is contained in:
parent
e79816e789
commit
c676cb5424
7
.gitignore
vendored
7
.gitignore
vendored
@ -42,4 +42,9 @@ vignettes/*.pdf
|
|||||||
docs/
|
docs/
|
||||||
|
|
||||||
# translation temp files
|
# translation temp files
|
||||||
po/*~
|
po/*~
|
||||||
|
|
||||||
|
# Folders
|
||||||
|
DPT/
|
||||||
|
OPUS/
|
||||||
|
OPUS_save/
|
||||||
|
File diff suppressed because it is too large
Load Diff
Binary file not shown.
@ -4,8 +4,8 @@
|
|||||||
source("ReadOpus.R")
|
source("ReadOpus.R")
|
||||||
|
|
||||||
# Determine file path
|
# Determine file path
|
||||||
path <- paste0(getwd(), "/OPUS/")
|
path <- commandArgs(trailingOnly = TRUE)[1]
|
||||||
file_name <- commandArgs(trailingOnly = TRUE)[1]
|
file_name <- commandArgs(trailingOnly = TRUE)[2]
|
||||||
file_path <- paste(path, file_name, sep = "")
|
file_path <- paste(path, file_name, sep = "")
|
||||||
|
|
||||||
# Convert opus binary file into dataframe
|
# Convert opus binary file into dataframe
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
inotifywait -m OPUS -e create -e moved_to |
|
inotifywait -m OPUS -e create -e moved_to |
|
||||||
while read fpath action file; do
|
while read fpath action file; do
|
||||||
Rscript OpusData.R $file
|
Rscript OpusData.R $fpath $file
|
||||||
done
|
done
|
||||||
|
@ -23,12 +23,3 @@ headers = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
data = '{"topic":"definma_connect/Rng/things/twin/commands/modify", "path":"features/data","value":{"properties":' + jsonString + '}}'
|
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)
|
|
||||||
|
Loading…
Reference in New Issue
Block a user