« first day (1797 days earlier)      last day (1425 days later) » 

9:38 AM
Interesting stuff related to Vandermonde interpolation (polyfit, polyval) chebfun.org/examples/linalg/VandermondeArnoldi.html . Perhaps you'd find this interesting @LuisMendo?
 
10:05 AM
Krylov spaces ftw
 
Krylov spaces or how I stopped worrying about optimization (and confused shit-ton of engineers)
 
haha, are you working for buzzfeed:maths now? or is that your latest medium article? :P
 
@Dev-iL Heh. I like the logo with the Chebycheff polynomial
Reading it now
 
@flawr 😃 Its my past PhD student crying reading the theory of CGLS
 
^^ "the horrors of the monomial basis" :-D
 
10:19 AM
Justice for Chebyshov!
 
11:00 AM
@LuisMendo I get that the logo is the only thing you found interesting... Oh well :)
 
11:42 AM
@Dev-iL I took a quick reading. I got that using monomials as a basis is not a good idea, and that the authors present some sort of alternative. But I don't normally use Vandermonde matrices or monomial bases, so... :-)
 
 
4 hours later…
3:21 PM
1 message moved to Trash can
 
:49524323 That's a tough cookie in general. Messing with sys.path is considered a bad practice (despite github.com/…).
heh
 
ah, just on time
 
question still valid?
 
added` __inits__` everywhere
valid for my case.
 
Yeah, that's the right way. With or without making your package installable.
That second bit is what I ended up doing to my stuff.
 
3:22 PM
bah, its like 5 fucntions I put together and now people want access to them
 
make it an installable utility
you need something like 10 lines in a setup.py, after which they can install it with pip from github
 
Maybe later, its still super broken and minimal. Outputs rad images, but still super super wonky. I'll try no to make it too easy to use for now :D
 
hehe, good strategy
anyway, if you end up wanting to make it installable:
Apr 29 '19 at 7:31, by Andras Deak
./
├── module1
│   ├── __init__.py
│   ├── module1.py
│   └── misc
├── LICENSE
├── module2
│   ├── __init__.py
│   ├── module2.py
│   └── sample
│       └── input.inp
├── module3
│   ├── __init__.py
│   └── module3.py
├── README.md
└── setup.py
Apr 29 '19 at 7:32, by Andras Deak
some of the 3 modules import one another, and simply using from module1 import ... which assumes that the others are installed
Apr 29 '19 at 7:33, by Andras Deak
import setuptools

setuptools.setup(
    name="big_package_name",
    version="0.0.1",
    author="author",
    description="foo",
    packages=['module1', 'module2', 'module3'],
    install_requires=['numpy', 'scipy', 'matplotlib'],
    classifiers=(
        "Programming Language :: Python :: 3",
        "Operating System :: OS Independent",
    ),
)
installing all 3 modules as separate packages made me not have to fight with relative imports
and that last block is my setup.py
 
quite cool
 
the install_requires will pull those in automatically when you pip install, etc.
 
3:31 PM
yes, remember that from pytigre
 
python packaging is a nightmare in general, and setuptools + setup.py is being superseded by pyproject.toml, but in this simple case it's alright
 
"fight with relative imports" indeed
 
@flawr They don't have to be difficult, I just don't get them :)
 
@AndrasDeak It's comforting to know that you don't get it either.
 
To be fair I never really tried to learn the ropes...I had a brief run-in with the above project, but making them separate installable packages made sense anyway.
I suspect that with an installable package it will work a lot better.
 
4:02 PM
posted on June 01, 2020 by Johanna Pingel

With two releases every year, you may find it challenging to keep up with the latest features.* In fact, some people who work here feel the same way! This release, I asked the Product Managers about... read more >>

 
 
5 hours later…
9:20 PM
@Adriaan have you seen instagram.com/p/CA4xGUxgd5f
 

« first day (1797 days earlier)      last day (1425 days later) »