Skip to content

Commit 8928bec

Browse files
committed
Pre-realese ready to build
1 parent 7e73bcc commit 8928bec

3 files changed

Lines changed: 9 additions & 5 deletions

File tree

DSSATTools/__init__.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,4 +98,11 @@
9898

9999
__all__ = [
100100
'crop', 'SoilProfile', 'WeatherStation', 'DSSAT', 'filex'
101-
]
101+
]
102+
103+
import warnings
104+
warnings.simplefilter('always', DeprecationWarning)
105+
warnings.warn(
106+
'This new version is a major upgrade and will not be backwards compatible with previous versions. If you are running code that was developed using a previous DSSATTools version, then install DSSATTools version 2.1.6',
107+
DeprecationWarning
108+
)

DSSATTools/base/partypes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -725,7 +725,7 @@ def __init__(self, cultivar_code):
725725
return
726726

727727
def __repr__(self):
728-
print(self.__cultivar)
728+
return self.__cultivar.__repr__()
729729

730730
def __len__(self):
731731
return len(self.__cultivar)

README.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,6 @@ You can install the library using Python pip.
2020
```
2121
pip install DSSATTools
2222
```
23-
## New version soon
24-
DSSATTools version 3 is soon to be released. **The new version is a major upgrade and will not be backwards compatible**. DSSATTools version 2.1.6 is the latest release of version 2.
25-
2623
## Documentation
2724
[https://py-dssattools.readthedocs.io/en/latest/index.html](https://py-dssattools.readthedocs.io/en/latest/index.html)
2825
## Example Notebooks

0 commit comments

Comments
 (0)