#linuxcnc-devel | Logs for 2014-12-26

Back
[07:08:42] <KGB-linuxcnc> 03Norbert Schechner 052.6 82c6e24 06linuxcnc 10src/emc/usr_intf/gmoccapy/gmoccapy.py 10src/emc/usr_intf/gmoccapy/release_notes.txt gmoccapy_1_3_5_1 - forgot to reset the gcode error string * 14http://git.linuxcnc.org/?p=linuxcnc.git;a=commitdiff;h=82c6e24
[07:08:43] <KGB-linuxcnc> 03Norbert Schechner 052.6 34a9291 06linuxcnc Merge branch '2.6' of ssh://norbert@git.linuxcnc.org/git/linuxcnc.git into 2.6 * 14http://git.linuxcnc.org/?p=linuxcnc.git;a=commitdiff;h=34a9291
[07:09:46] <KGB-linuxcnc> 03Norbert Schechner 052.7 860eb9e 06linuxcnc Merge branch '2.6' into 2.7 * 14http://git.linuxcnc.org/?p=linuxcnc.git;a=commitdiff;h=860eb9e
[07:11:01] <KGB-linuxcnc> 03Norbert Schechner 05master 33e7433 06linuxcnc Merge branch '2.7' * 14http://git.linuxcnc.org/?p=linuxcnc.git;a=commitdiff;h=33e7433
[17:09:52] <KGB-linuxcnc> 03Dewey Garrett 052.7 6e836f4 06linuxcnc 10configs/sim/axis/moveoff/moveoff_base.inc 10lib/hallib/sim_lib.tcl 03src/hal/components/sim_home_switch.comp sim_lib: procs support arbitrary no. of axes * 14http://git.linuxcnc.org/?p=linuxcnc.git;a=commitdiff;h=6e836f4
[17:09:52] <KGB-linuxcnc> 03Dewey Garrett 052.7 2764db7 06linuxcnc 10lib/hallib/hookup_moveoff.tcl 10lib/hallib/sim_lib.tcl 10lib/hallib/xhc-hb04.tcl 10tcl/twopass.tcl twopass.tcl: handle haltcl files with args * 14http://git.linuxcnc.org/?p=linuxcnc.git;a=commitdiff;h=2764db7
[17:09:52] <KGB-linuxcnc> 03Dewey Garrett 052.7 1862b26 06linuxcnc 10lib/hallib/README 03lib/hallib/util_lib.tcl 03lib/hallib/var_show.tcl util_lib.tcl utilities for haltcl halfiles * 14http://git.linuxcnc.org/?p=linuxcnc.git;a=commitdiff;h=1862b26
[17:09:55] <KGB-linuxcnc> 03Dewey Garrett 052.7 4611148 06linuxcnc 10(8 files) simtcl: update ini files * 14http://git.linuxcnc.org/?p=linuxcnc.git;a=commitdiff;h=4611148
[17:09:59] <KGB-linuxcnc> 03Dewey Garrett 052.7 7a7b6f2 06linuxcnc 10configs/sim/axis/moveoff/moveoff_base.inc 10docs/src/config/ini_config.txt 10docs/src/config/moveoff.txt 10lib/hallib/var_show.tcl moveoff.txt,ini_config.txt: doc update * 14http://git.linuxcnc.org/?p=linuxcnc.git;a=commitdiff;h=7a7b6f2
[19:01:57] <kwallace2> I like to keep my Python lines within 80 characters per line but sometimes I get a line like this: tpu, external_pitch_dia_s, internal_pitch_dia_s, mean_thread_hieght_s, = [x.strip() for x in thread_str.split(',') if x.strip()]
[19:02:22] <kwallace2> Is there a good way to break this into two or more lines?
[19:04:32] <kwallace2> "tpu, external_pitch_dia_s, internal_pitch_dia_s, mean_thread_hieght_s, effective_length_s = [x.strip() for x in thread_str.split(',') if x.strip()]"
[19:07:39] <micges> s = [x.strip() for x in thread_str.split(',') if x.strip()]
[19:07:54] <micges> tpu, external_pitch_dia_s, internal_pitch_dia_s, mean_thread_hieght_s, effective_length_s = s
[19:08:04] <micges> more less, should work
[19:09:24] <Tom_itx> python doesn't have a line break character?
[19:10:07] <micges> yes there is, \
[19:14:56] <kwallace2> '\' hasn't always worked and can actually makes things worse. micges' example looks good. I should have thought of it, doooh.
[19:18:33] <kwallace2> I think adding () around the left side of = should allow me to break within the () too.
[19:21:33] <kwallace2> It's ugly but seems to work:
[19:21:36] <kwallace2> (tpu, external_pitch_dia_s, internal_pitch_dia_s,
[19:21:36] <kwallace2> mean_thread_hieght_s, effective_length_s) = [x.strip(
[19:21:36] <kwallace2> ) for x in thread_str.split(',') if x.strip()]
[19:26:47] <kwallace2> Slightly better:
[19:26:50] <kwallace2> (tpu, external_pitch_dia_s, internal_pitch_dia_s,
[19:26:50] <kwallace2> mean_thread_hieght_s, effective_length_s) = (
[19:26:50] <kwallace2> [x.strip() for x in thread_str.split(',') if x.strip()])
[21:44:32] <KGB-linuxcnc> 03Dewey Garrett 052.7 2d77f6a 06linuxcnc 10configs/sim/axis/moveoff/moveoff_base.inc moveoff_base.inc:remove obsolete ini items * 14http://git.linuxcnc.org/?p=linuxcnc.git;a=commitdiff;h=2d77f6a