Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate from SnoopPrecompile to PrecompileTools #13

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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"
Expand All @@ -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"
Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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._
Expand Down
6 changes: 3 additions & 3 deletions src/SpmImageTycoon.jl
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ using JSExpr
using JSON
using NaturalSort
using SkipNan
using SnoopPrecompile
using PrecompileTools
using SpmImages
using SpmSpectroscopy
using StatsBase
Expand Down Expand Up @@ -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"
Expand All @@ -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)
Expand Down