Comments (24)
There are two underscores before and after "file"
from xrt.
What is printed by python --version
?
from xrt.
from xrt.
According to the documentation, a list of FrameInfo is returned starting from version 3.5.
Don't know what is the problem here but I'll put an extra check there. Please try (the two middle lines are inserted):
mod = inspect.getmodule(frm[0])
if mod is None:
mod = inspect.getmodule(frm)
runfile = mod.__file__
Thank you for reporting it!
from xrt.
from xrt.
When in Spyder, try to run it in external system terminal.
from xrt.
from xrt.
What happens if you unzip the GitHub xrt package to any user location and run xrtQookStart.pyw from there?
from xrt.
from xrt.
I suspect you have several versions of xrt. Start python from your working directory and type
>>> import xrt
>>> xrt.__file__
Is the library location where you expect it to be? If not, delete it from there and try again.
from xrt.
from xrt.
Do you get a single iteration ready? (when you see values for N_all, N_good and Flux)
Try processes=1
in xrtr.run_ray_tracing(plots, repeats=24, ...)
from xrt.
from xrt.
Do you see an increased load in a system monitor?
from xrt.
from xrt.
I think that the problem with inspect
is indicative of a corrupt python installation. The easiest solution is to install the latest WinPython and forget all the troubles.
from xrt.
from xrt.
from xrt.
I think the problem is not with python version but rather with proper package management. With WinPython you get a portable system that doesn't need system paths, you can move it to any location, just run its command line shell and you have all the definitions inside. If you want to go a hard way of fixing broken paths and dependences inside your python installation, nobody can help you.
from xrt.
from xrt.
Make sure you start the WinPython's Spyder, not your previous Spyder version. Spyder's IPython console is not compatible with multiprocessing. So if you want multiprocessing, select the run option "Execute in an external system terminal".
from xrt.
from xrt.
How about running the script in an external system terminal (but still from Spyder)?
Alternatively, set processes=1
.
from xrt.
from xrt.
Related Issues (20)
- ParabolicalMirrorParam optics with figure error HOT 3
- Some doubts about custom faceted lenses HOT 4
- xyz_to_param and param_to_xyz for class ParabolicalMirrorParam HOT 2
- How to simulate nested shells HOT 9
- Problems encountered while running trace examples HOT 5
- Error when run xrtQook on Nvidia V100 GPU node
- How to add a caliber setting!
- Some doubts about the energy setting of X-ray sources HOT 18
- Absorbing wall along the beam propagation direction?
- Help needed! Clarification on the Meaning and Origin of eAxesFlat Values in 07_AnalyzerBent2D.py HOT 2
- Rocking curve theta and energy range converter HOT 3
- Problems generating code from materials HOT 7
- Calculating crystal reflectivity without constructing a beamline HOT 7
- Question about toroidally bent crystal in Laue geometry HOT 6
- VLS grating local_g direction HOT 2
- Regarding the size of light sources and the output of light source images
- How to add and use compound refractive index materials? HOT 9
- The light source image does not match the image at the detector
- Problem when using pytte and OpenCL for bent asymmetric Laue crystal HOT 2
- Passing in_plane_rotation parameter to pytte HOT 2
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 xrt.