Skip to content
Snippets Groups Projects
Commit 7ad9812d authored by Nathalie Rousse's avatar Nathalie Rousse
Browse files

[examtt] InstancesDZN correction

parent 92f07a61
No related branches found
No related tags found
No related merge requests found
# dzn2py tool (dzn2py.sh and dzn2py_control.py)
# Desc
The dzn2py.sh script makes .py.xz data file from .dzn.xz data file. Then
it controls the .py produced file, by calling the dzn2py_control.py code.
The resulting .py data file is ready to be imported by exam_tt.py
The resulting .py data file is ready to be imported by
(exam_tt_main.py + exam_tt_pb.py) code.
- Produced data files :
${DATA_DZN_PATH}/*.dzn ---- dzn2py.sh ----> ${DATA_PY_PATH}/*.py
../../data/ ../../instances/python/
data/InstancesDZN/*.dzn.xz ----dzn2py.sh----> instances/python/*.py.xz
# Example
......@@ -24,7 +20,8 @@ ${DATA_DZN_PATH}/*.dzn ---- dzn2py.sh ----> ${DATA_PY_PATH}/*.py
- result :
./D1-3-18.py.xz file produced from ../../data/D1-3-18.dzn.xz file
./D1-3-18.py.xz file produced from ../../data/InstancesDZN/D1-3-18.dzn.xz file
The D1-3-18.py data file is ready to be imported by exam_tt.py
The D1-3-18.py data file is ready to be imported by
(exam_tt_main.py + exam_tt_pb.py) code.
......@@ -7,7 +7,7 @@ fpy=`echo $fdzn.py|sed 's/.dzn//'`
printf "Generates $fdzn.xz -> $fpy.xz ...\n"
cp ../../data/$1 .
cp ../../data/InstancesDZN/$1 .
unxz ./$1 ; # => $fdzn
sed 's/\[|/[\[/' $fdzn > ./tmp1
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment