klocey / partitions

python based code for integer partitioning
4 stars 4 forks source link

loading partitions #2

Closed dmcglinn closed 11 years ago

dmcglinn commented 11 years ago

Several of the scripts load a python module called partitions. Our repo does not setup the partitions module. Also I cannot access Ken's partitions module. I recieve the following python error:

import sys sys.path.append("/home/kenlocey/modules/partitions") import partitions as parts Traceback (most recent call last): File "", line 1, in ImportError: dynamic module does not define init function (initpartitions)

klocey commented 11 years ago

Sloppy job on my part. The module 'partitions' is just a .py file. In fact, it's the same file as misc_part_func.py. Consequently, I just now renamed 'misc_part_func.py' to 'partitions.py'. -KL

dmcglinn commented 11 years ago

if you haven't pushed yet can you wait until morning, after my changes to misc_part_func.py are merged into your master branch.

On Fri, Jun 21, 2013 at 12:34 AM, Kenneth John Locey < notifications@github.com> wrote:

Sloppy job on my part. The module 'partitions' is just a .py file. In fact, it's the same file as misc_part_func.py. Consequently, I just now renamed 'misc_part_func.py' to 'partitions.py'. -KL

— Reply to this email directly or view it on GitHubhttps://github.com/klocey/partitions/issues/2#issuecomment-19800484 .

Daniel J. McGlinn, PhD Postdoctoral Researcher Utah State University Department of Biology, BNR 132 Logan, UT 84322-5305 http://mcglinn.web.unc.edu/ cell: 405-612-1780

klocey commented 11 years ago

Already pushed man. Apologies. I can change it back if need be.

On Fri, Jun 21, 2013 at 12:35 AM, Dan McGlinn notifications@github.comwrote:

if you haven't pushed yet can you wait until morning, after my changes to misc_part_func.py are merged into your master branch.

On Fri, Jun 21, 2013 at 12:34 AM, Kenneth John Locey < notifications@github.com> wrote:

Sloppy job on my part. The module 'partitions' is just a .py file. In fact, it's the same file as misc_part_func.py. Consequently, I just now renamed 'misc_part_func.py' to 'partitions.py'. -KL

— Reply to this email directly or view it on GitHub< https://github.com/klocey/partitions/issues/2#issuecomment-19800484> .

Daniel J. McGlinn, PhD Postdoctoral Researcher Utah State University Department of Biology, BNR 132 Logan, UT 84322-5305 http://mcglinn.web.unc.edu/ cell: 405-612-1780

— Reply to this email directly or view it on GitHubhttps://github.com/klocey/partitions/issues/2#issuecomment-19800508 .

dmcglinn commented 11 years ago

no worries, don't recall the push. we'll resolve the conflicts in the morning.

On Fri, Jun 21, 2013 at 12:36 AM, Kenneth John Locey < notifications@github.com> wrote:

Already pushed man. Apologies. I can change it back if need be.

On Fri, Jun 21, 2013 at 12:35 AM, Dan McGlinn notifications@github.comwrote:

if you haven't pushed yet can you wait until morning, after my changes to misc_part_func.py are merged into your master branch.

On Fri, Jun 21, 2013 at 12:34 AM, Kenneth John Locey < notifications@github.com> wrote:

Sloppy job on my part. The module 'partitions' is just a .py file. In fact, it's the same file as misc_part_func.py. Consequently, I just now renamed 'misc_part_func.py' to 'partitions.py'. -KL

— Reply to this email directly or view it on GitHub< https://github.com/klocey/partitions/issues/2#issuecomment-19800484> .

Daniel J. McGlinn, PhD Postdoctoral Researcher Utah State University Department of Biology, BNR 132 Logan, UT 84322-5305 http://mcglinn.web.unc.edu/ cell: 405-612-1780

— Reply to this email directly or view it on GitHub< https://github.com/klocey/partitions/issues/2#issuecomment-19800508> .

— Reply to this email directly or view it on GitHubhttps://github.com/klocey/partitions/issues/2#issuecomment-19800531 .

Daniel J. McGlinn, PhD Postdoctoral Researcher Utah State University Department of Biology, BNR 132 Logan, UT 84322-5305 http://mcglinn.web.unc.edu/ cell: 405-612-1780