in auto_sizing/size_calculation.py [0:0]
def publish_results(self, result_dict: Dict[str, Any], current_date: str) -> None:
if self.config.config_file and not self.bucket:
path = Path(self.config.config_file.name).parent / f"{self.config.target_slug}.json"
path.write_text(json.dumps(result_dict))
print(f"Results saved at {path}")
else:
export_sample_size_json(
self.project,
self.bucket,
self.config.target_slug,
json.dumps(result_dict),
current_date,
)