Skip to content

Commit

Permalink
remove .to_clipboard (not available on CI)
Browse files Browse the repository at this point in the history
  • Loading branch information
jepegit committed Dec 20, 2024
1 parent f51777d commit d12fc91
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 13 deletions.
2 changes: 0 additions & 2 deletions cellpy/readers/instruments/arbin_sql.py
Original file line number Diff line number Diff line change
Expand Up @@ -479,9 +479,7 @@ def _check_query():
name = ["20201106_HC03B1W_1_cc_01"]
dd, ds = check_sql_loader(SQL_SERVER, name)
out = pathlib.Path(r"C:\scripts\notebooks\Div")
dd.to_clipboard()
input("x")
ds.to_clipboard()


def _check_loader():
Expand Down
2 changes: 0 additions & 2 deletions cellpy/readers/instruments/arbin_sql_7.py
Original file line number Diff line number Diff line change
Expand Up @@ -514,9 +514,7 @@ def _check_query():
name = ["20201106_HC03B1W_1_cc_01"]
dd, ds = check_sql_loader(SQL_SERVER, name)
out = pathlib.Path(r"C:\scripts\notebooks\Div")
dd.to_clipboard()
input("x")
ds.to_clipboard()


def _check_loader():
Expand Down
1 change: 0 additions & 1 deletion cellpy/readers/instruments/custom.py
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,6 @@ def _process_cellpy_object(name, c, out):

print(f"loaded the file - now lets see what we got")
raw = c.data.raw
raw.to_clipboard()
print(raw.head())
c.make_step_table()

Expand Down
2 changes: 0 additions & 2 deletions cellpy/readers/instruments/maccor_txt.py
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,6 @@ def _check_loader_from_outside_with_get2():
)
print(f"loaded the file - now lets see what we got")
raw = c.data.raw
raw.to_clipboard()
print(raw.head())
c.make_step_table()

Expand Down Expand Up @@ -451,7 +450,6 @@ def _fix_bugs_now():
)
print(f"loaded the file - now lets see what we got")
raw = c.data.raw
raw.to_clipboard()
print(raw.head())
c.make_step_table()
steps = c.data.steps
Expand Down
1 change: 0 additions & 1 deletion cellpy/utils/batch_tools/batch_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,6 @@ def join_summaries(
logging.debug(f"mitigation method {mitigation_strategy} for non-unique column names not implemented yet")

summary_df = pd.concat(frames, keys=keys, axis=1, sort=True)
summary_df.to_clipboard()

for key, value in selected_summaries_dict.items():
_summary_df = summary_df.iloc[:, summary_df.columns.get_level_values(1) == value]
Expand Down
12 changes: 7 additions & 5 deletions tests/test_batch.py
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,13 @@ def test_csv_exporter(updated_cycling_experiment):
exporter.do()


def test_csv_exporter_modified(updated_cycling_experiment):
exporter = batch_exporters.CSVExporter()
exporter.assign(updated_cycling_experiment)
exporter._assign_engine(engines.dq_dv_engine)
exporter._assign_dumper(dumpers.screen_dumper)


def test_query():
def mock_reader_method(cell_id):
spec = {
Expand Down Expand Up @@ -321,11 +328,6 @@ def test_load_from_file(batch_instance, parameters):
experiment.journal.from_file(pages)


def test_csv_exporter_modified(updated_cycling_experiment):
exporter = batch_exporters.CSVExporter()
exporter.assign(updated_cycling_experiment)
exporter._assign_engine(engines.dq_dv_engine)
exporter._assign_dumper(dumpers.screen_dumper)


def test_lab_journal(batch_instance):
Expand Down

0 comments on commit d12fc91

Please sign in to comment.