Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#= | |
The MIT License (MIT) | |
Copyright (c) 2015 Luke Stagner | |
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: | |
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. | |
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE S |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
EXECUTING dens[err_ind-1] = sum(max(sol.x,0)) | |
dens_err[err_ind-1] = norm(sol.sigma) | |
x[:,:,err_ind-1] = reshape(max(sol.x,0),npitch,nenergy) | |
sigma[:,:,err_ind-1] = reshape(sol.sigma,npitch,nenergy) | |
dx[:,:,err_ind-1] = x[:,:,err_ind-1] .- dist | |
pygui(true) | |
make_plots(energy,pitch,x[:,:,err_ind-1],sigma[:,:,err_ind-1],dist) | |
SENDING IPython Msg [ idents pyin ] { | |
header = ["msg_id"=>"1442b99d-500f-488e-99c2-e2b4ad9f2a51","msg_type"=>"pyin","username"=>"username","session"=>"9435E47D56D3486F894CA922AEFD2A89"], | |
metadata = Dict{String,Any}(), |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
EXECUTING using PyPlot | |
SENDING IPython Msg [ idents pyin ] { | |
header = Dict("msg_id"=>"fa39874c-5f4a-4265-add0-28cdfb910334","msg_type"=>"pyin","username"=>"username","session"=>"5DBF73B2FA44486D88C609D2E1C4BCE8"), | |
metadata = Dict{AbstractString,Any}(), | |
content = Dict{ASCIIString,Any}("code"=>"using PyPlot","execution_count"=>1) | |
} | |
Warning: New definition | |
call(Type{PyCall.PyDict}, Base.Associative{#K<:Any, Any}) at /home/lstagner/.julia/v0.4/PyCall/src/conversions.jl:464 | |
is ambiguous with: | |
call(Type{PyCall.PyDict}, Base.Associative{Any, #V<:Any}) at /home/lstagner/.julia/v0.4/PyCall/src/conversions.jl:463. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SENDING IPython Msg [ idents pyerr ] { | |
header = Dict("msg_id"=>"d3543821-d811-4529-b786-ce4128bb9015","msg_type"=>"pyerr","username"=>"username","session"=>"937AFEA751D3466C8BF47EA8C7C66E2A"), | |
metadata = Dict{AbstractString,Any}(), | |
content = Dict{ASCIIString,Any}("traceback"=>UTF8String["PyError (:PyObject_Call) <type 'exceptions.AttributeError'>\nAttributeError(\"'Path' object has no attribute '_vertices'\",)\n File \"/home/lstagner/anaconda3/envs/python2/lib/python2.7/site-packages/matplotlib/backend_bases.py\", line 2158, in print_figure\n **kwargs)\n File \"/home/lstagner/anaconda3/envs/python2/lib/python2.7/site-packages/matplotlib/backends/backend_agg.py\", line 521, in print_png\n FigureCanvasAgg.draw(self)\n File \"/home/lstagner/anaconda3/envs/python2/lib/python2.7/site-packages/matplotlib/backends/backend_agg.py\", line 469, in draw\n self.figure.draw(self.renderer)\n File \"/home/lstagner/anaconda3/envs/python2/lib/python2.7/site-packages/matplotlib/artist.py\", line 59, in draw_ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
LoadError: PyError (:PyObject_Call) <class 'AttributeError'> | |
AttributeError("'PathCollection' object has no attribute 'do_3d_projection'",) | |
File "/home/lstagner/anaconda3/lib/python3.5/site-packages/mpl_toolkits/mplot3d/axes3d.py", line 2273, in scatter | |
patches = Axes.scatter(self, xs, ys, s=s, c=c, *args, **kwargs) | |
File "/home/lstagner/anaconda3/lib/python3.5/site-packages/matplotlib/__init__.py", line 1812, in inner | |
return func(ax, *args, **kwargs) | |
File "/home/lstagner/anaconda3/lib/python3.5/site-packages/matplotlib/axes/_axes.py", line 3922, in scatter | |
self.add_collection(collection) | |
File "/home/lstagner/anaconda3/lib/python3.5/site-packages/matplotlib/axes/_base.py", line 1676, in add_collection | |
collection.set_clip_path(self.patch) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#The MIT License (MIT) | |
#Copyright (c) 2016 Luke Stagner | |
#Permission is hereby granted, free of charge, to any person obtaining a copy of this software | |
#and associated documentation files (the "Software"), to deal in the Software without restriction, | |
#including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, | |
#and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, | |
#subject to the following conditions: |
OlderNewer