Commit 8ade25bf authored by nd-02110114's avatar nd-02110114
Browse files

🚨 fix lint error

parent a61d178c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -521,7 +521,7 @@ class JsonLoader(DataLoader):

  >>> import tempfile
  >>> import deepchem as dc
  >>> with tempfile.NamedTemporaryFile(mode='w') as tmpfile:
  >>> with dc.utils.UniversalNamedTemporaryFile(mode='w') as tmpfile:
  ...   df.to_json(tmpfile.name, orient='records', lines=True)
  ...   featurizer = dc.feat.ElementPropertyFingerprint()
  ...   loader = dc.data.JsonLoader(["task"], feature_field="composition", featurizer=featurizer)
+4 −0
Original line number Diff line number Diff line
@@ -316,6 +316,8 @@ class EpisodeGenerator(object):

      return (task, support, test)

  __next__ = next  # Python 3.X compatibility


class SupportGenerator(object):
  """Generate support sets from a dataset.
@@ -380,3 +382,5 @@ class SupportGenerator(object):
        self.trial_num += 1  # Upgrade trial index

      return (task, support)

  __next__ = next  # Python 3.X compatibility