# Latest

**URL:** https://discourse.julialang.org/latest.md?page=614

[Latest](https://discourse.julialang.org/latest.md) · [Categories](https://discourse.julialang.org/categories.md) · [Tags](https://discourse.julialang.org/tags.md)

**Page:** 615

---

## [Global access from within module function](https://discourse.julialang.org/t/global-access-from-within-module-function/103092)

<div class="topic-metadata">

**Author:** [@Leibniz](https://discourse.julialang.org/u/Leibniz)\
**Replies:** 4\
**Last updated:** [August 22, 2023, 10:40pm UTC](https://discourse.julialang.org/t/global-access-from-within-module-function/103092 "2023-08-22T22:40:29Z")

</div>

Hi guys why does the following not work and how can one fix it? module MyModule x = 5 function func(x) return (global x) + x end end using .MyModule MyModule.func(3) It gives syntax: mispl…

---

## [Point2f removed from Makie?](https://discourse.julialang.org/t/point2f-removed-from-makie/103088)

<div class="topic-metadata">

**Author:** [@marianoarnaiz](https://discourse.julialang.org/u/marianoarnaiz)\
**Replies:** 3\
**Last updated:** [August 22, 2023, 9:40pm UTC](https://discourse.julialang.org/t/point2f-removed-from-makie/103088 "2023-08-22T21:40:13Z")

</div>

Hi everyone. I have some older Makie based plots, and I am reusing it and now I get this error: ERROR: LoadError: UndefVarError: \`Point2f\` not defined Stacktrace: \[1\] top-level scope @ util.jl:589 \[2\] include(mod…

---

## [Coupled PDEs with NeuralPDE.jl](https://discourse.julialang.org/t/coupled-pdes-with-neuralpde-jl/103064)

<div class="topic-metadata">

**Author:** [@Knud\_Sorensen](https://discourse.julialang.org/u/Knud_Sorensen)\
**Replies:** 2\
**Last updated:** [August 22, 2023, 8:08pm UTC](https://discourse.julialang.org/t/coupled-pdes-with-neuralpde-jl/103064 "2023-08-22T20:08:48Z")

</div>

Does anyone have an example on how to use NeuralPDE.jl with Coupled PDEs ? All the examples I have seen only use one function, I would like to solve 8 coupled equations with 8 functions. So, if an example with more than…

---

## [Does Vector{Int64} not inherit from Vector{Number}?](https://discourse.julialang.org/t/does-vector-int64-not-inherit-from-vector-number/103080)

<div class="topic-metadata">

**Author:** [@Leibniz](https://discourse.julialang.org/u/Leibniz)\
**Replies:** 2\
**Last updated:** [August 22, 2023, 4:41pm UTC](https://discourse.julialang.org/t/does-vector-int64-not-inherit-from-vector-number/103080 "2023-08-22T16:41:53Z")

</div>

Greetings, I am just coding up my first little numerical simulation in Julia. long story short: Why does this not work? function func( x:: Vector{Number} ) print(x) end func(\[1\]) It gives MethodError: no meth…

---

## [XLSX parsing DateTime](https://discourse.julialang.org/t/xlsx-parsing-datetime/103071)

<div class="topic-metadata">

**Author:** [@Jake](https://discourse.julialang.org/u/Jake)\
**Replies:** 2\
**Last updated:** [August 22, 2023, 4:35pm UTC](https://discourse.julialang.org/t/xlsx-parsing-datetime/103071 "2023-08-22T16:35:38Z")

</div>

I am loading data from an Excel file that includes DateTime data. The DateTime string, when the time is 0:00 is parsed as a Date instead of a DateTime. An example of the data being loaded is: Date a 2023-07-11 0:00 45…

---

## [Inner and Outer constructors with Parameters.jl prevent incremental compilation?](https://discourse.julialang.org/t/inner-and-outer-constructors-with-parameters-jl-prevent-incremental-compilation/103061)

<div class="topic-metadata">

**Author:** [@Iddingsite](https://discourse.julialang.org/u/Iddingsite)\
**Replies:** 2\
**Last updated:** [August 22, 2023, 4:21pm UTC](https://discourse.julialang.org/t/inner-and-outer-constructors-with-parameters-jl-prevent-incremental-compilation/103061 "2023-08-22T16:21:49Z")

</div>

Hi all! I am trying to familiarise myself with outer and inner constructors and I would like to know if I am doing something wrong. I wrote a structure with 1 outer and 1 inner constructor, using also Parameters and Uni…

---

## [Multiple-threading does not increase speed in my 16-threads workstation, I am wondering is there something wrong in my code?](https://discourse.julialang.org/t/multiple-threading-does-not-increase-speed-in-my-16-threads-workstation-i-am-wondering-is-there-something-wrong-in-my-code/103076)

<div class="topic-metadata">

**Author:** [@Kim](https://discourse.julialang.org/u/Kim)\
**Replies:** 3\
**Last updated:** [August 22, 2023, 4:02pm UTC](https://discourse.julialang.org/t/multiple-threading-does-not-increase-speed-in-my-16-threads-workstation-i-am-wondering-is-there-something-wrong-in-my-code/103076 "2023-08-22T16:02:25Z")

</div>

Hi, I am recently trying to leverage multiple threading to speed my code. However, even though I likely realized multiple threading, my code run slower. Could somebody proficient in this have a skim on this? My code is p…

---

## [Error when using @cfunction](https://discourse.julialang.org/t/error-when-using-cfunction/103067)

<div class="topic-metadata">

**Author:** [@sletz](https://discourse.julialang.org/u/sletz)\
**Replies:** 4\
**Last updated:** [August 22, 2023, 3:12pm UTC](https://discourse.julialang.org/t/error-when-using-cfunction/103067 "2023-08-22T15:12:57Z")

</div>

The following code addVerticalSlider = @cfunction( $\_addVerticalSlider, Cvoid, (Ptr{Cvoid}, Cstring, Ptr{T}, T, T, T, T)) gives ERROR: TypeError: in cfunction method definition, expected Type, got a value…

---

## [\[fyi\] Pkg.precompile error](https://discourse.julialang.org/t/fyi-pkg-precompile-error/103073)

<div class="topic-metadata">

**Author:** [@bcon](https://discourse.julialang.org/u/bcon)\
**Replies:** 0\
**Last updated:** [August 22, 2023, 3:04pm UTC](https://discourse.julialang.org/t/fyi-pkg-precompile-error/103073 "2023-08-22T15:04:52Z")

</div>

I’ll repeat here for search/posterity the error message and resolution of an less-than-clear precompile error in v1.9.2: (Convenient) pkg\> up Updating registry at \`.julia\\registries\\General.toml\` No Changes to \`Co…

---

## [Julia crashes when trying to call Windows API EnumWindows](https://discourse.julialang.org/t/julia-crashes-when-trying-to-call-windows-api-enumwindows/103065)

<div class="topic-metadata">

**Author:** [@taotree](https://discourse.julialang.org/u/taotree)\
**Replies:** 0\
**Last updated:** [August 22, 2023, 1:47pm UTC](https://discourse.julialang.org/t/julia-crashes-when-trying-to-call-windows-api-enumwindows/103065 "2023-08-22T13:47:50Z")

</div>

I’m guessing I just have the signature wrong or something here? This is Julia 1.9.0 on Windows 11. Trying to call the Win32 API EnumWindows. By the error message, it appears to be something wrong with the callback. us…

---

## [Atomic much slower than @spawn-ed tasks](https://discourse.julialang.org/t/atomic-much-slower-than-spawn-ed-tasks/103055)

<div class="topic-metadata">

**Author:** [@AdaemmerP](https://discourse.julialang.org/u/AdaemmerP)\
**Replies:** 4\
**Last updated:** [August 22, 2023, 1:09pm UTC](https://discourse.julialang.org/t/atomic-much-slower-than-spawn-ed-tasks/103055 "2023-08-22T13:09:04Z")

</div>

The Julia manual offers two solutions to avoid a race condition when using @threads, namely @spawn-ed tasks and atomic operations. The manual states that the atomic approach “may be more performant depending on the chara…

---

## [Need to define types before use](https://discourse.julialang.org/t/need-to-define-types-before-use/103054)

<div class="topic-metadata">

**Author:** [@Kruxigt](https://discourse.julialang.org/u/Kruxigt)\
**Replies:** 7\
**Last updated:** [August 22, 2023, 9:32am UTC](https://discourse.julialang.org/t/need-to-define-types-before-use/103054 "2023-08-22T09:32:04Z")

</div>

Hi good folks! One of my pet peeves with Julia is the need to define types in the code above the lines where they are used. I have a few questions regarding this. 1, Is this a technical limitation or a design choice? 2…

---

## [\[ANN\] Annonuncing PlutoVSCodeDebugger.jl](https://discourse.julialang.org/t/ann-annonuncing-plutovscodedebugger-jl/103030)

<div class="topic-metadata">

**Author:** [@disberd](https://discourse.julialang.org/u/disberd)\
**Replies:** 2\
**Last updated:** [August 22, 2023, 6:33am UTC](https://discourse.julialang.org/t/ann-annonuncing-plutovscodedebugger-jl/103030 "2023-08-22T06:33:11Z")

</div>

Dear All, I am very happy to announce PlutoVSCodeDebugger, a package that was just recently registered on the General Registry. From the package README: This package provides a very experimental connection between a P…

---

## [Cannot run one package extension but the other](https://discourse.julialang.org/t/cannot-run-one-package-extension-but-the-other/103051)

<div class="topic-metadata">

**Author:** [@singularitti](https://discourse.julialang.org/u/singularitti)\
**Replies:** 2\
**Last updated:** [August 22, 2023, 2:51am UTC](https://discourse.julialang.org/t/cannot-run-one-package-extension-but-the-other/103051 "2023-08-22T02:51:36Z")

</div>

I have the following code here, where I define 2 package extensions: BrillouinSpglibExt & PeriodicTableExt. However, I can run the extension BrillouinSpglibExt but not the PeriodicTableExt. I met the following errors whe…

---

## [splitDict() function from PuLP](https://discourse.julialang.org/t/splitdict-function-from-pulp/103050)

<div class="topic-metadata">

**Author:** [@nemoincognito](https://discourse.julialang.org/u/nemoincognito)\
**Replies:** 1\
**Last updated:** [August 22, 2023, 2:09am UTC](https://discourse.julialang.org/t/splitdict-function-from-pulp/103050 "2023-08-22T02:09:34Z")

</div>

Hi I am migrating a lot of code over from PuLP to JuMP and just wanted to suggest that Julia put in a splitDict() function which is useful for Network Flow optimization work. I’ve added something that works below. funct…

---

## [How to stop test output from automatically displaying in terminal pane](https://discourse.julialang.org/t/how-to-stop-test-output-from-automatically-displaying-in-terminal-pane/103047)

<div class="topic-metadata">

**Author:** [@brianguenter](https://discourse.julialang.org/u/brianguenter)\
**Replies:** 2\
**Last updated:** [August 22, 2023, 1:54am UTC](https://discourse.julialang.org/t/how-to-stop-test-output-from-automatically-displaying-in-terminal-pane/103047 "2023-08-22T01:54:00Z")

</div>

I’m using the TestItemRunner.jl package to do my testing in VSCode. The terminal panel recently started switching to another terminal to display the test output every time I run tests. I don’t want it to do this and did…

---

## [Where are Julia users who want to meet up?](https://discourse.julialang.org/t/where-are-julia-users-who-want-to-meet-up/6298)

<div class="topic-metadata">

**Author:** [@jballanc](https://discourse.julialang.org/u/jballanc)\
**Replies:** 56\
**Last updated:** [August 22, 2023, 1:35am UTC](https://discourse.julialang.org/t/where-are-julia-users-who-want-to-meet-up/6298 "2023-08-22T01:35:34Z")

</div>

I thought it might be useful to have a single thread to collect where everyone looking for a potential meet up is located and whether or not they’d be willing to help with organization. So, to kick things off… Locati…

---

## [Find string with special characters in data frame read with the CSV package](https://discourse.julialang.org/t/find-string-with-special-characters-in-data-frame-read-with-the-csv-package/102967)

<div class="topic-metadata">

**Author:** [@NunonuN](https://discourse.julialang.org/u/NunonuN)\
**Replies:** 14\
**Last updated:** [August 22, 2023, 1:03am UTC](https://discourse.julialang.org/t/find-string-with-special-characters-in-data-frame-read-with-the-csv-package/102967 "2023-08-22T01:03:43Z")

</div>

Supposing I have the data frame: using DataFrames df = DataFrame(year = \[2012, 1993, 1991, 1984, 1957, 1972, 1980\], lang = \["Julia", "R", "Python", "Matlab", "Fortran", "C", "C++"\]) I can find the creation year of C++…

---

## [How to pass additional parameters to curve\_fit in Julia?](https://discourse.julialang.org/t/how-to-pass-additional-parameters-to-curve-fit-in-julia/103031)

<div class="topic-metadata">

**Author:** [@trg818](https://discourse.julialang.org/u/trg818)\
**Replies:** 3\
**Last updated:** [August 22, 2023, 1:00am UTC](https://discourse.julialang.org/t/how-to-pass-additional-parameters-to-curve-fit-in-julia/103031 "2023-08-22T01:00:46Z")

</div>

Hi, I have a dataset that I would like to fit to my function pbase(x,pars) with Julia’s curve\_fit, whereby pars is supposed to contain a non-fitting parameter that controls which functional model is chosen. The function…

---

## [Bootstrap in Global Sensitivity Analysis (GSA)](https://discourse.julialang.org/t/bootstrap-in-global-sensitivity-analysis-gsa/103045)

<div class="topic-metadata">

**Author:** [@xztt](https://discourse.julialang.org/u/xztt)\
**Replies:** 1\
**Last updated:** [August 22, 2023, 12:46am UTC](https://discourse.julialang.org/t/bootstrap-in-global-sensitivity-analysis-gsa/103045 "2023-08-22T00:46:39Z")

</div>

Hi There, Running the basic example below the bootstrapping just returns nothing So no standard errors are returned at all. Playing with sobolsensitivity.jl package if I go in and hard code nboot I can return bootstra…

---

## [PrecompileTools: precompilation causing allocations in Julia 1.6.7](https://discourse.julialang.org/t/precompiletools-precompilation-causing-allocations-in-julia-1-6-7/103039)

<div class="topic-metadata">

**Author:** [@lmiq](https://discourse.julialang.org/u/lmiq)\
**Replies:** 9\
**Last updated:** [August 22, 2023, 12:45am UTC](https://discourse.julialang.org/t/precompiletools-precompilation-causing-allocations-in-julia-1-6-7/103039 "2023-08-22T00:45:59Z")

</div>

TL;DR: When using PrecompileTools.jl and loading a package in Julia 1.6.7, allocations appear that are not expected in some functions. How can that be? The issue: I know that precompilation makes sense for Julia \>=1.9.…

---

## [Optimization on Vector-ODEs for parameter estimation](https://discourse.julialang.org/t/optimization-on-vector-odes-for-parameter-estimation/103008)

<div class="topic-metadata">

**Author:** [@Laurendie\_Magistrali](https://discourse.julialang.org/u/Laurendie_Magistrali)\
**Replies:** 3\
**Last updated:** [August 21, 2023, 11:53pm UTC](https://discourse.julialang.org/t/optimization-on-vector-odes-for-parameter-estimation/103008 "2023-08-21T23:53:46Z")

</div>

So I’m trying to estimate Parameters from given Data, which I generated by solving the ODE problem with given parameters first and then adding a random stray around the result. Using the build\_loss\_objective I generated …

---

## [How to analyse sensitivity in multi-optimal solution?](https://discourse.julialang.org/t/how-to-analyse-sensitivity-in-multi-optimal-solution/102938)

<div class="topic-metadata">

**Author:** [@jack\_lee](https://discourse.julialang.org/u/jack_lee)\
**Replies:** 6\
**Last updated:** [August 21, 2023, 10:28pm UTC](https://discourse.julialang.org/t/how-to-analyse-sensitivity-in-multi-optimal-solution/102938 "2023-08-21T22:28:39Z")

</div>

Here is the problem I meet: find the best plan; How much should the profit per unit of product III increase to make it worthwhile to arrange production? What is the range of variation of the profit of product I that …

---

## [Getting started with PrecompileTools (Julia 1.9.2) - how to save precompiled code to disk?](https://discourse.julialang.org/t/getting-started-with-precompiletools-julia-1-9-2-how-to-save-precompiled-code-to-disk/103040)

<div class="topic-metadata">

**Author:** [@pluie](https://discourse.julialang.org/u/pluie)\
**Replies:** 3\
**Last updated:** [August 21, 2023, 9:39pm UTC](https://discourse.julialang.org/t/getting-started-with-precompiletools-julia-1-9-2-how-to-save-precompiled-code-to-disk/103040 "2023-08-21T21:39:38Z")

</div>

The documentation for PrecompileTools states “particularly with Julia 1.9 and higher, the precompiled code can be saved to disk, so that it doesn’t need to be compiled freshly in each Julia session.” It is unclear to me …

---

## [MOLFiniteDifference Cannot install](https://discourse.julialang.org/t/molfinitedifference-cannot-install/103017)

<div class="topic-metadata">

**Author:** [@joaofernandez2023](https://discourse.julialang.org/u/joaofernandez2023)\
**Replies:** 2\
**Last updated:** [August 21, 2023, 7:43pm UTC](https://discourse.julialang.org/t/molfinitedifference-cannot-install/103017 "2023-08-21T19:43:37Z")

</div>

The error that appears is the following: import Pkg; Pkg.add(“MOLFiniteDifference”) ERROR: The following package names could not be resolved: MOLFiniteDifference (not found in project, manifest or registry) In my co…

---

## [Prevent array re-allocation inside a loop (I am not allowed to allocate before the loop)](https://discourse.julialang.org/t/prevent-array-re-allocation-inside-a-loop-i-am-not-allowed-to-allocate-before-the-loop/103042)

<div class="topic-metadata">

**Author:** [@simon79](https://discourse.julialang.org/u/simon79)\
**Replies:** 10\
**Last updated:** [August 21, 2023, 7:11pm UTC](https://discourse.julialang.org/t/prevent-array-re-allocation-inside-a-loop-i-am-not-allowed-to-allocate-before-the-loop/103042 "2023-08-21T19:11:36Z")

</div>

Hi, I am executing a code similar to the simple one below under the constraint that I cannot allocate anything before the loop due to some constraints of the calling function. for it=1:ntime my\_fun() end where m…

---

## [ApproxFun.jl Spectral method for 2D Helmholtz equation on unbounded domains](https://discourse.julialang.org/t/approxfun-jl-spectral-method-for-2d-helmholtz-equation-on-unbounded-domains/102255)

<div class="topic-metadata">

**Author:** [@mleprovost](https://discourse.julialang.org/u/mleprovost)\
**Replies:** 2\
**Last updated:** [August 21, 2023, 5:50pm UTC](https://discourse.julialang.org/t/approxfun-jl-spectral-method-for-2d-helmholtz-equation-on-unbounded-domains/102255 "2023-08-21T17:50:00Z")

</div>

Hello, I would like to solve the following homogeneous Helmholtz problem with a spectral method on an 2D unbounded domain: (i \\alpha - \\Delta) \\hat{\\omega} = 0, \\;\\alpha \> 0 with a Dirichlet boundary condition for th…

---

## [How to debug "type Nothing has no field color"](https://discourse.julialang.org/t/how-to-debug-type-nothing-has-no-field-color/103038)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 2\
**Last updated:** [August 21, 2023, 4:43pm UTC](https://discourse.julialang.org/t/how-to-debug-type-nothing-has-no-field-color/103038 "2023-08-21T16:43:15Z")

</div>

I hit the following bug: Switch on the tutorial project · Issue #8 · bradcarman/ModelingToolkitDesigner.jl · GitHub But the author of the package cannot reproduce it. How can we find the reason for this bug? Can anybod…

---

## [Equivalent to Pandas "cut" in Julia DataFrames?](https://discourse.julialang.org/t/equivalent-to-pandas-cut-in-julia-dataframes/103036)

<div class="topic-metadata">

**Author:** [@abehersan](https://discourse.julialang.org/u/abehersan)\
**Replies:** 4\
**Last updated:** [August 21, 2023, 4:26pm UTC](https://discourse.julialang.org/t/equivalent-to-pandas-cut-in-julia-dataframes/103036 "2023-08-21T16:26:59Z")

</div>

Pretty self-explanatory. I have two arrays, x and y. I would like to bin the values of x into linearly-spaced bins and add the corresponding y values whose corresponding x falls into the same bin. I haven’t found an an…

---

## [Type of array containing units from Unitful](https://discourse.julialang.org/t/type-of-array-containing-units-from-unitful/103020)

<div class="topic-metadata">

**Author:** [@Iddingsite](https://discourse.julialang.org/u/Iddingsite)\
**Replies:** 8\
**Last updated:** [August 21, 2023, 3:13pm UTC](https://discourse.julialang.org/t/type-of-array-containing-units-from-unitful/103020 "2023-08-21T15:13:52Z")

</div>

Hello! I am struggling a bit with types coming from Unitful in arrays. Here is a simple MWE: using Unitful array\_unit = \[1.0, 3, 4\]u"yr" If I look at the type of array\_unit, I obtain this: typeof(array\_unit) Vector{…

[Previous page](https://discourse.julialang.org/latest.md?page=613)

[Next page](https://discourse.julialang.org/latest.md?page=615)
