Skip to content

Commit

Permalink
typo
Browse files Browse the repository at this point in the history
  • Loading branch information
dmetivie committed Sep 4, 2024
1 parent 07eb06b commit cf19f0f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 2 additions & 3 deletions examples/tuto_paper.jl
Original file line number Diff line number Diff line change
Expand Up @@ -277,8 +277,7 @@ long_spell = [longuest_spell(y) for y in eachcol(Y)]
FR_map_spell = map_with_stations(LON_idx, LAT_idx, long_spell; station_name=station_name, show_value=true, colorbar_show=true)

#-
## savefigcrop(FR_map_spell, joinpath(save_tuto_path, "FR_longest_dry_spell_$(D)_station_histo")); #src # does not work on Windows without admin
savefigcrop(FR_map_spell, "FR_longest_dry_spell_$(D)_station_histo", save_tuto_path); #src # this version works because it cd into the fig directory and then cd out
savefigcrop(FR_map_spell, "FR_longest_dry_spell_$(D)_station_histo", save_tuto_path); #src

md"""
## Fit the seasonal HMM
Expand Down Expand Up @@ -405,7 +404,7 @@ For now there are some scale rendering issues due to an [GeoMakie.jl issue](http
p_FR_map_mean_prob = map_with_stations(LON_idx, LAT_idx, [[mean(succprob.(hmm_fit.B[k, :, j, memory_past_cat])) for j in 1:length(STAID)] for k in 1:K], colorbar_show=true, colorbar_title = L"\mathbb{P}(Y = \text{Rain}\mid Z = k, H = 1)")

#-
savefigcrop(p_FR_map_mean_prob, "FR_K_$(K)_d_$(𝐃𝐞𝐠)_m_$(local_order)_mean_proba_cat_1", save_tuto_path); #src # this version works because it cd into the fig directory and then cd out
savefigcrop(p_FR_map_mean_prob, "FR_K_$(K)_d_$(𝐃𝐞𝐠)_m_$(local_order)_mean_proba_cat_1", save_tuto_path); #src

md"""
### Inference of the historical hidden states
Expand Down
4 changes: 4 additions & 0 deletions examples/utilities_plot.jl
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,10 @@ end

savefigcrop(save_name) = savefigcrop(nothing, save_name)

"""
savefigcrop(plt, save_name, path)
When on Windows there are admin issues because the fig is in another folder, this version works because it `cd` into the fig directory and then `cd` out.
"""
function savefigcrop(plt, save_name, path)
current = pwd()
cd(path)
Expand Down

0 comments on commit cf19f0f

Please sign in to comment.