Skip to content

Rename package #18

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

Merged
merged 1 commit into from
Apr 11, 2024
Merged
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
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name = "UDEComponents"
name = "ModelingToolkitNeuralNets"
uuid = "f162e290-f571-43a6-83d9-22ecc16da15f"
authors = ["Sebastian Micluța-Câmpeanu <[email protected]> and contributors"]
version = "1.0.0-DEV"
Expand Down
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# UDEComponents
# ModelingToolkitNeuralNets

[![Stable](https://img.shields.io/badge/docs-stable-blue.svg)](https://SciML.github.io/UDEComponents.jl/stable/)
[![Dev](https://img.shields.io/badge/docs-dev-blue.svg)](https://SciML.github.io/UDEComponents.jl/dev/)
[![Build Status](https://github.com/SciML/UDEComponents.jl/actions/workflows/CI.yml/badge.svg?branch=main)](https://github.com/SciML/UDEComponents.jl/actions/workflows/CI.yml?query=branch%3Amain)
[![Coverage](https://codecov.io/gh/SciML/UDEComponents.jl/branch/main/graph/badge.svg)](https://codecov.io/gh/SciML/UDEComponents.jl)
[![Stable](https://img.shields.io/badge/docs-stable-blue.svg)](https://SciML.github.io/ModelingToolkitNeuralNets.jl/stable/)
[![Dev](https://img.shields.io/badge/docs-dev-blue.svg)](https://SciML.github.io/ModelingToolkitNeuralNets.jl/dev/)
[![Build Status](https://github.com/SciML/ModelingToolkitNeuralNets.jl/actions/workflows/CI.yml/badge.svg?branch=main)](https://github.com/SciML/ModelingToolkitNeuralNets.jl/actions/workflows/CI.yml?query=branch%3Amain)
[![Coverage](https://codecov.io/gh/SciML/ModelingToolkitNeuralNets.jl/branch/main/graph/badge.svg)](https://codecov.io/gh/SciML/ModelingToolkitNeuralNets.jl)
[![ColPrac: Contributor's Guide on Collaborative Practices for Community Packages](https://img.shields.io/badge/ColPrac-Contributor%27s%20Guide-blueviolet)](https://github.com/SciML/ColPrac)
[![Aqua](https://raw.githubusercontent.com/JuliaTesting/Aqua.jl/master/badge.svg)](https://github.com/JuliaTesting/Aqua.jl)

Expand Down
2 changes: 1 addition & 1 deletion docs/Project.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[deps]
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"
UDEComponents = "f162e290-f571-43a6-83d9-22ecc16da15f"
ModelingToolkitNeuralNets = "f162e290-f571-43a6-83d9-22ecc16da15f"

[compat]
Documenter = "1.3"
12 changes: 6 additions & 6 deletions docs/make.jl
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
using UDEComponents
using ModelingToolkitNeuralNets
using Documenter

cp("./docs/Manifest.toml", "./docs/src/assets/Manifest.toml", force = true)
cp("./docs/Project.toml", "./docs/src/assets/Project.toml", force = true)

DocMeta.setdocmeta!(UDEComponents, :DocTestSetup, :(using UDEComponents); recursive = true)
DocMeta.setdocmeta!(ModelingToolkitNeuralNets, :DocTestSetup, :(using ModelingToolkitNeuralNets); recursive = true)

makedocs(;
modules = [UDEComponents],
modules = [ModelingToolkitNeuralNets],
authors = "Sebastian Micluța-Câmpeanu <[email protected]> and contributors",
sitename = "UDEComponents.jl",
sitename = "ModelingToolkitNeuralNets.jl",
format = Documenter.HTML(;
canonical = "https://SciML.github.io/UDEComponents.jl",
canonical = "https://SciML.github.io/ModelingToolkitNeuralNets.jl",
edit_link = "main",
assets = String[]
),
Expand All @@ -21,6 +21,6 @@ makedocs(;
)

deploydocs(;
repo = "github.com/SciML/UDEComponents.jl",
repo = "github.com/SciML/ModelingToolkitNeuralNets.jl",
devbranch = "main"
)
8 changes: 4 additions & 4 deletions docs/src/index.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
```@meta
CurrentModule = UDEComponents
CurrentModule = ModelingToolkitNeuralNets
```

# UDEComponents
# ModelingToolkitNeuralNets

Documentation for [UDEComponents](https://github.com/SebastianM-C/UDEComponents.jl).
Documentation for [ModelingToolkitNeuralNets](https://github.com/SebastianM-C/ModelingToolkitNeuralNets.jl).

```@index
```

```@autodocs
Modules = [UDEComponents]
Modules = [ModelingToolkitNeuralNets]
```

## Reproducibility
Expand Down
2 changes: 1 addition & 1 deletion src/UDEComponents.jl → src/ModelingToolkitNeuralNets.jl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module UDEComponents
module ModelingToolkitNeuralNets

using ModelingToolkit: @parameters, @named, ODESystem, t_nounits
using ModelingToolkitStandardLibrary.Blocks: RealInput, RealOutput
Expand Down
6 changes: 3 additions & 3 deletions test/lotka_volterra.jl
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using Test
using JET
using UDEComponents
using ModelingToolkitNeuralNets
using ModelingToolkit
using ModelingToolkitStandardLibrary.Blocks
using OrdinaryDiffEq
Expand Down Expand Up @@ -88,8 +88,8 @@ of = OptimizationFunction{true}(loss, AutoForwardDiff())

ps = (prob, sol_ref, get_vars, get_refs);

@test_call target_modules=(UDEComponents,) loss(x0, ps)
@test_opt target_modules=(UDEComponents,) loss(x0, ps)
@test_call target_modules=(ModelingToolkitNeuralNets,) loss(x0, ps)
@test_opt target_modules=(ModelingToolkitNeuralNets,) loss(x0, ps)

@test all(.!isnan.(ForwardDiff.gradient(Base.Fix2(of, ps), x0)))

Expand Down
20 changes: 10 additions & 10 deletions test/qa.jl
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
using Test
using UDEComponents
using ModelingToolkitNeuralNets
using Aqua
using JET

@testset verbose=true "Code quality (Aqua.jl)" begin
Aqua.find_persistent_tasks_deps(UDEComponents)
Aqua.test_ambiguities(UDEComponents, recursive = false)
Aqua.test_deps_compat(UDEComponents)
Aqua.test_piracies(UDEComponents)
Aqua.test_project_extras(UDEComponents)
Aqua.test_stale_deps(UDEComponents, ignore = Symbol[])
Aqua.test_unbound_args(UDEComponents)
Aqua.test_undefined_exports(UDEComponents)
Aqua.find_persistent_tasks_deps(ModelingToolkitNeuralNets)
Aqua.test_ambiguities(ModelingToolkitNeuralNets, recursive = false)
Aqua.test_deps_compat(ModelingToolkitNeuralNets)
Aqua.test_piracies(ModelingToolkitNeuralNets)
Aqua.test_project_extras(ModelingToolkitNeuralNets)
Aqua.test_stale_deps(ModelingToolkitNeuralNets, ignore = Symbol[])
Aqua.test_unbound_args(ModelingToolkitNeuralNets)
Aqua.test_undefined_exports(ModelingToolkitNeuralNets)
end

@testset "Code linting (JET.jl)" begin
JET.test_package(UDEComponents; target_defined_modules = true)
JET.test_package(ModelingToolkitNeuralNets; target_defined_modules = true)
end
4 changes: 2 additions & 2 deletions test/runtests.jl
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
using UDEComponents
using ModelingToolkitNeuralNets
using Test
using SafeTestsets

@testset verbose=true "UDEComponents.jl" begin
@testset verbose=true "ModelingToolkitNeuralNets.jl" begin
@safetestset "QA" include("qa.jl")
@safetestset "Basic" include("lotka_volterra.jl")
end