Re: [Pdl-general] SciPDL move

2024-04-17 Thread Karl Glazebrook via pdl-general
Thanks, probably best to keep seperate as they seem quite orthogonal?KarlOn 17 Apr 2024, at 8:52 PM, Ed .  wrote:




Hi Karl,


This seems like a really good approach!


I'm wondering whether to piggyback off the same repo to host the upcoming Homebrew recipe for PDL, or make a new one? Probably the latter to minimise conflicts.


Best regards,
Ed


From: Karl Glazebrook via pdl-general 
Sent: 16 April 2024 2:35 AM
To: perldl 
Subject: [Pdl-general] SciPDL move
 

Hi all


I’ve moved my SciPDL distribution (easy MacOS kitchen sink install) to a new location:



















PDLPorters/SciPDL: This is a repository for creating SciPDL distributions (easy install of PDL on MacOS)

github.com














This means I can do ‘releases’ without mucking up the main GitHub repo (sorry Ed!)


I have even updated the pdl.perl.org web pages to point there, (first change in 2 years!)


Will add some more recent versions. I have 2.084 sitting on disk (Arm and Intel) so I will just re-check and put that up in the next few days, and then look at v2.087 which is hopefully straight forward…


I hope this is a good approach for the future.


best


Karl





___
pdl-general mailing list
pdl-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pdl-general


[Pdl-general] Plotting flat xyz data as an image.

2024-04-17 Thread Jovan Trujillo
Hi all,

I've been wracking my brain all morning trying to figure this out, but how
could I convert a set of 3 1D piddles containing xyz data into a matrix for
plotting as an image using PDL::Graphics::Gnuplot? Say for example:

use PDL;
use PDL::Graphics::Gnuplot qw/image gplot/;

my $x = flat(xvals(10,10)); # This is basically how x-coordinates are
output from my machine.
my $y = flat(yvals(10,10)); # Same format as x-coordinates
my $z = sequence(100)*rand(1); # Some dummy data for this example.

my $image; # How do I map $x,$y,$z into this 10x10 $image piddle?
image($image);

That's my basic problem. How do I map $x,$y,$z data into an $image matrix?

Thank you,
Jovan
___
pdl-general mailing list
pdl-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pdl-general


Re: [Pdl-general] $PDL::AutoLoader::Rescan = 1 on Windows 10

2024-04-17 Thread Jovan Trujillo
Yes, I will do that.

On Thu, Apr 11, 2024 at 10:57 AM Ed .  wrote:

> Hi Jovan,
>
>
>
> That’s much more helpful! Thank you.
>
>
>
> Could you edit your installed AutoLoader (use “perldoc -l PDL::AutoLoader”
> to locate it, and you might need to turn off “read-only” on it) and add
> some debugging to see what’s going on?
>
>
>
> Best regards,
>
> Ed
>
>
> --
> *From:* Jovan Trujillo 
> *Sent:* Thursday, April 11, 2024 6:19:30 PM
> *To:* Ed . 
> *Cc:* perldl 
> *Subject:* Re: [Pdl-general] $PDL::AutoLoader::Rescan = 1 on Windows 10
>
> Hi Ed,
>
> Thanks for the reply.
>
> Here is my version of Strawberry Perl installed on Windows 10 Enterprise
> Version 22H2 OS Build 19045.4291:
>
> --
>  Welcome to Strawberry Perl PDL Edition!
>  * URL - http://strawberryperl.com + http://pdl.perl.org
>  * to launch perl script run:  perl c:\my\scripts\pdl-test.pl
>  * to start PDL console run:   pdl2
>  * to update PDL run:  cpanm PDL
>  * to install extra module run:cpanm PDL::Any::Module
>   or if previous fails:ppm PDL::Any::Module
>  * or you can use dev tools like:  gcc, g++, gfortran, gmake
>  * see README.TXT for more info
> --
> Perl executable: C:\strawberry-perl\perl\bin\perl.exe
> Perl version   : 5.26.1 / MSWin32-x64-multi-thread
> PDL version: 2.087
>
> Here is an example with perldl repl:
>
> perlDL shell v1.357
>  PDL comes with ABSOLUTELY NO WARRANTY. For details, see the file
>  'COPYING' in the PDL distribution. This is free software and you
>  are welcome to redistribute it under certain conditions, see
>  the same file for details.
> ReadLines, NiceSlice, MultiLines  enabled
> Reading PDL/default.pdl...
> Found docs database C:\strawberry-perl\perl\site\lib\PDL\pdldoc.db
> Type 'help' for online help
> Type 'demo' for online demos
> Loaded PDL v2.087 (supports bad values)
>
> Note: AutoLoader not enabled ('use PDL::AutoLoader' recommended)
>
> pdl> use PDL::AutoLoader; $PDL::AuotLoader::Rescan = 1; sayHello();
> Loading sayHello.pdl ...found ./sayHello.pdl
> Hello Bob
>
> pdl> # I change "Bob" to "Fred" and save. Run again.
> pdl> sayHello();
> Hello Bob
>
> Same thing happens in pdl2:
>
> load_rcfile: got $HOME = C:\strawberry-perl\data
> load_rcfile: loading PDL/default.pdl
> Perldl2 Shell v0.008
>   PDL comes with ABSOLUTELY NO WARRANTY. For details, see the file
>   'COPYING' in the PDL distribution. This is free software and you
>   are welcome to redistribute it under certain conditions, see
>   the same file for details.
> Loaded plugins:
>   CleanErrors
>   Commands
>   Completion
>   CompletionDriver::INC
>   CompletionDriver::Keywords
>   CompletionDriver::LexEnv
>   CompletionDriver::Methods
>   DDS
>   FindVariable
>   History
>   LexEnv
>   MultiLine::PPI
>   NiceSlice
>   PDLCommands
>   Packages
>   PrintControl
>   ReadLineHistory
> Type 'help' for online help
> Type Ctrl-D or quit to exit
> Loaded PDL v2.087
>
> pdl> use PDL::AutoLoader; $PDL::AutoLoader::Rescan = 1; sayHello();
> Hello Fred
> pdl> # Change "Fred" to "Bob" and save file. Rescan doesn't notice the new
> timestamp on the file.
> pdl> sayHello();
> Hello Fred
>
> Hope this helps.
>
> Thank you,
> Jovan
>
> On Wed, Apr 10, 2024 at 5:11 PM Ed .  wrote:
>
> Hi Jovan,
>
>
>
> You’re going to need to share more information on exactly what you did and
> what happened as a result.
>
>
>
> Which versions of Perl (is it Strawberry? Which version?) and PDL are you
> running?
>
> Which REPL is it?
>
> What was the script before and after you changed it, and how do you know
> it didn’t get rescanned?
>
>
>
> Best regards,
>
> Ed
>
>
> --
> *From:* Jovan Trujillo 
> *Sent:* Wednesday, April 10, 2024 10:20:15 PM
> *To:* perldl 
> *Subject:* [Pdl-general] $PDL::AutoLoader::Rescan = 1 on Windows 10
>
> I'm trying to understand if I change a *.pdl function and save it on
> Windows 10, why doesn't PDL::AutoLoader recognize the change and reload the
> script? I have set $PDL::AutoLoader::Rescan = 1 in my REPL, but it doesn't
> work. It only runs the original *.pdl script before I changed it.
>
>
>
___
pdl-general mailing list
pdl-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pdl-general


Re: [Pdl-general] SciPDL move

2024-04-17 Thread Ed .
Hi Karl,

This seems like a really good approach!

I'm wondering whether to piggyback off the same repo to host the upcoming 
Homebrew recipe for PDL, or make a new one? Probably the latter to minimise 
conflicts.

Best regards,
Ed


From: Karl Glazebrook via pdl-general 
Sent: 16 April 2024 2:35 AM
To: perldl 
Subject: [Pdl-general] SciPDL move

Hi all

I’ve moved my SciPDL distribution (easy MacOS kitchen sink install) to a new 
location:


[SciPDL.png]
PDLPorters/SciPDL: This is a repository for creating SciPDL distributions (easy 
install of PDL on MacOS)
github.com

This means I can do ‘releases’ without mucking up the main GitHub repo (sorry 
Ed!)

I have even updated the pdl.perl.org web pages to point 
there, (first change in 2 years!)

Will add some more recent versions. I have 2.084 sitting on disk (Arm and 
Intel) so I will just re-check and put that up in the next few days, and then 
look at v2.087 which is hopefully straight forward…

I hope this is a good approach for the future.

best

Karl

___
pdl-general mailing list
pdl-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pdl-general