Skip to content

Commit

Permalink
Super basic idea
Browse files Browse the repository at this point in the history
  • Loading branch information
mfherbst committed Oct 23, 2024
1 parent d6fde5f commit 4d4ecdc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 2 additions & 0 deletions Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ version = "0.4.2"
[deps]
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
PeriodicTable = "7b2266bf-644c-5ea3-82d8-af4bbd25a884"
Preferences = "21216c6a-2e73-6563-6e65-726566657250"
Printf = "de0858da-6303-5e67-8744-51eddeeeb8d7"
Requires = "ae029012-a4dd-5104-9daa-d747884805df"
StaticArrays = "90137ffa-7385-5640-81b9-e52037218182"
Expand All @@ -14,6 +15,7 @@ UnitfulAtomic = "a7773ee8-282e-5fa2-be4e-bd808c38a91a"

[compat]
PeriodicTable = "1"
Preferences = "1.4"
Requires = "1"
StaticArrays = "1"
Unitful = "1"
Expand Down
3 changes: 1 addition & 2 deletions src/utils/show.jl
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,7 @@ function show_system(io::IO, ::MIME"text/plain", system::AbstractSystem{D}) wher
extra_line = true
end

# TODO We will make this configurable in a follow-up PR
show_ascii = false
show_ascii = length(system) > @load_preference("system_visualize_ascii_max_atoms", 10)
if show_ascii
ascii = visualize_ascii(system)
if !isempty(ascii)
Expand Down

0 comments on commit 4d4ecdc

Please sign in to comment.