Skip to content

Commit

Permalink
Merge pull request #59 from ygidtu/dev
Browse files Browse the repository at this point in the history
fix multiprocessing bugs
  • Loading branch information
ygidtu authored Dec 13, 2022
2 parents 64e8b99 + b6430ff commit be5fe8a
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 8 deletions.
4 changes: 2 additions & 2 deletions meta.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{% set name = "sashimi.py" %}
{% set version = "0.0.9" %}
{% set version = "0.1.0" %}


package:
Expand All @@ -8,7 +8,7 @@ package:

source:
url: "https://pypi.io/packages/source/{{ name[0] }}/{{ name }}/{{ name }}-{{ version }}.tar.gz"
sha256: 47f1626b93cadb4f2d9472956f1752aab872ed03b48224e972e36934a26b8d8b
sha256: 2baa97e651657c99258697dbdc75a35f634a9984e5d2bf96f851d9e66f6535a3

build:
noarch: python
Expand Down
2 changes: 1 addition & 1 deletion sashimi/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
from sashimi.file.ATAC import ATAC
from sashimi.plot import Plot

__version__ = "0.0.9"
__version__ = "0.1.0"
__author__ = "ygidtu & Ran Zhou"
__email__ = "[email protected]"

Expand Down
5 changes: 2 additions & 3 deletions sashimi/plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ def add(self, obj: File, category: str = "", type_: str = ""):
return self

def load(self, region: GenomicLoci, n_jobs: int = 0, *args, **kwargs):
if n_jobs <= -1:
if n_jobs <= 1:
for obj in self.obj:
obj.load(region=region, *args, **kwargs)
else:
Expand Down Expand Up @@ -1019,8 +1019,7 @@ def plot(self,

# count the plots size
for p in self.plots:

if n_jobs <= -1:
if n_jobs <= 1:
p.load(self.region, junctions=self.junctions.get(p.obj[0].label, {}), *args, **kwargs)

for obj in p.obj:
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import os
from setuptools import setup, find_packages

__version__ = "0.0.9"
__version__ = "0.1.0"
__author__ = "ygidtu & Ran Zhou"
__email__ = "[email protected]"

Expand Down
2 changes: 1 addition & 1 deletion web/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "sashimi.py",
"private": true,
"version": "0.0.9",
"version": "0.1.0",
"type": "module",
"scripts": {
"dev": "vite",
Expand Down

0 comments on commit be5fe8a

Please sign in to comment.