Re: [julia-users] Plots gadfly

2016-06-01 Thread Samuele Carcagno
On 01/06/16 09:44, Henri Girard wrote: Gadfly is deprecated : Does it mean we shouldn't use it anymore ? I am trying to use it but I got a long list of recompiling ? What can I use instead ? I don't want to use plotly because I don't want to have a password (which doesn't work properly either !)

Re: [julia-users] package compatibility for julia v0.3 and v0.4

2015-08-19 Thread Samuele Carcagno
On 19/08/15 02:01, Yichao Yu wrote: On Tue, Aug 18, 2015 at 8:20 PM, Samuele Carcagno sam.carca...@gmail.com wrote: On 19/08/15 00:22, Stefan Karpinski wrote: Did you try `@compat x % UInt8`? yes, it gives the same error `ERROR: `rem` has no method matching rem(::Int32, ::Type{Uint8

[julia-users] package compatibility for julia v0.3 and v0.4

2015-08-18 Thread Samuele Carcagno
I understand that if I release a new version of a package foo and put `julia 0.4` in `REQUIRE`, the package won't be updated in julia v0.3 installations. If, after the updated package is released, somebody tries to install package foo from julia v0.3 what happens? Will they still be able to

Re: [julia-users] package compatibility for julia v0.3 and v0.4

2015-08-18 Thread Samuele Carcagno
On 18/08/15 21:46, Yichao Yu wrote: On Aug 18, 2015 2:54 PM, Samuele Carcagno sam.carca...@gmail.com mailto:sam.carca...@gmail.com wrote: I understand that if I release a new version of a package foo and put `julia 0.4` in `REQUIRE`, the package won't be updated in julia v0.3 installations

Re: [julia-users] Re: Read EDF (European Data Format) files in Julia

2015-03-22 Thread Samuele Carcagno
Hi Charles, if you start creating your own function it may be useful to look at the BDF.jl package https://github.com/sam81/BDF.jl which deals with Biosemi BDF files closely related to EDF files http://www.biosemi.com/faq/file_format.htm there is a fork of BDF.jl here

Re: [julia-users] subsetting an array with 2 or more criteria

2014-05-20 Thread Samuele Carcagno
On 20/05/14 14:38, Florian Oswald wrote: I have an array A that i want to subset, as in | A =rand(100,100) A[A.0.5] | I'm struggling to find the extension of this to more than one rule - i would have expected that to work: | A[A.0.5A.0.9] ERROR:nomethod (Float64,Float64) | in at

[julia-users] PySide QDateTime

2014-05-07 Thread Samuele Carcagno
I'm having difficulties figuring out how to use a QDateTime method in PySide: the following works: julia QtCore[QDateTime][:currentDateTime]() PyObject PySide.QtCore.QDateTime(2014, 5, 7, 23, 31, 44, 758, 0) but when I try to convert it to a string with PySide I get: julia

Re: [julia-users] Re: PySide QDateTime

2014-05-07 Thread Samuele Carcagno
On 08/05/14 00:23, Steven G. Johnson wrote: On Wednesday, May 7, 2014 6:37:02 PM UTC-4, Samuele Carcagno wrote: but when I try to convert it to a string with PySide I get: julia QtCore[QDateTime][:toString](QtCore[QDateTime][:currentDateTime]()) ERROR: type: apply: expected

[julia-users] cflags

2014-04-03 Thread Samuele Carcagno
Hi, when compiling Julia from master, does specifying cflags help get better performance for Julia and dependencies, or these are already set at the maximum safe optimization levels (or it doesn't matter for other reasons)? For example for an Ivy Bridge Xeon I was thinking of setting the

[julia-users] PySide questions

2014-03-28 Thread Samuele Carcagno
A few more PySide.jl questions. I haven't been able to figure out the following conversions from Python: self.setWindowFlags(QtCore.Qt.Window | QtCore.Qt.CustomizeWindowHint | QtCore.Qt.WindowMinimizeButtonHint | QtCore.Qt.WindowMaximizeButtonHint) below is my failed attempt:

Re: [julia-users] Re: PySide questions

2014-03-28 Thread Samuele Carcagno
many thanks for the help! qt_enum(attr::Vector{ASCIIString}; how=|) = PyCall.pyeval(join(map(u - QtCore.Qt.$u, attr), $how )) Basically, it calls | at the python level. Maybe there is a better alternative. I struggled to understand it at first, but then found an example on the PySide.jl

Re: [julia-users] Re: PySide questions

2014-03-28 Thread Samuele Carcagno
w[:close]() notify(closeCondition) end raise(w) closeCondition = Condition() wait(closeCondition) I had to redefine the `closeEvent` so that it could notify the process to stop waiting and exit Sam --J On Friday, March 28, 2014 1:54:10 PM UTC-4, Samuele Carcagno wrote: A few more

Re: [julia-users] Re: PySide QSizePolicy

2014-03-27 Thread Samuele Carcagno
On Wednesday, March 26, 2014 5:20:11 PM UTC-4, Samuele Carcagno wrote: another PySide question, how to set `QSizePolicy`? for example how to translate the following Python code loadParametersButton.setSizePolicy(QSizePolicy.Expanding, QSizePolicy.Expanding) I tried looking

[julia-users] PySide QSizePolicy

2014-03-26 Thread Samuele Carcagno
another PySide question, how to set `QSizePolicy`? for example how to translate the following Python code loadParametersButton.setSizePolicy(QSizePolicy.Expanding, QSizePolicy.Expanding) I tried looking for `QSizePolicy` in Qt properties but didn't find it

Re: [julia-users] Re: set parent to None in PySide

2014-03-25 Thread Samuele Carcagno
, Samuele Carcagno wrote: another PySide.jl question, how to set the parent to None after removing a widget? If I attempt it I get the following error: julia pw_prm_sizer_0[:removeWidget](wd[fieldLabel][1]) julia wd[fieldLabel][1][:setParent](None) ERROR: PyError (PyObject_Call

[julia-users] setting Qt properties in PySide

2014-03-24 Thread Samuele Carcagno
Hi, I can't figure out the syntax to set Qt graphics properties in PySide.jl For example, how to translate the following Python code: sizer.setAlignment(Qt.AlignTop) or pw.layout().setSizeConstraint(QLayout.SetFixedSize) or cw.setFrameStyle(QFrame.StyledPanel|QFrame.Sunken) any help would

[julia-users] set parent to None in PySide

2014-03-24 Thread Samuele Carcagno
another PySide.jl question, how to set the parent to None after removing a widget? If I attempt it I get the following error: julia pw_prm_sizer_0[:removeWidget](wd[fieldLabel][1]) julia wd[fieldLabel][1][:setParent](None) ERROR: PyError (PyObject_Call) type 'exceptions.TypeError'

Re: [julia-users] How to join sting with var

2014-01-01 Thread Samuele Carcagno
On Wednesday 01 Jan 2014 11:07:06 paul analyst wrote: I need a vector of string of subtitles: col1, col2, col3, ..., col10 How to join col phrase with numbers of var(i) ( in the loop) you can use the `string` function for that: w = [col for i in 1:10] for i = 1:10 w[i] =