mirror of
https://gitlab.cern.ch/wotsubo/PSBoardDataBase.git
synced 2025-06-08 05:55:42 +09:00
fix: create_database_from_exported_csvs error
- jathub_table must be DataFrame
This commit is contained in:
parent
f248b3b7e2
commit
29399c094a
1 changed files with 8 additions and 3 deletions
|
@ -29,14 +29,18 @@ include("import_data.jl")
|
||||||
Create database at `dbpath` and import data from CSV and master log files.
|
Create database at `dbpath` and import data from CSV and master log files.
|
||||||
|
|
||||||
# Arguments
|
# Arguments
|
||||||
|
|
||||||
|
## Required
|
||||||
- `dbpath`: where the database will be created
|
- `dbpath`: where the database will be created
|
||||||
|
- `masterlog_dir`: path to the directory (`log`) where all JATHub master logs are stored
|
||||||
|
- `slavelog_dir`: path to the directory where all JATHub slave logs are stored
|
||||||
|
|
||||||
|
## Optional
|
||||||
- `single_run_csv`: CSV of single run results exported from the Google sheets database
|
- `single_run_csv`: CSV of single run results exported from the Google sheets database
|
||||||
- `runlist_csv`: CSV of run lists exported from the Google sheets database
|
- `runlist_csv`: CSV of run lists exported from the Google sheets database
|
||||||
- `dispatch_csv`: CSV of dispatch lists exported from the Google sheets database
|
- `dispatch_csv`: CSV of dispatch lists exported from the Google sheets database
|
||||||
- `hundred_csv`: CSV of 100 tests results exported from the Google sheets database
|
- `hundred_csv`: CSV of 100 tests results exported from the Google sheets database
|
||||||
- `jathubs_csv`: CSV for jathub list used in QAQC. Used to add skew.
|
- `jathubs_csv`: CSV for jathub list used in QAQC. Used to add skew.
|
||||||
- `masterlog_dir`: path to the directory (`log`) where all JATHub master logs are stored
|
|
||||||
- `slavelog_dir`: path to the directory where all JATHub slave logs are stored
|
|
||||||
"""
|
"""
|
||||||
function create_database_from_exported_csvs(
|
function create_database_from_exported_csvs(
|
||||||
dbpath::AbstractString;
|
dbpath::AbstractString;
|
||||||
|
@ -53,9 +57,10 @@ function create_database_from_exported_csvs(
|
||||||
runlist_table = CSV.read(runlist_csv, DataFrame)
|
runlist_table = CSV.read(runlist_csv, DataFrame)
|
||||||
dispatch_table = CSV.read(dispatch_csv, DataFrame)
|
dispatch_table = CSV.read(dispatch_csv, DataFrame)
|
||||||
extra_100test_result_df = CSV.read(hundred_csv, DataFrame)
|
extra_100test_result_df = CSV.read(hundred_csv, DataFrame)
|
||||||
|
jathubs_table = CSV.read(jathubs_csv, DataFrame)
|
||||||
|
|
||||||
insert_qaqc_campaign_id(db)
|
insert_qaqc_campaign_id(db)
|
||||||
insert_qaqc_positions(db, jathubs_csv)
|
insert_qaqc_positions(db, jathubs_table)
|
||||||
|
|
||||||
add_psboard_ids(db, single_result_df)
|
add_psboard_ids(db, single_result_df)
|
||||||
add_qaqc_runlist_from_runlist(db, runlist_table)
|
add_qaqc_runlist_from_runlist(db, runlist_table)
|
||||||
|
|
Loading…
Add table
Reference in a new issue