-
How about converting `Dict()` to `NamedTuple()`?
```julia
julia> dict = Dict(:a => 1)
Dict{Symbol, Int64} with 1 entry:
:a => 1
julia> using NamedTupleTools
julia> NamedTupleTools.namedtup…
-
In a package, put the following code:
```julia
using ChainRulesCore: @non_differentiable
f(x::Int) = x
@non_differentiable f(x::Int)
```
then, analyze the package with `report_package(MyPa…
-
I'm looking to take two jacobians of the network neural network (with respect to its inputs) and then do parameter based optimization. Up front, I want to thank you for taking the time to read this, I…
-
**Describe the bug**
- I'm following the walkthrough for the prey-predator example: https://juliadynamics.github.io/Agents.jl/stable/examples/predator_prey/
- When I get to the final step (abmvideo)…
-
Hello,
I was trying to append! a NamedTuple to Table... and noticed this odd behiavor
```julia
julia> t = Table(a = [1, 2, 3], b = [2.0, 4.0, 6.0])
Table with 2 columns and 3 rows:
a …
-
## Reporting a bug
- [x] I have tried using the latest released version of Numba (most recent is
visible in the change log (https://github.com/numba/numba/blob/master/CHANGE_LOG).
- [x] I have inc…
-
- [x] It should be possible to call `_make` on an instance, as a proper classmethod (?)
- [x] `_make` and `_replace` should bind to SelfType, depends on #1212
- [ ] `_asdict` should return closer ma…
-
### Proposed new feature or change:
Curently, it's allowed to pass some `typing.NamedTuple` instance to e.g. `numpy.empty` or `numpy.zeros`, but somewhere along the way, it gets converted to a vani…
-
It seems like `nb.optional` doesn't work with `nb.types.NamedTuple` (it does with `nb.types.Tuple`, though). Here is the minimum repro:
```python
import numba as nb
from typing import NamedTuple
…
ocmob updated
4 months ago
-
Note that a BGC model needs to have a `biogeochemical_auxiliary_fields` method that returns a NamedTuple of the form `(field_name = Oceananigans Field object,...)`.
Currently, in Agate the user ca…