AMR 2.1.1.9109__py3-none-any.whl → 2.1.1.9111__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
AMR/__init__.py CHANGED
@@ -31,6 +31,7 @@ from .functions import aminopenicillins
31
31
  from .functions import antifungals
32
32
  from .functions import antimycobacterials
33
33
  from .functions import betalactams
34
+ from .functions import betalactams_with_inhibitor
34
35
  from .functions import carbapenems
35
36
  from .functions import cephalosporins
36
37
  from .functions import cephalosporins_1st
AMR/datasets.py CHANGED
@@ -29,13 +29,13 @@ if not isinstalled('AMR'):
29
29
  try:
30
30
  python_amr_version = metadata.version('AMR')
31
31
  except metadata.PackageNotFoundError:
32
- python_amr_version = None
32
+ python_amr_version = ''
33
33
 
34
34
  # R package version of AMR
35
35
  r_amr_version = robjects.r(f'as.character(packageVersion("AMR", lib.loc = "{r_lib_path}"))')[0]
36
36
 
37
37
  # Compare R and Python package versions
38
- if python_amr_version and r_amr_version != python_amr_version:
38
+ if r_amr_version != python_amr_version:
39
39
  try:
40
40
  print(f"{BLUE}AMR:{RESET} Updating package version{RESET}", flush=True)
41
41
  utils = importr('utils')
AMR/functions.py CHANGED
@@ -123,6 +123,9 @@ def antimycobacterials(only_sir_columns = False, *args, **kwargs):
123
123
  def betalactams(only_sir_columns = False, *args, **kwargs):
124
124
  """See our website of the R package for the manual: https://msberends.github.io/AMR/index.html"""
125
125
  return convert_to_python(amr_r.betalactams(only_sir_columns = False, *args, **kwargs))
126
+ def betalactams_with_inhibitor(only_sir_columns = False, *args, **kwargs):
127
+ """See our website of the R package for the manual: https://msberends.github.io/AMR/index.html"""
128
+ return convert_to_python(amr_r.betalactams_with_inhibitor(only_sir_columns = False, *args, **kwargs))
126
129
  def carbapenems(only_sir_columns = False, *args, **kwargs):
127
130
  """See our website of the R package for the manual: https://msberends.github.io/AMR/index.html"""
128
131
  return convert_to_python(amr_r.carbapenems(only_sir_columns = False, *args, **kwargs))
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: AMR
3
- Version: 2.1.1.9109
3
+ Version: 2.1.1.9111
4
4
  Summary: A Python wrapper for the AMR R package
5
5
  Home-page: https://github.com/msberends/AMR
6
6
  Author: Dr. Matthijs Berends
@@ -0,0 +1,7 @@
1
+ AMR/__init__.py,sha256=BIRuOFootq2w62-qt1O1RxoOknTe9RoL8dR5XfOu3cI,7365
2
+ AMR/datasets.py,sha256=IDeqfVGjzvhMhKZRlS6Pc3xIO4HBlRDvPdQjDQ8qVTc,2426
3
+ AMR/functions.py,sha256=ioPBIGGsSO6K1RP9nDbCXHJLeY6KjZoP16HzysASKns,43898
4
+ AMR-2.1.1.9111.dist-info/METADATA,sha256=k8JlLi5t9iupZYRcra8lb6yrho6tkaM9__S3wsH0qQI,9394
5
+ AMR-2.1.1.9111.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
6
+ AMR-2.1.1.9111.dist-info/top_level.txt,sha256=7K6Mq_X_OHdXOzQM5y06VUadXjYkze6yzufL1d7_6xc,4
7
+ AMR-2.1.1.9111.dist-info/RECORD,,
@@ -1,7 +0,0 @@
1
- AMR/__init__.py,sha256=Jzrh0SVD8tXP1_sJAnElOPAJcvMgtleTzdSnY3RI3HY,7315
2
- AMR/datasets.py,sha256=QbYkTe8Rl96tgADIZJfSwa9Y-eEFfb4faI6qw7y0szs,2451
3
- AMR/functions.py,sha256=XDN7fo0N3gGnZHYL0pdkG_9jwlsrvj0fo5IqLS7gWBM,43615
4
- AMR-2.1.1.9109.dist-info/METADATA,sha256=V-rxOr1ZpV19QgdvxFWatZPZ8CxytABo5akm2JhqqWs,9394
5
- AMR-2.1.1.9109.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
6
- AMR-2.1.1.9109.dist-info/top_level.txt,sha256=7K6Mq_X_OHdXOzQM5y06VUadXjYkze6yzufL1d7_6xc,4
7
- AMR-2.1.1.9109.dist-info/RECORD,,