Skip to content
Snippets Groups Projects

use all x values to compute x limits in `inbreeding plot`

Merged STEVAN Antoine requested to merge plot into main
9 files
+ 121
30
Compare changes
  • Side-by-side
  • Inline
Files
9
+ 9
3
@@ -67,10 +67,16 @@ export def "color from-ints" [
}
def try-string-to-int []: string -> int {
let s = $in
try {
$"0x($in)" | into int
} catch {
get debug | parse --regex 'CantConvert { to_type: "(?<to>.*)", from_type: "(?<from>.*)", span: Span { (?<span>.*) }, help: Some\("(?<help>.*)"\) }' | into record | error make --unspanned { msg: ($in.help | str replace --all '\"' '"') }
$"0x($s)" | into int
} catch { |e|
let err = $e.debug
| parse --regex 'CantConvert { to_type: "(?<to>.*)", from_type: "(?<from>.*)", span: Span { (?<span>.*) }, help: Some\("(?<help>.*)"\) }'
| into record
let msg = $err.help | str replace --all '\"' '"'
error make --unspanned { msg: $"($msg), found ($s)" }
}
}
Loading