GithubHelp home page GithubHelp logo

Comments (13)

gfabbian avatar gfabbian commented on August 30, 2024

I am seeing the same thing for M3 chips and independently found analogous (or worse results). I did try set input E-modes to 0 but still recover crazy B-modes spectra regardless. In the attached plot an example of the result, where theory in the error bar is the usual Gaussian "fsky-approximated" error bar.
Note that problem also affects E-modes even if only B-modes are purified.

For reference, also compiling from source didn't fix the problem so it is probably not a conda package problem.
Screenshot 2024-05-09 at 20 33 07

from namaster.

damonge avatar damonge commented on August 30, 2024

Could you try installing the latest version currently on conda (v2)? I'm hoping that any issues with the new Mac chips are now gone.

from namaster.

gfabbian avatar gfabbian commented on August 30, 2024

Sadly I'm seeing consistent results even with V2 (the variance is slightly worse)

Screenshot 2024-06-08 at 15 15 29

from namaster.

damonge avatar damonge commented on August 30, 2024

OK, thanks a lot.

The fact that this still happens with the newer version narrows it down, I think. Most of the code is completely different, so this can only be coming from a couple of things. I'm trying to test this on my own without a mac, but in the meantime, can I check:

  • Does this only happen with purification, and otherwise the code works as expected?
  • If the answer above is yes, can you check if the two apodised masks (generated in linux or mac) are the same?

from namaster.

damonge avatar damonge commented on August 30, 2024

@fjaviersanchez is not able to reproduce this with a fresh install from conda. His setup is:

  • M2 chip

  • healpy version: '1.16.6' , numpy version: '1.26.4', pymaster version: 2.0

@gfabbian can I check how this differs from yours?

from namaster.

damonge avatar damonge commented on August 30, 2024

(also, just to check, you are indeed installing from conda, correct?)

from namaster.

fjaviersanchez avatar fjaviersanchez commented on August 30, 2024

For more context, this is the recipe I followed to install the package:

conda create -n namaster2 namaster -c conda-forge
conda activate namaster2
conda install healpy -c conda-forge

I can play a bit with the numpy and healpy versions to see if those are responsible.

from namaster.

gfabbian avatar gfabbian commented on August 30, 2024

@fjaviersanchez are you using conda with osx-arm64 platform or osx-64?

I have the same numpy/healpy as yours and see the issue even when creating a new environment :(. I also confirm issues show up in purification. Happy to rerun any test code you have. I can also send out a notebook if useful.

from namaster.

fjaviersanchez avatar fjaviersanchez commented on August 30, 2024

Hmm, I just checked and this is my conda info:

platform : osx-arm64

I am using python 3.12. I haven't checked with 3.11 though, and I know that some people had issues with 3.11 with other packages. I can check!

from namaster.

gfabbian avatar gfabbian commented on August 30, 2024

I believe the only thing different at this point is the chip as I also have python 3.12.

from namaster.

damonge avatar damonge commented on August 30, 2024

Humm, but @jchamilton75 said he was using an M2 above...

from namaster.

gfabbian avatar gfabbian commented on August 30, 2024

@jchamilton75 can you confirm if you see the problem with a fresh environment installation?

from namaster.

damonge avatar damonge commented on August 30, 2024

After further offline iterations with @gfabbian (thanks so much for this @gfabbian ), it seems the issue was conflicting old versions of ducc0 installed via pip. When installing all packages consistently from conda the problem disappears (@gfabbian please correct me if what I just said is inaccurate).

I'll close this for now, but feel free to reopen if the issue reappears.

from namaster.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.