Skip to content

Commit

Permalink
New version.
Browse files Browse the repository at this point in the history
  • Loading branch information
cgevans committed Jul 22, 2022
1 parent 5c7182f commit bcc7a14
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def run(self):

setup(
name="xgrow",
version="20220303.dev0",
version="20220722",
packages=["xgrow"],
install_requires=["pyyaml", "typing_extensions", "numpy", "pandas", "matplotlib"],
include_package_data=True,
Expand Down
4 changes: 2 additions & 2 deletions xgrow/tileset.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ def xgname(self) -> str:

@classmethod
def from_dict(cls, d: Mapping[str, str | int]) -> Bond:
return cls(**d)
return cls(**d) # type: ignore

def to_dict(self) -> Dict[str, str | int]:
return {k: v for k, v in self.__dict__.items() if v is not None}
Expand Down Expand Up @@ -286,7 +286,7 @@ class TileSet:
tiles: List[Tile]
bonds: List[Bond] = field(default_factory=list)
glues: List[Glue] = field(default_factory=list)
xgrowargs: XgrowArgs = XgrowArgs()
xgrowargs: XgrowArgs = field(default_factory=XgrowArgs)
initstate: Optional[InitState] = None

@classmethod
Expand Down
4 changes: 2 additions & 2 deletions xgrow/xgrow_parallel.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import pandas as pd
import numpy as np
from io import StringIO
from . import xgrowoutput as xgo
from . import parseoutput as xgo


def _run_xgrow(params):
Expand Down Expand Up @@ -181,5 +181,5 @@ def progress(self):

def map(self, function):
return dict(
(n, array([[k, function(x)] for k, x in s.items()])) for n in self.res
(n, np.array([[k, function(x)] for k, x in self.items()])) for n in self.res
)

0 comments on commit bcc7a14

Please sign in to comment.