Sorry for that. The fix will be part of v1.0.
M
> On 01.05.2016, at 23:13, Rob Gardner <robmatic(a)gmail.com> wrote:
>
> Thanks. For now I've got one button for +1 and one for -2 and have to
> click two buttons to accomplish -1. ;)
>
> On Sun, May 1, 2016 at 2:50 PM, Marko Luther <marko.luther(a)gmx.net> wrote:
>>> On 01.05.2016, at 22:09, Rob Gardner <robmatic(a)gmail.com> wrote:
>>>
>>> Artisan 9.9
>>>
>>> In config->events->buttons, can't program a "+/-" button with a value
>>> of -1, it always changes to 0. But -2 and other negative values are
>>> accepted.
>>>
>>
>> Thanks Rob for reporting this border case.
>>
>>> Perhaps -1 as a return value indicates failure of something? Been there. ;)
>>
>> -1 is in all places of Artisan a value indicating failure, but not here. The case here is way more complex as Artisan tries to stay compatible with Artisan v0.3 from some 5 years ago, which only allowed int event values from the interval [0,10]. Now those are mapped to the interval [0,100] by internally using float instead of int. Then in v0.9.x the value range was extended to [-100,100], guess what.
>>
>> Anyhow, this one is fixed in source.
>>
>> M
>>
>>>
>>> Rob
>>>
>>>
>>> --
>>> "If this is coffee, please bring me some tea; but if this is tea,
>>> please bring me some coffee." -- Abraham Lincoln
>>>
>>> "The thing about quotes on the internet is that you cannot confirm
>>> their validity." --Abraham Lincoln
>>>
>>>
>>> Sent from my iPalmDroidBerry7
>>> _______________________________________________
>>> Artisan-User mailing list
>>> Artisan-User(a)lists.einfachkaffee.de
>>> https://lists.mokelbu.de/listinfo/artisan-user
>>
>
>
>
> --
> "If this is coffee, please bring me some tea; but if this is tea,
> please bring me some coffee." -- Abraham Lincoln
>
> "The thing about quotes on the internet is that you cannot confirm
> their validity." --Abraham Lincoln
>
>
> Sent from my iPalmDroidBerry7
> On 01.05.2016, at 22:09, Rob Gardner <robmatic(a)gmail.com> wrote:
>
> Artisan 9.9
>
> In config->events->buttons, can't program a "+/-" button with a value
> of -1, it always changes to 0. But -2 and other negative values are
> accepted.
>
Thanks Rob for reporting this border case.
> Perhaps -1 as a return value indicates failure of something? Been there. ;)
-1 is in all places of Artisan a value indicating failure, but not here. The case here is way more complex as Artisan tries to stay compatible with Artisan v0.3 from some 5 years ago, which only allowed int event values from the interval [0,10]. Now those are mapped to the interval [0,100] by internally using float instead of int. Then in v0.9.x the value range was extended to [-100,100], guess what.
Anyhow, this one is fixed in source.
M
>
> Rob
>
>
> --
> "If this is coffee, please bring me some tea; but if this is tea,
> please bring me some coffee." -- Abraham Lincoln
>
> "The thing about quotes on the internet is that you cannot confirm
> their validity." --Abraham Lincoln
>
>
> Sent from my iPalmDroidBerry7
> _______________________________________________
> Artisan-User mailing list
> Artisan-User(a)lists.einfachkaffee.de
> https://lists.mokelbu.de/listinfo/artisan-user
Sorry to here this Rob and again thanks for reporting. However, there is not much I can do on this. On each platform Artisan is using a different tool for building the binary distributions. py2exe on Windows, py2app on Mac OS X and bbfreeze on Linux. At one point this has to be unified.
py2app might set some of those paths on Mac OS X.
I'll keep an eye on this.
Marko
> On 01.05.2016, at 22:44, Rob Gardner <robmatic(a)gmail.com> wrote:
>
> Was helping a friend with a mac, and found that selecting 'program' in
> device config would not work if the external program was written in
> python. I know that sounds weird, but stay with me... Some digging and
> discovered it was due to some python env variables exported to the
> external program that prevent it from finding the standard python
> library paths etc. The variables were pointing to artisan specific
> folders. Worked around this by making the external program a shell
> script that explicitly 'unset' PYTHON* variables, and then ran the
> desired python program. This problem does not exist under linux, which
> is my usual platform.
>
> Rob
>
>
> --
> "If this is coffee, please bring me some tea; but if this is tea,
> please bring me some coffee." -- Abraham Lincoln
>
> "The thing about quotes on the internet is that you cannot confirm
> their validity." --Abraham Lincoln
>
>
> Sent from my iPalmDroidBerry7
> _______________________________________________
> Artisan-User mailing list
> Artisan-User(a)lists.einfachkaffee.de
> https://lists.mokelbu.de/listinfo/artisan-user
Was helping a friend with a mac, and found that selecting 'program' in
device config would not work if the external program was written in
python. I know that sounds weird, but stay with me... Some digging and
discovered it was due to some python env variables exported to the
external program that prevent it from finding the standard python
library paths etc. The variables were pointing to artisan specific
folders. Worked around this by making the external program a shell
script that explicitly 'unset' PYTHON* variables, and then ran the
desired python program. This problem does not exist under linux, which
is my usual platform.
Rob
--
"If this is coffee, please bring me some tea; but if this is tea,
please bring me some coffee." -- Abraham Lincoln
"The thing about quotes on the internet is that you cannot confirm
their validity." --Abraham Lincoln
Sent from my iPalmDroidBerry7
Artisan 9.9
In config->events->buttons, can't program a "+/-" button with a value
of -1, it always changes to 0. But -2 and other negative values are
accepted.
Perhaps -1 as a return value indicates failure of something? Been there. ;)
Rob
--
"If this is coffee, please bring me some tea; but if this is tea,
please bring me some coffee." -- Abraham Lincoln
"The thing about quotes on the internet is that you cannot confirm
their validity." --Abraham Lincoln
Sent from my iPalmDroidBerry7