From 987c73252cd78798ab981fa5cbc76f997a212ca0 Mon Sep 17 00:00:00 2001 From: Alex Riss <00alexx@riss.at> Date: Tue, 21 Mar 2023 10:31:56 +0100 Subject: [PATCH 1/3] bump version --- Project.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Project.toml b/Project.toml index 9559cb8..f56a10f 100644 --- a/Project.toml +++ b/Project.toml @@ -4,7 +4,7 @@ keywords = ["SPM", "STM", "AFM", "scanning probe microscopy", "scanning tunnelin license = "GPLv3" desc = "Organize scanning probe microscopy images and spectra" authors = ["Alex Riss"] -version = "0.5.0-alpha.2" +version = "0.5.0" [deps] Blink = "ad839575-38b3-5650-b840-f874b8c74a25" From 56b9f0323e0e5c7e109b92f3f9c26aa254cf7348 Mon Sep 17 00:00:00 2001 From: Alex Riss <00alexx@riss.at> Date: Tue, 21 Mar 2023 10:39:03 +0100 Subject: [PATCH 2/3] add "Known issues": standby mode --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index 1bc010c..ce6b68b 100644 --- a/README.md +++ b/README.md @@ -102,6 +102,10 @@ _The app should be considered experimental. It has undergone limited testing, an _The app never modifies or deletes your original data. However, in case of any unexpected problems, you might lose the modifications saved within the app. Even though this has never happened to me, I still advice to backup the database regularly (I personally do not do that, though). The app creates a database in each project directory under `_spmimages_cache/db.jld2` (some older versions of this file are kept as well). This file contains all your edits, keywords, etc. and can be copied as a backup. Any filesystem backup solution should handle this._ +### Known issues + +Currently, the app does not "survive" standby/sleep mode. So please save your work before putting your computer to sleep. + ## Installation _Please only use the app if you read the disclaimer above and feel brave enough to do so._ From 51c044ffe8b170d6b8457ee0c1bf3ebe6c2d5d55 Mon Sep 17 00:00:00 2001 From: Tim Holy Date: Mon, 24 Apr 2023 16:37:46 -0500 Subject: [PATCH 3/3] Migrate from SnoopPrecompile to PrecompileTools --- Project.toml | 4 ++-- src/SpmImageTycoon.jl | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Project.toml b/Project.toml index f56a10f..3def158 100644 --- a/Project.toml +++ b/Project.toml @@ -25,7 +25,7 @@ Mustache = "ffc61752-8dc7-55ee-8c37-f3e9cdd09e70" NaturalSort = "c020b1a1-e9b0-503a-9c33-f039bfc54a85" Printf = "de0858da-6303-5e67-8744-51eddeeeb8d7" SkipNan = "aed68c70-c8b0-4309-8cd1-d392a74f991a" -SnoopPrecompile = "66db9d55-30c0-4569-8b51-7e840670fc0c" +PrecompileTools = "aea7be01-6a6a-4083-8856-8a6e6704d82a" SpmImages = "a5d333f8-9588-4c9f-ac4d-4583361e1fcb" SpmSpectroscopy = "9ab0b2fc-e013-4186-b0b9-58e9a8cad668" StatsBase = "2913bbd2-ae8a-5f71-8c99-4fb6c76f3a91" @@ -50,7 +50,7 @@ JSON = "^0.21" Mustache = "^1.0" NaturalSort = "^1.0" SkipNan = "^0.2" -SnoopPrecompile = "^1.0" +PrecompileTools = "^1.0" SpmImages = "^0.3.2" SpmSpectroscopy = "^0.5" StatsBase = "^0.33" diff --git a/src/SpmImageTycoon.jl b/src/SpmImageTycoon.jl index 20afb9b..4f85585 100644 --- a/src/SpmImageTycoon.jl +++ b/src/SpmImageTycoon.jl @@ -16,7 +16,7 @@ using JSExpr using JSON using NaturalSort using SkipNan -using SnoopPrecompile +using PrecompileTools using SpmImages using SpmSpectroscopy using StatsBase @@ -799,7 +799,7 @@ function tycoon(dir_data::String=""; return_window::Bool=false, keep_alive::Bool end -@precompile_setup begin +@setup_workload begin global Precompiling = true fname_spec_base = "Z-Spectroscopy420.dat" fname_img_base = "Image_002.sxm" @@ -821,7 +821,7 @@ end include(joinpath(@__DIR__ , "../test/functions.jl")) - @precompile_all_calls begin + @compile_workload begin global Precompiling = true spec = load_spectrum(fname_spec) ima = load_image(fname_img, output_info=0)