Comments (13)
Hi Max. Could you try putting your code in a function or using if __name__ == "__main__"
?
Something like:
if __name__ == "__main__":
# your code goes here.
from pyautolens.
Yes, I’m going to try
from pyautolens.
It seems the fitting procedure has been started successfully, it's running. I've used
if name == "main":
# your code goes here.
from pyautolens.
from pyautolens.
Do you mean the module spawn.py?
from pyautolens.
@rhayes777 Any advise for how I should build this into example scripts to ensure it doesnt crop up again? Would be annoying to have extra lines of code (e.g. if name == "main"
) in every script.
from pyautolens.
I don't think there is anyway to avoid this exception on MacOS doing multiprocessing without that check. I'll have a dig just in case.
from pyautolens.
Hi, I’m afraid (though I’m not sure this is the true reason) there is some problem with the solution you have found.
In fact whenever I launch the script with that command you suggested, I’m leaved with tons of background python multiprocessing running process and this gives me an out of memory problem. I have to kill all of them manually. I repeat, I don’t know if the reason is that command, but I’ve never had this problem before.
from pyautolens.
@rhayes777 I think we need to stress-test parallelization of multiple PYthon versions (3.6 -> 3.9) and for different numpy / numba versions.
I suspect this issue hasnt cropped up before because I am used to using 3.6.
from pyautolens.
from pyautolens.
from pyautolens.
They are on numpy==1.21.5
, and I think numpy threading could be the cause of this (Albeit it could be a separate issue with multiprocessing + dynesty).
from pyautolens.
Also on Linux (windows subsystem for linux techncially)
from pyautolens.
Related Issues (20)
- Self interacting dark matter profile deflections
- Hernquist Light Profile
- Decide how to pass size of projected grid and whether to remove its centre through code
- Getting an AttributeError in the mass fitting code given on the GitHub page. HOT 6
- Dude about how to translate the results from pyautolens to lenstronomy for basic modeling. HOT 4
- Saving / Loading a Tracer to .json format
- Source Plane Interpolation Mapping
- Voronoi Interpolation HOT 4
- Delaunay Interpolation HOT 7
- Delaunay Implementation HOT 9
- W Tilde Imaging With Interpolation
- Create Tracer from result with same API as instance
- Galaxy.dict() not returning parameters correctly HOT 3
- How to handle memory error while modeling a dataset? HOT 2
- Unit test failing due to from_dict HOT 1
- API consistency issues? HOT 1
- Multicore task in a cluster HOT 10
- Autoconf conf.py - Key error HOT 5
- Fix Aggregator Tests
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pyautolens.