Skip to content

Commit

Permalink
Fix paths in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon-Rey committed Nov 7, 2024
1 parent c98f86e commit a65f200
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 13 deletions.
27 changes: 18 additions & 9 deletions easychair_extra/generate.py
Original file line number Diff line number Diff line change
Expand Up @@ -445,20 +445,29 @@ def generate_full_conference(
#
# from easychair_extra.read import read_topics
#
# current_dir = os.path.dirname(os.path.abspath(__file__))
#
# areas_to_topics, topics_to_areas = read_topics(
# os.path.join("..", "easychair_sample_files", "topics.csv")
# os.path.join(current_dir, "..", "easychair_sample_files", "topics.csv")
# )
# generate_full_conference(
# 1000,
# 2800,
# submission_file_path=os.path.join("..", "easychair_sample_files", "submission.csv"),
# submission_topic_file_path=os.path.join("..", "easychair_sample_files",
# "submission_topic.csv"),
# author_file_path=os.path.join("..", "easychair_sample_files", "author.csv"),
# committee_file_path=os.path.join("..", "easychair_sample_files", "committee.csv"),
# committee_topic_file_path=os.path.join("..", "easychair_sample_files",
# submission_file_path=os.path.join(
# current_dir, "..", "easychair_sample_files", "submission.csv"
# ),
# submission_topic_file_path=os.path.join(
# current_dir, "..", "easychair_sample_files", "submission_topic.csv"
# ),
# author_file_path=os.path.join(current_dir, "..", "easychair_sample_files", "author.csv"),
# committee_file_path=os.path.join(
# current_dir, "..", "easychair_sample_files", "committee.csv"
# ),
# committee_topic_file_path=os.path.join(current_dir, "..", "easychair_sample_files",
# "committee_topic.csv"),
# bidding_file_path=os.path.join("..", "easychair_sample_files", "bidding.csv"),
# review_file_path=os.path.join("..", "easychair_sample_files", "review.csv"),
# bidding_file_path=os.path.join(
# current_dir, "..", "easychair_sample_files", "bidding.csv"
# ),
# review_file_path=os.path.join(current_dir, "..", "easychair_sample_files", "review.csv"),
# topic_list=list(topics_to_areas)
# )
8 changes: 5 additions & 3 deletions examples/minimum_review_quota.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,17 @@
)

if __name__ == "__main__":
current_dir = os.path.dirname(os.path.abspath(__file__))

# Read the committee file with the bids
committee = read_committee(
os.path.join("..", "easychair_sample_files", "committee.csv"),
bids_file_path=os.path.join("..", "easychair_sample_files", "bidding.csv"),
os.path.join(current_dir, "..", "easychair_sample_files", "committee.csv"),
bids_file_path=os.path.join(current_dir, "..", "easychair_sample_files", "bidding.csv"),
)

# Read the submission file
submissions = read_submission(
os.path.join("..", "easychair_sample_files", "submission.csv")
os.path.join(current_dir, "..", "easychair_sample_files", "submission.csv")
)

# Select reviewers and not higher up PC members
Expand Down
2 changes: 1 addition & 1 deletion test/test_programcommittee.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ def test_papers_without_pc(self):
current_dir = os.path.dirname(os.path.abspath(__file__))
committee = read_committee(
os.path.join(current_dir, "..", "easychair_sample_files", "committee.csv"),
bids_file_path=os.path.join("..", "easychair_sample_files", "bidding.csv"),
bids_file_path=os.path.join(current_dir, "..", "easychair_sample_files", "bidding.csv"),
)
submissions = read_submission(
os.path.join(current_dir, "..", "easychair_sample_files", "submission.csv")
Expand Down

0 comments on commit a65f200

Please sign in to comment.