From 7523c2ab3689bdd1fec4ec588c3bd53cfc90597b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=A0imon=20Mandl=C3=ADk?= Date: Sun, 13 Oct 2024 19:40:16 +0200 Subject: [PATCH] public API (julia v11.0) --- .gitignore | 2 +- Project.toml | 2 ++ src/Mill.jl | 5 +++++ 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index f0055650..bbae9502 100644 --- a/.gitignore +++ b/.gitignore @@ -23,7 +23,7 @@ docs/src/examples/musk/musk.ipynb # It records a fixed state of all packages used by the project. As such, it should not be # committed for packages, but should be committed for applications that require a static # environment. -Manifest.toml +Manifest*.toml # Preferences.jl LocalPreferences.toml diff --git a/Project.toml b/Project.toml index 8b44e15d..16504a28 100644 --- a/Project.toml +++ b/Project.toml @@ -7,6 +7,7 @@ version = "2.10.5" Accessors = "7d9f7c33-5ae7-4f3b-8dc6-eff91059b697" ChainRulesCore = "d360d2e6-b24c-11e9-a2a3-2a2ae2dbcce4" Combinatorics = "861a8166-3701-5b0c-9a16-15d98fcdc6aa" +Compat = "34da2185-b29b-5c13-b0c7-acf172513d20" DataFrames = "a93c6f00-e57d-5684-b7b6-d8193f3e46c0" DataStructures = "864edb3b-99cc-5e75-8d2d-829cb0a9cfe8" FiniteDifferences = "26cc04aa-876d-5657-8c51-4c34ba976000" @@ -26,6 +27,7 @@ Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40" Accessors = "0.1.36" ChainRulesCore = "1.21" Combinatorics = "1.0" +Compat = "4.16.0" DataFrames = "1.6.1" DataStructures = "0.18.15" FiniteDifferences = "0.12.31" diff --git a/src/Mill.jl b/src/Mill.jl index 9e797bd8..e3d792ee 100644 --- a/src/Mill.jl +++ b/src/Mill.jl @@ -3,6 +3,7 @@ module Mill using Accessors using ChainRulesCore using Combinatorics +using Compat using DataFrames using FiniteDifferences using Flux @@ -39,6 +40,9 @@ promote_maybe_type(::Type{<:Maybe{T}}, ::Type{<:Maybe{U}}) where {T, U} = promot promote_maybe_type(t1, t2) = promote_type(t1, t2) include("switches.jl") +@compat public emptyismissing, emptyismissing! +@compat public string_start_code, string_start_code! +@compat public string_end_code, string_end_code! include("bags.jl") export AbstractBags, AlignedBags, ScatteredBags, length2bags, remapbags, bags, adjustbags @@ -47,6 +51,7 @@ include("datanodes/datanode.jl") export AbstractMillNode, AbstractProductNode, AbstractBagNode export ArrayNode, BagNode, WeightedBagNode, ProductNode, LazyNode export numobs, getobs, catobs, removeinstances, dropmeta +@compat public subset, data, metadata, mapdata, unpack2mill include("special_arrays/special_arrays.jl") export MaybeHotVector, MaybeHotMatrix, maybehot, maybehotbatch, maybecold