Compare commits
2 Commits
b7233d004a
...
98df982419
Author | SHA1 | Date |
---|---|---|
Jean-Sébastien | 98df982419 | |
Jean-Sébastien | 1e4c4c420d |
|
@ -1,4 +1,5 @@
|
||||||
#! /usr/bin/env python
|
#! /usr/bin/env python
|
||||||
|
|
||||||
import argparse
|
import argparse
|
||||||
import plotly.graph_objects as go
|
import plotly.graph_objects as go
|
||||||
import numpy
|
import numpy
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
#! /usr/bin/env python
|
||||||
|
|
||||||
import argparse
|
import argparse
|
||||||
import plotly.graph_objects as go
|
import plotly.graph_objects as go
|
||||||
import numpy
|
import numpy
|
||||||
|
@ -16,5 +18,3 @@ for datafilename in args.filenames:
|
||||||
y = [line[3] for line in data]
|
y = [line[3] for line in data]
|
||||||
fig.add_trace(go.Bar(x=x, y=y))
|
fig.add_trace(go.Bar(x=x, y=y))
|
||||||
fig.show()
|
fig.show()
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
#! /usr/bin/env python
|
||||||
|
|
||||||
import argparse
|
import argparse
|
||||||
import plotly.graph_objects as go
|
import plotly.graph_objects as go
|
||||||
import numpy
|
import numpy
|
||||||
|
@ -35,4 +37,3 @@ fig.update_layout(
|
||||||
sliders=sliders
|
sliders=sliders
|
||||||
)
|
)
|
||||||
fig.show()
|
fig.show()
|
||||||
|
|
||||||
|
|
|
@ -7,8 +7,8 @@
|
||||||
# The data can then be used to produce animated graphs (with c_int evolving),
|
# The data can then be used to produce animated graphs (with c_int evolving),
|
||||||
# see the `c_scan_N_fixed_dsfs[_plot]` scripts.
|
# see the `c_scan_N_fixed_dsfs[_plot]` scripts.
|
||||||
|
|
||||||
if [[ $# -ne 5 ]]; then
|
if [[ $# -ne 7 ]]; then
|
||||||
echo "Arguments needed: whichDSF, kBT, target_sumrule, N, nkmax (max momentum in units of kF/4)."
|
echo "Arguments needed: whichDSF, kBT, target_sumrule, N, nkmax (max momentum in units of kF/4), Max_Secs (per c), refine."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -37,6 +37,16 @@ if [[ $5 -lt 0 ]]; then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [[ $6 -lt 0 ]]; then
|
||||||
|
echo "Max_Secs must be > 0."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [[ $7 != 0 && $7 != 1 ]]; then
|
||||||
|
echo "refine must be 0 (false) or 1 (true)."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
timestart=$(date +%s)
|
timestart=$(date +%s)
|
||||||
|
|
||||||
whichDSF=$1
|
whichDSF=$1
|
||||||
|
@ -44,6 +54,8 @@ kBT=$2
|
||||||
target_sumrule=$3
|
target_sumrule=$3
|
||||||
N=$4
|
N=$4
|
||||||
nkmax=$5
|
nkmax=$5
|
||||||
|
Max_Secs=$6
|
||||||
|
refine=$7
|
||||||
|
|
||||||
correlator='rho-rho'
|
correlator='rho-rho'
|
||||||
if [[ $whichDSF == 'o' ]]; then
|
if [[ $whichDSF == 'o' ]]; then
|
||||||
|
@ -58,8 +70,6 @@ touch $logfile
|
||||||
|
|
||||||
iKmax=$(($nkmax * $N/8))
|
iKmax=$(($nkmax * $N/8))
|
||||||
|
|
||||||
Max_Secs=3600
|
|
||||||
refine=0
|
|
||||||
|
|
||||||
# List of interactions: fractional powers of 2
|
# List of interactions: fractional powers of 2
|
||||||
clist_raw=()
|
clist_raw=()
|
||||||
|
@ -87,7 +97,7 @@ dircheck='Lieb-Liniger/'$correlator'/T_'$kBT'/c_scan_N_fixed/k_0_to_'${(l:2::0:)
|
||||||
if [[ -d $dircheck ]]; then
|
if [[ -d $dircheck ]]; then
|
||||||
echo 'A c scan with these parameters already exists. Aborting.'
|
echo 'A c scan with these parameters already exists. Aborting.'
|
||||||
echo 'If you really want to run this command, please first delete directory:\n'$dircheck
|
echo 'If you really want to run this command, please first delete directory:\n'$dircheck
|
||||||
exit
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
#! /usr/bin/env python
|
||||||
|
|
||||||
"""
|
"""
|
||||||
Plot benchmark files produced from Benchmark_RAW_File.
|
Plot benchmark files produced from Benchmark_RAW_File.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue